@extends('frontend.main_master') @section('body-class', 'panel-page panel-scrollable') @section('title', t('payment') . ' - ' . t('site-title')) @push('styles') @endpush @section('content')
{{-- LEFT: PayTR iframe --}}
{{ t('secure-payment') }}
{{-- RIGHT: Summary --}}
{{ t('order-summary') }}
@php $subtotal = $cart['subtotal'] ?? ($cart['total'] ?? 0); $discount = $cart['discount'] ?? 0; $total = $cart['total'] ?? 0; $appliedCoupon = $cart['coupon'] ?? null; @endphp
{{ t('subtotal') }} {{ number_format($subtotal, 0, ',', '.') }} {{ t('currency') }}
@if ($discount > 0 && $appliedCoupon)
{{ t('coupon') }} ({{ $appliedCoupon['code'] }}) -{{ number_format($discount, 0, ',', '.') }} {{ t('currency') }}
@endif
{{ t('vat') }} {{ t('including') }}

{{ t('total') }} {{ number_format($total, 0, ',', '.') }} {{ t('currency') }}

{{ t('including-vat') }}

{{-- Billing Info --}}
@if ($hasBillingInfo)
{{ t('billing-info') }}
{{ t('billing-type') }}: {{ ($billingInfo->invoice_type ?? 'individual') === 'corporate' ? t('corporate') : t('individual') }}
{{ t('billing-company-name') }}: {{ $billingInfo->company_name ?? '-' }}
{{ t('identity-number') }}: {{ $billingInfo->tax_id ?? '-' }}
@if (!empty($billingInfo->tax_office))
{{ t('tax-office') }}: {{ $billingInfo->tax_office }}
@endif @if (!empty($billingInfo->billing_address))
{{ t('billing-address') }}: {{ $billingInfo->billing_address }}
@endif @if ($billingInfo->city || $billingInfo->district)
{{ t('city') }} / {{ t('district') }}: {{ $billingInfo->city ?? '' }}{{ $billingInfo->district ? ' / ' . $billingInfo->district : '' }}
@endif
@endif
@endsection