{{ __('Checkout') }}

{{ __('Checkout stock notice') }}

@if ($errors->any()) @endif
@csrf

1 {{ __('Shipping Details') }}

@error('name')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('address')

{{ $message }}

@enderror

2 {{ __('Delivery Method') }}

@error('delivery_method_id')

{{ $message }}

@enderror
@foreach($deliveryMethods as $method) @endforeach

{{ __('Order Summary') }}

@foreach($cart as $item)

{{ $item['name'] }}

@if($item['color']) {{ __('Color') }}: {{ $item['color'] }} @endif @if($item['size']) {{ __('Size') }}: {{ $item['size'] }} @endif

{{ __('Qty') }}: {{ $item['quantity'] }}

@if(($item['original_price'] ?? $item['price']) > $item['price']) ৳{{ number_format(($item['original_price'] ?? $item['price']) * $item['quantity']) }} @endif

৳{{ number_format($item['price'] * $item['quantity']) }}

@endforeach
{{ __('Subtotal') }} ৳{{ number_format($subtotal) }}
{{ __('Discount') }} -৳{{ number_format($discount) }}
{{ __('Shipping Fee') }} ৳{{ number_format($deliveryMethods->first()->cost ?? 0) }}
{{ __('Total') }} ৳{{ number_format($total + ($deliveryMethods->first()->cost ?? 0)) }}

{{ __('Payment') }}

@error('payment_method_id')

{{ $message }}

@enderror
@foreach($paymentMethods as $pm) @endforeach

{{ __('Secure Guest Checkout') }}