Job Card
{{ $jobCard->job_card_number }}
Status
{{ ucfirst(str_replace('_', ' ', $jobCard->status)) }}
Vehicle
{{ $jobCard->vehicle?->registration_number ?? 'N/A' }}
Location
{{ $jobCard->location?->name ?? 'N/A' }}
Entry Date
{{ optional($jobCard->entry_date)->format('d/m/Y H:i') ?? 'N/A' }}
Opened By
{{ $jobCard->openedBy?->name ?? 'N/A' }}
Closed By
{{ $jobCard->closedBy?->name ?? 'N/A' }}
Closed At
{{ optional($jobCard->closed_at)->format('d/m/Y H:i') ?? 'N/A' }}
Final Parts Cost
KES {{ number_format((float) ($jobCard->final_parts_cost ?? 0), 2) }}
Complaint
{{ $jobCard->complaint ?: 'N/A' }}
Diagnosis
{{ $jobCard->diagnosis ?: 'No diagnosis recorded.' }}
Work Notes
{{ $jobCard->work_notes ?: 'No work notes recorded.' }}
Assigned Mechanics
@if (($jobCard->mechanics ?? collect())->count()) {{ $jobCard->mechanics->pluck('full_name')->implode(', ') }} @else No mechanics assigned. @endif
Issued Parts
@forelse ($jobCard->items ?? [] as $item) @empty @endforelse
Item Qty Unit Cost Total Notes
{{ $item->item?->code }} - {{ $item->item?->name }} {{ $item->quantity }} KES {{ number_format((float) $item->unit_cost_snapshot, 2) }} KES {{ number_format((float) $item->total_cost_snapshot, 2) }} {{ $item->notes ?: '-' }}
No parts have been issued yet.
Old Items
@forelse (($jobCard->oldItems ?? $jobCard->old_items ?? collect()) as $oldItem) @empty @endforelse
Description Qty Disposition Estimated Value Notes
{{ $oldItem->item_description }} {{ $oldItem->quantity }} {{ ucfirst(str_replace('_', ' ', $oldItem->disposition)) }} KES {{ number_format((float) ($oldItem->estimated_value ?? 0), 2) }} {{ $oldItem->notes ?: '-' }}
No old items recorded.