@extends('garage.layouts.app') @section('title', 'View Inspection') @section('content')
Inspection Details
Edit Back to List
Inspection Information
Inspection Number: {{ $inspection->inspection_number }}
Date: {{ \Carbon\Carbon::parse($inspection->inspection_date)->format('M d, Y') }}
Type: @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) }}
Status: @php $statusColors = [ 'completed' => 'success', 'in_progress' => 'warning', 'pending' => 'info', 'cancelled' => 'danger' ]; $statusColor = $statusColors[$inspection->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $inspection->status)) }}
Customer: {{ $inspection->customer_name ?? '-' }}
Vehicle: @if($inspection->vehicle_registration) {{ $inspection->vehicle_registration }} @if($inspection->vehicle_make && $inspection->vehicle_model) ({{ $inspection->vehicle_make }} {{ $inspection->vehicle_model }}) @endif @else - @endif
Total Cost: PKR {{ number_format($inspection->total_cost, 2) }}
@if($inspection->findings)
Findings

{{ nl2br(e($inspection->findings)) }}

@endif @if($inspection->recommendations)
Recommendations

{{ nl2br(e($inspection->recommendations)) }}

@endif
@endsection