@extends('backend.partials.master') @section('title') {{ ___('vendor.Vendor bookings') }} @endsection @section('maincontent') @include('backend.portal.marketplace._status')

{{ ___('vendor.Tour bookings') }}

@forelse($tours as $b) @empty @endforelse
#{{ ___('vendor.Tour') }}{{ ___('vendor.Customer') }}{{ ___('vendor.Travel date') }}{{ ___('vendor.Amount') }}{{ ___('vendor.Status') }}
BKG-{{ str_pad($b->id, 5, '0', STR_PAD_LEFT) }}{{ $b->package?->title }}{{ $b->customer_name }}{{ $b->travel_date?->format('d M Y') }}{{ currency_symbol() }}{{ number_format($b->amount, 2) }}{{ ___('vendor.'.($b->isPaid() ? 'paid' : $b->status)) }}@if($b->supplier_status === 'confirmed') · {{ ___('vendor.Confirmed') }}@elseif($b->supplier_status === 'failed') · {{ ___('vendor.Declined') }}@endif@include('backend.portal.marketplace._booking-actions', ['type' => 'tour', 'id' => $b->id, 'show' => $b->status !== 'cancelled' && $b->supplier_status !== 'confirmed'])
{{ ___('vendor.None yet.') }}

{{ ___('vendor.Hotel stays') }}

@forelse($stays as $b) @empty @endforelse
{{ ___('vendor.Ref') }}{{ ___('vendor.Hotel') }}{{ ___('vendor.Guest') }}{{ ___('vendor.Check-in') }}{{ ___('vendor.Nights') }}{{ ___('vendor.Amount') }}{{ ___('vendor.Status') }}
{{ $b->booking_no }}{{ $b->hotel?->name }}{{ $b->guest_name }}{{ $b->check_in?->format('d M Y') }}{{ $b->nights }}{{ currency_symbol() }}{{ number_format($b->amount, 2) }}{{ ___('vendor.'.$b->status) }}@include('backend.portal.marketplace._booking-actions', ['type' => 'stay', 'id' => $b->id, 'show' => $b->status === 'Booked'])
{{ ___('vendor.None yet.') }}

{{ ___('vendor.Transport trips assigned to you') }}

@forelse($trips as $b) @empty @endforelse
{{ ___('vendor.Ref') }}{{ ___('vendor.Route') }}{{ ___('vendor.Customer') }}{{ ___('vendor.Date') }}{{ ___('vendor.Fare') }}{{ ___('vendor.Status') }}
{{ $b->booking_no }}{{ $b->route }}{{ $b->customer_name }}{{ $b->travel_date?->format('d M Y') }}{{ currency_symbol() }}{{ number_format($b->fare, 2) }}{{ ___('vendor.'.$b->status) }}@include('backend.portal.marketplace._booking-actions', ['type' => 'trip', 'id' => $b->id, 'show' => in_array($b->status, ['Pending', 'Booked'], true)])
{{ ___('vendor.None yet.') }}

{{ ___('vendor.Visa cases') }}

@forelse($visas as $b) @empty @endforelse
{{ ___('vendor.Ref') }}{{ ___('vendor.Country') }}{{ ___('vendor.Customer') }}{{ ___('vendor.Service fee') }}{{ ___('vendor.Status') }}{{ ___('vendor.Payment') }}
{{ $b->application_no }}{{ $b->country }}{{ $b->applicant_name }}{{ currency_symbol() }}{{ number_format($b->service_fee, 2) }}{{ $b->status }}{{ ___('vendor.'.$b->payment_status) }}
{{ ___('vendor.None yet.') }}

{{ ___('vendor.Hajj & Umrah pilgrims') }}

@forelse($pilgrims as $b) @empty @endforelse
{{ ___('vendor.Ref') }}{{ ___('vendor.Package') }}{{ ___('vendor.Pilgrim') }}{{ ___('vendor.Paid') }}{{ ___('vendor.Due') }}{{ ___('vendor.Status') }}
{{ $b->pilgrim_no }}{{ $b->hajjPackage?->title }}{{ $b->name }}{{ currency_symbol() }}{{ number_format($b->amount_paid, 2) }}{{ currency_symbol() }}{{ number_format($b->amount_due, 2) }}{{ ___('vendor.'.$b->payment_status) }}
{{ ___('vendor.None yet.') }}
@endsection