@extends('layout.app') @section('title', 'Fleet & Operations Dashboard') @push('header_script') @endpush @section('content')
| Trip # | Vehicle | Route | Driver | Freight (₹) | Status |
|---|---|---|---|---|---|
| #{{ $trip->trip_sheet_no ?: $trip->id }} | {{ $trip->vehicle ? $trip->vehicle->vehicle_no : 'N/A' }} | {{ $trip->from_location ?: 'Origin' }} {{ $trip->to_location ?: 'Destination' }} | {{ $trip->driver_name ?: 'Assigned' }} | ₹{{ number_format($trip->freight_amount ?: 0, 2) }} | @php $status = $trip->status ?: 'Active'; $sBadge = 'bg-secondary'; if (in_array($status, ['Active', 'Running', 'In Transit'])) $sBadge = 'bg-success'; elseif (in_array($status, ['Completed', 'Closed'])) $sBadge = 'bg-info text-dark'; elseif ($status == 'Cancelled') $sBadge = 'bg-danger'; @endphp {{ $status }} |
| No trips logged yet. Click New Trip Sheet to start dispatching. | |||||
No vehicle insurance, fitness, permit, or tax expiring within 30 days.