@if ($carts->isEmpty()) @include('livewire.reservation._parties.empty-cart') @else {{-- cart view section --}}

{{ __('messages.t_back_to_cart') }}

{{-- payment section --}}
{{-- back cart section --}}
@if ($deliveryAddress)

{{ __('messages.t_delivery_to') }}: {{$deliveryAddress->name}}, {{$deliveryAddress->postal_code}}.

{{ $deliveryAddress->house_number }}, {{ $deliveryAddress->address }}, {{ $deliveryAddress->city->name }}, {{ $deliveryAddress->state->name }}, {{ $deliveryAddress->country->name }}.

{{ __('messages.t_change_address') }}

{{ __('messages.t_please_select_address') }} @foreach ($locations as $location)
id == $location->id) checked @endif type="checkbox" class="fi-checkbox-input rounded border-none bg-white shadow-sm ring-1 transition duration-75 checked:ring-0 focus:ring-2 focus:ring-offset-0 disabled:pointer-events-none disabled:bg-gray-50 disabled:text-gray-50 disabled:checked:bg-current disabled:checked:text-gray-400 dark:bg-white/5 dark:disabled:bg-transparent dark:disabled:checked:bg-gray-600 text-primary-600 ring-gray-950/10 focus:ring-primary-600 checked:focus:ring-primary-500/50 dark:text-primary-500 dark:ring-white/20 dark:checked:bg-primary-500 dark:focus:ring-primary-500 dark:checked:focus:ring-primary-400/50 dark:disabled:ring-white/10">

{{ __('messages.t_delivery_to') }}{{$location->name}}, {{$location->postal_code}}.

{{ $location->house_number }}, {{ $location->address }}, {{ $location->city->name }}, {{ $location->state->name }}, {{ $location->country->name }}.
@endforeach

{{ __('messages.t_add_address') }}

@else

{{ __('messages.t_please_select_address') }}

{{ __('messages.t_add_address') }}

@endif

{{ __('messages.t_payment_options')}}

@if(count($this->initializePaymentOptions()) >= 1)
{{ $this->paymentOptionForm }}
@else @include('components.empty-payment') @endif
{{-- summary section --}}

{{ __('messages.t_order_summary') }}

@foreach ($carts as $cart)

{{ $cart->ad->title }} ({{$cart->quantity}} Items)

@if ($cart->ad->isEnabledOffer() && $cart->ad?->offer_price)

{{ currencyToPointConversion(formatPriceWithCurrency($cart->ad?->offer_price * $cart->quantity) ) }}

@else

{{ currencyToPointConversion(formatPriceWithCurrency($cart->ad->price * $cart->quantity) ) }}

@endif
@endforeach

{{ __('messages.t_delivery_charges') }}

{{ __('messages.t_free_charge') }}

{{ __('messages.t_subtotal') }}

{{ currencyToPointConversion(formatPriceWithCurrency($subtotalAmount) ) }}

@if(!isEnablePointSystem() && isECommerceTaxOptionEnabled() && is_ecommerce_active())

{{ __('messages.t_tax') }}

{{ currencyToPointConversion(formatPriceWithCurrency($tax) ) }}

@endif

{{ __('messages.t_total_amount') }}

{{ currencyToPointConversion(formatPriceWithCurrency($totalAmount)) }}

@if ($this->defaultCurrency && $this->isDifferentRate)

{{ __('messages.t_total_including_exchange_rate') }}

{{formatPriceWithCurrency($convertedTotal) }}

@endif {{--

{{ __('messages.t_total_amount') }}

{{ currencyToPointConversion(formatPriceWithCurrency($convertedTotal)) }}

--}}
@if ($payment_method) @if (str_starts_with($payment_method, 'offline_')) {{ __('messages.t_place_order') }} @else @endif @endif
{{ __('messages.t_add_new_address') }}
{{ $this->locationForms }}
@endif