@extends('frontend.main_master') @section('body-class', 'panel-page panel-scrollable') @section('no-header', true) @section('no-footer', true) @section('title', t('payment') . ' - ' . t('site-title')) @push('styles') @endpush @section('content')
{{-- LEFT: PayTR iframe --}}
{{ t('secure-payment') }}

Kredi kartı / banka kartı bilgileriniz AstroBilge üzerinde saklanmaz.

{{-- RIGHT: Summary --}}
{{ t('order-summary') ?? 'Sipariş Özeti' }}
@if (!empty($cart['items']))
satın alınan ürünler
@foreach ($cart['items'] as $summaryItem)
{{ $summaryItem['label'] }} @if (($summaryItem['quantity'] ?? 1) > 1) {{ $summaryItem['quantity'] }} × {{ number_format($summaryItem['unit_price'], 0, ',', '.') }} {{ t('currency') }} @endif
{{ number_format($summaryItem['line_total'], 0, ',', '.') }} {{ t('currency') }}
@endforeach
@endif @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, ',', '.') }} ₺
@if ($discount > 0 && $appliedCoupon)
{{ t('coupon') }} ({{ $appliedCoupon['code'] }}) -{{ number_format($discount, 0, ',', '.') }} {{ t('currency') }}
@endif @php $vatAmount = round(max(0, $total) - (max(0, $total) / 1.20), 2); @endphp
%20 {{ t('vat') }} ({{ t('including') }}) {{ number_format($vatAmount, 2, ',', '.') }} {{ t('currency') }}

{{ t('total') }} {{ number_format($total, 0, ',', '.') }} {{ t('currency') }}
{{-- 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