@extends('layouts.admin') @section('content')
| Patient & Incident | {{--Assigned Unit | --}}Destination | Status |
|---|---|---|---|
|
{{-- Uses patient_name column from your patients table --}}
{{ $booking->patient->patient_name ?? 'Walk-in / Unknown' }}
{{ $booking->patient->health_issue ?? 'Emergency' }}
|
{{--
{{ $booking->ambulance->vehicle_number ?? 'PENDING' }}
ID: #{{ $booking->ambulance_id ?? 'N/A' }} | --}}
{{ $booking->pickup_address ?? 'Not Set' }}
long: {{ $booking->pickup_lat ?? '0.00' }} |
lat: {{ $booking->pickup_long ?? '0.00' }}
|
{{-- Status styling based on your booking status --}} @php $statusClass = match ($booking->status) { 'pending' => 'status-critical', 'completed' => 'status-ready', default => 'status-active', }; @endphp {{ strtoupper($booking->status) }} |
| No recent bookings found in the dispatch feed. | |||