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

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

{{ __('admin.delivery_inspection_items.add') }}
@if(session('success'))
{{ session('success') }}
@endif
@if($selectedProject)
{{ $selectedProject->project_name }}
{{ __('admin.delivery_inspection_items.add') }}
@if($items->isEmpty())

{{ app()->getLocale() === 'ar' ? 'لا توجد عناصر فحص لهذا المشروع.' : 'No checklist items for this project.' }}

@else
@foreach($items as $item) @endforeach
# {{ app()->getLocale() === 'ar' ? 'العنوان' : 'Title' }} {{ __('admin.delivery_inspection_items.fields.category') }} {{ __('admin.delivery_inspection_items.fields.is_critical') }} {{ __('admin.delivery_inspection_items.fields.order') }} {{ __('admin.actions.actions') }}
{{ $item->id }} {{ app()->getLocale() === 'ar' ? $item->title_ar : $item->title_en }} @if(app()->getLocale() === 'ar' && $item->title_en)
{{ $item->title_en }} @elseif(app()->getLocale() === 'en' && $item->title_ar)
{{ $item->title_ar }} @endif
{{ __('admin.delivery_inspection_items.categories.'.$item->category) }} @if($item->is_critical) {{ app()->getLocale() === 'ar' ? 'نعم' : 'Yes' }} @else {{ app()->getLocale() === 'ar' ? 'لا' : 'No' }} @endif {{ $item->order }}
@csrf @method('DELETE')
@endif
@endif
@endsection