@extends('layouts.app') @section('content')

{{ __('checkout') }}

@if(session('error'))
{{ session('error') }}
@endif
@csrf

{{ __('your_details') }}

@foreach(['cash' => __('cash'), 'card' => __('card'), 'transfer' => __('transfer')] as $key => $label) @endforeach

{{ __('order_summary') }}

@foreach($cart as $item)
{{ $item['name'] }} x{{ $item['qty'] }} {{ number_format($item['price'] * $item['qty'], 2, ',', ' ') }} AZN
@endforeach
{{ __('subtotal') }} {{ number_format($total, 2, ',', ' ') }} AZN
@if($discount > 0)
{{ __('discount') }} -{{ number_format($discount, 2, ',', ' ') }} AZN
@endif
{{ __('shipping') }} {{ $shipping > 0 ? number_format($shipping, 2, ',', ' ') . ' AZN' : __('free') }}
{{ __('total') }} {{ number_format($finalTotal, 2, ',', ' ') }} AZN
@endsection