تقرير المخالفات والإنذارات

{{ auth()->user()->name }} - {{ auth()->user()->getRoleNames()->first() }}
{{ $stats['total'] }}
إجمالي الأحداث
{{ $stats['warnings'] }}
الإنذارات
{{ $stats['violations'] }}
المخالفات
{{ $stats['active'] }}
النشطة
@if($violations->count() > 0) @foreach($violations as $index => $violation) @endforeach
# النوع العنوان الأعضاء المخالفون النقاط الحالة التاريخ مرفق
{{ $index + 1 }} {{ $violation->type_name }} @if($violation->is_automatic)
تلقائي @endif
{{ $violation->title }} @if($violation->description)
{{ Str::limit($violation->description, 100) }} @endif
@foreach($violation->members as $member) {{ $member->acknowledged ? '✓' : '⏳' }} {{ $member->user->name }} @endforeach
({{ $violation->members->count() }} عضو)
@if($violation->type === 'violation' && $violation->points_deducted > 0) {{ $violation->points_deducted }} × {{ $violation->members->count() }}
= {{ $violation->points_deducted * $violation->members->count() }} نقطة @else - @endif
{{ $violation->status_name }} @if($violation->isConfirmed())
{{ $violation->resolved_at_formatted }} @endif
{{ $violation->created_at->format('Y/m/d') }}
{{ $violation->created_at->format('H:i') }}
@if($violation->attachment) 📎 @else - @endif
@else
📋

لا توجد مخالفات أو إنذارات

لا توجد بيانات لعرضها وفقاً للفلاتر المحددة

@endif @if($violations->count() > 0)

إحصائيات الحالات

نشطة: {{ $stats['active'] }}
مؤكدة: {{ $stats['resolved'] }}

إحصائيات النوع

يدوية: {{ $stats['manual'] }}
تلقائية: {{ $stats['automatic'] }}
@endif @php $totalPointsDeducted = $violations->where('type', 'violation')->sum(function($v) { return $v->points_deducted * $v->members->count(); }); @endphp @if($totalPointsDeducted > 0)

ملخص النقاط المخصومة

{{ $totalPointsDeducted }} نقطة إجمالي
من جميع المخالفات في هذا التقرير
@endif

ملاحظات التقرير: