@extends('garage.layouts.app') @section('title', 'Inspections') @section('content')
@if($search || ($status ?? 'all') !== 'all' || ($type ?? 'all') !== 'all') @endif
@forelse($inspections as $inspection) @empty @endforelse
Inspection # Date Type Customer Vehicle Total Cost Status Actions
{{ $inspection->inspection_number }} {{ \Carbon\Carbon::parse($inspection->inspection_date)->format('M d, Y') }} @php $typeLabels = [ 'pre_service' => 'Pre-Service', 'post_service' => 'Post-Service', 'safety' => 'Safety', 'emission' => 'Emission', 'insurance' => 'Insurance', 'custom' => 'Custom' ]; @endphp {{ $typeLabels[$inspection->inspection_type] ?? ucfirst($inspection->inspection_type) }} @if($inspection->customer_name)
{{ $inspection->customer_name }}
@else - @endif
@if($inspection->vehicle_registration)
{{ $inspection->vehicle_registration }}
@if($inspection->vehicle_make && $inspection->vehicle_model) {{ $inspection->vehicle_make }} {{ $inspection->vehicle_model }} @endif @else - @endif
PKR {{ number_format($inspection->total_cost, 2) }} @php $statusColors = [ 'completed' => 'success', 'in_progress' => 'warning', 'pending' => 'info', 'cancelled' => 'danger' ]; $statusColor = $statusColors[$inspection->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $inspection->status)) }}

No inspections found

Create First Inspection
@if($inspections->hasPages())
{{ $inspections->links() }}
@endif
@push('scripts') @endpush @endsection