@extends('layout.mainlayout') @section('content') @component('components.breadcrumb') @slot('title') Agent Bookings @endslot @slot('item1') Agent Portal @endslot @slot('item2') Bookings @endslot @endcomponent
image
{{ auth()->user()->name ?? 'Agent' }}
Travel Agent

{{ $totalBookings ?? 0 }}

Total Bookings

{{ $confirmedBookings ?? 0 }}

Confirmed

{{ $pendingBookings ?? 0 }}

Pending

${{ number_format($totalEarnings ?? 0, 2) }}

Earnings

My Bookings
Create New
@forelse($bookings ?? [] as $booking) @if($booking instanceof \App\Models\Booking) @endif @empty @endforelse
Booking # Customer Service Date Amount Commission Status Action
{{ $booking->order?->reference ?? 'N/A' }} {{ $booking->order?->customer_name ?? 'N/A' }} {{ $booking->booking_type ? ucfirst($booking->booking_type) : 'N/A' }} {{ $booking->created_at?->format('M d, Y') ?? 'N/A' }} ${{ number_format($booking->price ?? 0, 2) }} ${{ number_format($booking->order?->commission_amount ?? 0, 2) }} {{ $booking->status ? ucfirst($booking->status) : 'pending' }} View

No bookings found. Start creating bookings for your clients!

Create Booking
@endsection