@extends('admin.layouts.master') @section('title', __('admin.delivery_inspections.title')) @section('content')

{{ __('admin.delivery_inspections.title') }}

{{ __('admin.delivery_inspections.add') }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{ __('admin.actions.reset') }}
@forelse($deliveryInspections as $inspection) @empty @endforelse
# {{ __('admin.delivery_inspections.fields.project_id') }} {{ __('admin.delivery_inspections.fields.inspector_id') }} {{ __('admin.delivery_inspections.fields.status') }} {{ __('admin.delivery_inspections.fields.created_at') }} {{ __('admin.actions.actions') }}
{{ $inspection->id }} {{ $inspection->project->project_name ?? '—' }} @if($inspection->project->client)
{{ $inspection->project->client->name }} @endif
{{ $inspection->inspector->name ?? '—' }} @php $statusColors = ['pending'=>'secondary','under_review'=>'info','revision_required'=>'warning','approved'=>'success','rejected'=>'danger']; $color = $statusColors[$inspection->status] ?? 'secondary'; @endphp {{ __('admin.delivery_inspections.statuses.'.$inspection->status) }} {{ $inspection->created_at->format('Y-m-d') }}
@csrf @method('DELETE')
{{ app()->getLocale() === 'ar' ? 'لا توجد فحوصات استلام.' : 'No delivery inspections found.' }}
{{ $deliveryInspections->withQueryString()->links() }}
@endsection