{{ __('frontend.my_tour_bookings') }}

{{ __('frontend.view_manage_tour_reservations') }}

@include('components.user-sidebar')
@if($bookings->count() > 0)
@foreach($bookings as $booking)
{{ ucfirst($booking->status) }} {{ ucfirst($booking->payment_status) }}
{{ __('frontend.reference_short') }}: {{ $booking->booking_reference }}

{{ $booking->tour->title }}

@if($booking->tour->extra_field_1 && $booking->tour->extra_field_2) {{ date('d M Y', strtotime($booking->tour->extra_field_1)) }} - {{ date('d M Y', strtotime($booking->tour->extra_field_2)) }} @endif @if($booking->tour->extra_field_3) {{ $booking->tour->extra_field_3 }} {{ __('frontend.days') }} @endif {{ __('frontend.departure') }}: {{ $booking->formatted_departure_date }}
{{ __('frontend.view_tour') }} {{ __('frontend.view_details') }} @if($booking->payment_status === 'pending') @elseif($booking->payment_status === 'failed') @else @endif

{{ __('frontend.total_passengers') }}

{{ $booking->adults }} {{ __('frontend.adults') }} @if($booking->children > 0) {{ $booking->children }} {{ __('frontend.children') }} @endif
{{ __('frontend.adults') }}: {{ \App\Helpers\CurrencyHelper::formatPrice($booking->adult_price) }} × {{ $booking->adults }}
@if($booking->children > 0)
{{ __('frontend.children') }}: {{ \App\Helpers\CurrencyHelper::formatPrice($booking->children_price ?? 0) }} × {{ $booking->children }}
@endif
{{ __('frontend.total') }}: {{ $booking->formatted_total }}
{{ __('frontend.payment_by') }}: @if($booking->payment_method === 'stripe') {{ __('frontend.credit_debit_card') }} @else {{ __('frontend.paypal') }} @endif
@endforeach
@if($bookings->hasPages())
{{ $bookings->links() }}
@endif @else

{{ __('frontend.no_tour_bookings_title') }}

{{ __('frontend.no_tour_bookings_desc') }}

@endif
@push('css') @endpush