@section('title', 'مخالفات المحطة') @section('page-title', 'إدارة المخالفات') @section('page-description', 'عرض ومتابعة مخالفات المحطة')
إضافة مخالفة جديدة
@forelse($violations as $violation) @empty @endforelse
نوع المخالفة التاريخ المبلغ الحالة الوصف الإجراءات
{{ $violation->violationType->name ?? 'غير محدد' }} {{ $violation->violation_date }} {{ number_format($violation->fine_amount, 2) }} ر.س @php $statusClass = match($violation->status) { 'resolved', 'closed' => 'bg-green-100 text-green-800', 'open' => 'bg-red-100 text-red-800', 'in_progress' => 'bg-blue-100 text-blue-800', 'acknowledged', 'verified' => 'bg-yellow-100 text-yellow-800', default => 'bg-gray-100 text-gray-800' }; $statusText = match($violation->status) { 'resolved' => 'تم الحل', 'closed' => 'مغلقة', 'open' => 'مفتوحة', 'in_progress' => 'قيد المعالجة', 'acknowledged' => 'تم الاستلام', 'verified' => 'تم التحقق', 'appealed' => 'تم الاعتراض', default => $violation->status }; @endphp {{ $statusText }} {{ Str::limit($violation->description, 50) }} عرض
لا يوجد مخالفات مسجلة
{{ $violations->links() }}