@extends('layouts.app') @section('title', 'PPE Inspection Details') @php use Illuminate\Support\Facades\Storage; @endphp @section('content')
Back

Inspection: {{ $inspection->reference_number }}

Reference Number
{{ $inspection->reference_number }}
PPE Item
{{ $inspection->ppeItem->name }}
User
{{ $inspection->user->name ?? 'N/A' }}
Inspection Date
{{ $inspection->inspection_date->format('M d, Y') }}
Inspection Type
{{ ucfirst(str_replace('_', ' ', $inspection->inspection_type)) }}
Condition
{{ ucfirst($inspection->condition) }}
Action Taken
{{ ucfirst($inspection->action_taken) }}
Compliance
{{ $inspection->is_compliant ? 'Compliant' : 'Non-Compliant' }}
@if($inspection->findings)
Findings
{{ $inspection->findings }}
@endif @if($inspection->defects)
Defects
{{ $inspection->defects }}
@endif @if($inspection->defect_photos && count($inspection->defect_photos) > 0)
Defect Photos
@foreach($inspection->defect_photos as $photo) Defect photo @endforeach
@endif
@endsection