@php $latestTool = $tools->first(); $toolListLink = $latestTool ? route('vehicle-tool-list.edit', $latestTool->id) . '?redirect_to=performance' : route('vehicle-tool-list.create', ['vehicle_id' => $vehicle->id, 'redirect_to' => 'performance']); @endphp

Tyres

All tyres currently fitted on this truck

+ Add Tyre
@if($latestTool && $latestTool->tyres->count() > 0) @foreach($latestTool->tyres as $idx => $tyre) @endforeach @else @endif
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

+ Add Battery
@if($latestTool && $latestTool->batteries->count() > 0) @foreach($latestTool->batteries as $idx => $battery) @endforeach @else @endif
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

+ Verify Now
@php $lastVerified = $latestTool && $latestTool->date ? \Carbon\Carbon::parse($latestTool->date)->format('d M Y') : 'N/A'; $issueDate = $vehicle->created_at ? $vehicle->created_at->format('d M Y') : 'N/A'; $toolItems = [ ['key' => 'jack', 'name' => 'Hydraulic Jack', 'qty' => 1], ['key' => 'stepney_spanner', 'name' => 'Wheel Spanner Set', 'qty' => 1], ['key' => 'stepney', 'name' => 'Spare Tyre (Stepney)', 'qty' => 1], ['key' => 'tool_set', 'name' => 'Tool Kit Box', 'qty' => 1], ['key' => 'rope', 'name' => 'Tow Rope / Chain', 'qty' => 1], ['key' => 'fire_extinguisher', 'name' => 'Fire Extinguisher', 'qty' => 1], ['key' => 'tire_lever', 'name' => 'Tire Lever', 'qty' => 2], ['key' => 'bucket', 'name' => 'Bucket', 'qty' => 1], ['key' => 'tarpaulin_cloth', 'name' => 'Tarpaulin (Cloth)', 'qty' => 1], ['key' => 'tarpaulin_plastic', 'name' => 'Tarpaulin (Plastic)', 'qty' => 1], ]; @endphp @foreach($toolItems as $idx => $item) @php $isAvailable = $latestTool ? ($latestTool->{$item['key']} ? 1 : 0) : 'N/A'; $condition = $isAvailable === 1 ? 'Good' : ($isAvailable === 0 ? 'Missing' : 'N/A'); @endphp @endforeach
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
SOP: Verify this checklist at every trip-end (or monthly — confirm cadence). Any item marked Worn/Missing triggers a replacement request; once replaced, reset Condition to Good and update Last Verified.