@include('Partials.sidebar')
@include('Partials.header')
{{-- ── Page Title ── --}}

My Bookings

All bookings you have closed

  1. My Bookings
{{-- ── No linked account warning ── --}} @if(!empty($no_frontend_account))
No bookings linked yet.
Register on the frontend using the same email ({{ $admin->email }}) and select the Broker role. Bookings you make will then appear here automatically.
@endif {{-- ── Filters ── --}}
{{ $bookings instanceof \Illuminate\Pagination\LengthAwarePaginator ? $bookings->total() : (is_countable($bookings) ? count($bookings) : 0) }} booking(s)
{{-- ── Bookings Table ── --}}
All My Bookings
Dashboard
@forelse($bookings as $i => $b) @php $csColors = ['pending'=>'#f59e0b','approved'=>'#3b82f6','paid'=>'#22c55e','rejected'=>'#ef4444']; $bsColors = ['confirmed'=>'#22c55e','pending'=>'#f59e0b','cancelled'=>'#ef4444']; $cc = $csColors[$b->commission_status ?? ''] ?? '#94a3b8'; $bc = $bsColors[$b->booking_status ?? ''] ?? '#94a3b8'; $blockLabel = is_object($b->block) ? ($b->block->block_name ?? '—') : ($b->block ?? '—'); @endphp @empty @endforelse
# Unit Client Deal Value Commission Comm. Status Booking Status Date Action
{{ $b->id }}
Unit {{ $b->plot_number ?? '—' }}
{{ $b->plot_type ?? '' }} @if($blockLabel && $blockLabel !== '—') · {{ $blockLabel }} @endif
{{ $b->client_name ?: ($b->name ?? '—') }}
{{ $b->client_phone ?: ($b->phone ?? '') }}
@if($b->client_email)
{{ $b->client_email }}
@endif
{{ $currency }}{{ $b->total_amount ?? $b->price ?? 0 }} @if($b->commission_amount)
{{ $currency }}{{$b->commission_amount }}
@if($b->commission_rate)
{{ $b->commission_rate }}%
@endif @else @endif
{{ ucfirst($b->commission_status ?? 'N/A') }} @if($b->commission_status === 'paid' && isset($b->commission_paid_at))
{{ \Carbon\Carbon::parse($b->commission_paid_at)->format('d M Y') }}
@endif
{{ ucfirst($b->booking_status ?? '—') }} {{ \Carbon\Carbon::parse($b->created_at)->format('d M Y') }}
{{ \Carbon\Carbon::parse($b->created_at)->format('H:i') }}
@if(request('search') || request('status')) No bookings match your filters. Clear filters @else No bookings yet. Book a unit from the property listing. @endif
@if($bookings instanceof \Illuminate\Pagination\LengthAwarePaginator && $bookings->hasPages()) @endif
@include('Partials.footer')