@extends('layout.app') @section('title','Truck Performance') @push('header_script') @endpush @section('content')
Current Odometer
{{ $vehicle->current_km ?? 'N/A' }} km
Active Driver
{{ $activeDriver?->employee?->employee_name ?? 'N/A' }}
Freight Entry List — GRs booked on this truck
Read-only, pulled from the Freight Entry module and filtered to this truck
| S.No. | GR No. | GR Date | Route | Consignor | Consignee | Material | Weight | Freight ₹ | Advance ₹ | Balance ₹ | Status |
|---|
Trip Sheet History
Read-only, pulled from the Trip Sheet module and filtered to this truck
| Trip No. | Dates | Route | Driver | Start KM | End KM | Total KM | Revenue ₹ | Diesel Ltr | Diesel ₹ | Other Exp ₹ | Total Exp ₹ | Mileage | Net P&L ₹ |
|---|
Daily KM Entry
Daily odometer log for this truck
| Date | Odometer Reading | KM Run (Day) | Entered By |
|---|
Servicing on KM
Interval settings for this truck
| Service Type | Interval (KM) | Last Done KM | Next Due KM | KM Remaining | Status |
|---|---|---|---|---|---|
| {{ $setting->serviceType->name ?? 'N/A' }} | {{ $setting->interval_km }} | {{ $setting->last_done_km }} | {{ $setting->next_due_km }} | {{ $setting->km_remaining }} | @if($setting->km_remaining <= 0) Overdue @elseif($setting->km_remaining <= 500) Due Soon @else OK @endif |
| No service interval settings found. | |||||
Service History
Log of services carried out, most recent first
| Service Type | Date | Odometer KM | Cost ₹ | Center | Remarks |
|---|
Remarks
Free-text notes for this truck — every entry stays on the log
{{ $remark->remark }}
No remarks added yet.
Registration (RC)
Insurance
PUC
Fitness Certificate
Road Tax
Accidental / Claim History
All accident and insurance-claim records for this truck
| Date | Location | Driver | Description | Claim No. | Insurer | Claim ₹ | Settled ₹ | Repair ₹ | Status |
|---|
Tyres
All tyres currently fitted on this truck
| S.No. | Tyre SKU / Serial No. | Company | Position | Issue Date | Running KM | Status |
|---|---|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $tyre->tyre_number }} | {{ $tyre->tyre_company }} | {{ $tyre->position }} | {{ $tyre->issue_date ? \Carbon\Carbon::parse($tyre->issue_date)->format('d M Y') : 'N/A' }} | {{ $tyre->running_km ?? 0 }} | @if($tyre->status == 'Good' || $tyre->status == 'Active') {{ $tyre->status }} @elseif($tyre->status == 'Needs Check') {{ $tyre->status }} @elseif($tyre->status == 'Replaced') {{ $tyre->status }} @else {{ $tyre->status ?? 'N/A' }} @endif |
| No tyres recorded. | ||||||
Battery
| S.No. | Battery Serial / SKU No. | Company | Issue Date | Running Period | Status |
|---|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $battery->battery_number }} | {{ $battery->company }} | {{ $battery->issue_date ? \Carbon\Carbon::parse($battery->issue_date)->format('d M Y') : 'N/A' }} | {{ $battery->running_period ?? 'N/A' }} | @if($battery->status == 'Good' || $battery->status == 'Active') {{ $battery->status }} @elseif($battery->status == 'Needs Check') {{ $battery->status }} @elseif($battery->status == 'Replaced') {{ $battery->status }} @else {{ $battery->status ?? 'N/A' }} @endif |
| No batteries recorded. | |||||
Other Tools & Kits
Standard tool checklist — verified against the SOP below
| S.No. | Item | Std. Qty | Available | Issue Date | Last Verified | Condition |
|---|---|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $item['name'] }} | {{ $item['qty'] }} | {{ $isAvailable }} | {{ $issueDate }} | {{ $lastVerified }} | @if($condition == 'Good') Good @elseif($condition == 'Missing') Missing @else {{ $condition }} @endif |
Driver History
Every driver assigned to this truck
| Driver | License No. | Assigned From | Assigned To | Duration | KM Driven | Reason |
|---|