Booking {{ $booking->reference_code }}
{{-- Top bar --}}
Booking {{ $booking->reference_code }}
{{ $booking->scheduled_at->format('d M Y · H:i') }}
@if(!in_array($booking->status, ['completed','cancelled'])) Edit @endif Back
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Status strip --}}
Status
{{ ucfirst(str_replace('_',' ',$booking->status)) }}
Priority
{{ ucfirst($booking->priority ?? 'Normal') }}
Source
{{ ucfirst($booking->source ?? 'Staff') }}
@if(!in_array($booking->status, ['completed','cancelled']))
@if($booking->status === 'pending')
@csrf
@endif
@csrf
@csrf
@endif
{{-- Details --}}
Booking Details

{{ $booking->display_name }}

{{ $booking->display_phone ?? '—' }}

@if($booking->vehicle_plate || $booking->client?->vehicles->first())

{{ $booking->vehicle_plate ?? $booking->client?->vehicles->first()?->plate_number ?? '—' }}

@endif @if($booking->address)

{{ $booking->address }}

@endif

{{ $booking->assignedEmployee?->name ?? 'Unassigned' }}

{{ $booking->scheduled_at->format('d M Y H:i') }}

@if($booking->estimated_duration)

{{ $booking->estimated_duration }} min

@endif @if($booking->started_at)

{{ $booking->started_at->format('d M Y H:i') }}

@endif

{{ $booking->creator?->name ?? '—' }}

{{ $booking->created_at->format('d M Y H:i') }}

@if($booking->notes)

{{ $booking->notes }}

@endif
{{-- Services --}}
Services
@forelse($booking->services as $svc)
{{ $svc->name }}
Qty: {{ $svc->pivot->quantity }} · KSh {{ number_format($svc->pivot->price_at_booking, 2) }} each
KSh {{ number_format($svc->pivot->quantity * $svc->pivot->price_at_booking, 2) }}
@empty

No services attached.

@endforelse @if($booking->services->isNotEmpty())
Estimated Total KSh {{ number_format($booking->totalPrice(), 2) }}
@endif
{{-- Linked Sale --}} @if($booking->sale)
Linked Sale
{{ $booking->sale->reference_no }}
{{ $booking->sale->sale_date?->format('d M Y H:i') }} · KSh {{ number_format($booking->sale->total, 2) }}
View Sale →
@endif {{-- Timeline --}}
Timeline
  • Booking created by {{ $booking->creator?->name ?? 'System' }}
    {{ $booking->created_at->format('d M Y H:i') }}
  • @if($booking->started_at)
  • Service started
    {{ $booking->started_at->format('d M Y H:i') }}
  • @endif @if($booking->status === 'completed')
  • Booking completed
    {{ $booking->updated_at->format('d M Y H:i') }}
  • @endif @if($booking->status === 'cancelled')
  • Booking cancelled
    {{ $booking->updated_at->format('d M Y H:i') }}
  • @endif