@extends('layouts.app') @section('content')

📋 التفتيش الدوري والمخالفات

@csrf
@forelse($catalogs as $catalog)
@empty
لا توجد مخالفات مسجلة لسنة {{ date('Y') }}. يرجى إضافتها في كتالوج المخالفات أولاً.
@endforelse
@forelse($inspections as $index => $inspection) @empty @endforelse
# المؤسسة تاريخ التفتيش المخالفات والغرامات إجمالي الغرامة ملاحظات
{{ $index + 1 }} {{ $inspection->establishment->name }}
({{ $inspection->establishment->type }})
{{ $inspection->inspection_date }} @if($inspection->violations->count() > 0)
    @foreach($inspection->violations as $v)
  • {{ $v->catalog->description }} - {{ number_format($v->fine_amount) }}
  • @endforeach
@else سليمة @endif
{{ number_format($inspection->violations->sum('fine_amount')) }} {{ $inspection->notes ?? '-' }}
لا توجد زيارات تفتيش مسجلة.
@endsection