{{-- Sol Sütun: Form Grupları --}}
{{-- Müşteri Bilgileri Kartı --}}

1. İletişim Bilgileri

@error('customer_name') {{ $message }} @enderror
@error('customer_email') {{ $message }} @enderror
@error('customer_phone') {{ $message }} @enderror
{{-- Adres Bilgileri Kartı --}}

2. Teslimat Adresi

@auth @if(!empty($addresses) && count($addresses) > 0)
@endif @endauth
@error('shipping_address') {{ $message }} @enderror
@error('city') {{ $message }} @enderror
@error('district') {{ $message }} @enderror
@error('postal_code') {{ $message }} @enderror
@auth @if(empty($selected_shipping_address_id))
@if($save_shipping_to_address_book)
@error('new_shipping_address_title') {{ $message }} @enderror
@endif @endif @endauth {{-- Fatura Adresi Eşleştirme --}}
{{-- Ayrı Fatura Adresi Alanı --}} @if(!$billing_same_as_shipping)
@auth @if(!empty($addresses) && count($addresses) > 0)
@endif @endauth
@error('billing_address') {{ $message }} @enderror
@auth @if(empty($selected_billing_address_id))
@if($save_billing_to_address_book)
@error('new_billing_address_title') {{ $message }} @enderror
@endif @endif @endauth
@endif
{{-- Sipariş Notu Kartı --}}

3. Sipariş Notu

@error('customer_note') {{ $message }} @enderror
{{-- Ödeme Yöntemi Kartı --}}

4. Ödeme Yöntemi

@if(empty($availablePaymentMethods))

Mağazada şu anda aktif bir ödeme yöntemi bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.

@else
@foreach($availablePaymentMethods as $method) @endforeach
@if($payment_method === 'paytr' && app(\App\Services\PaymentService::class)->isPaytrTestMode())
Bilgi: PayTR şu anda Test Modundadır. Gerçek ödeme alınmayacaktır.
@endif @endif @error('payment_method') {{ $message }} @enderror
{{-- Sağ Sütun: Sipariş Özeti --}}

Sipariş Özeti

{{-- Ürün Listesi --}}
@foreach($items as $item)
@if($item->product->main_image_url) {{ $item->product->name }} @else
@endif
{{ $item->product->name }}
@if($item->variant_label)
{{ $item->variant_label }}
@endif
Adet: {{ $item->quantity }} {{ number_format($item->unit_price, 2, ',', '.') }} TL
{{ number_format($item->total_price, 2, ',', '.') }} TL
@endforeach
{{-- Kupon Kodu Inputu --}}
{{-- Uygulanan Kupon --}} @if($appliedCoupon)
{{ $appliedCoupon->code }} uygulandı
@endif @livewire('storefront.checkout.loyalty-point-redeem')
{{-- Fiyat Detayları --}}
Ara Toplam {{ number_format($totals['subtotal'], 2, ',', '.') }} TL
{{-- Kargo Ücreti --}}
{{ $shippingTitle }} @if($isFreeShipping || (float)$shippingTotal === 0.00) Ücretsiz @else {{ number_format($shippingTotal, 2, ',', '.') }} TL @endif
{{-- Ücretsiz kargoya kalan tutar --}} @if(!$isFreeShipping && $freeShippingRemainingAmount > 0)
{{ number_format($freeShippingRemainingAmount, 2, ',', '.') }} TL daha alışveriş yapın, ücretsiz kargo kazanın!
@endif {{-- Kupon İndirimi --}} @if($appliedCoupon && $discountAmount > 0)
Kupon İndirimi ({{ $appliedCoupon->code }}) -{{ number_format($discountAmount, 2, ',', '.') }} TL
@endif {{-- Sadakat Puanı İndirimi --}} @if(isset($totals['loyalty_points_discount']) && $totals['loyalty_points_discount'] > 0)
Sadakat Puanı İndirimi -{{ number_format($totals['loyalty_points_discount'], 2, ',', '.') }} TL
@endif {{-- Gelişmiş Kampanya İndirimi --}} @if(isset($totals['advanced_campaign_discount']) && $totals['advanced_campaign_discount'] > 0)
Gelişmiş Kampanya İndirimi -{{ number_format($totals['advanced_campaign_discount'], 2, ',', '.') }} TL
@endif {{-- Ödeme Hizmet Bedeli --}} @if(isset($totals['payment_fee']) && $totals['payment_fee'] > 0)
Ödeme Hizmet Bedeli {{ number_format($totals['payment_fee'], 2, ',', '.') }} TL
@endif
Genel Toplam {{ number_format($totals['grand_total'], 2, ',', '.') }} TL
{{-- Sipariş Ver Butonu --}}