@extends('layouts.moderator') @section('title', 'إدارة المخالفات والإنذارات - المشرف') @section('content')
@if(session('success'))
{{ session('success') }}
@endif

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

إدارة المخالفات والإنذارات للأعضاء @if(auth()->user()->gender === 'male') الذكور @else الإناث @endif

{{ $stats['total'] }}
إجمالي الأحداث
{{ $stats['warnings'] }}
الإنذارات
{{ $stats['violations'] }}
المخالفات
{{ $stats['active'] }}
النشطة
{{ $stats['resolved'] }}
المؤكدة
{{ $stats['automatic'] }}
التلقائية

فلتر البحث والتصفية

إعادة تعيين

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

عدد النتائج: {{ $violations->total() }} نتيجة @if(isset($violationSource) && $violationSource !== 'all') - عرض: @if($violationSource == 'my_violations') مخالفاتي فقط @elseif($violationSource == 'team_violations') مخالفات أعضاء فريقي @elseif($violationSource == 'my_received_violations') مخالفاتي المستلمة من الإدارة العليا @endif @endif

@if($violations->count() > 0)
@foreach ($violations as $violation)
@foreach($violation->members->take(3) as $index => $member)
@if($member->user) {{ $member->user->name }} @if($member->user->is_online)
@else
@endif @else
@endif
@endforeach @if($violation->members->count() > 3)
+{{ $violation->members->count() - 3 }}
@endif
@foreach($violation->members->take(2) as $member) {{ $member->user->name ?? 'مستخدم محذوف' }}{{ !$loop->last ? '، ' : '' }} @endforeach @if($violation->members->count() > 2) +{{ $violation->members->count() - 2 }} آخرون @endif
@if($violation->type === 'warning') إنذار @else مخالفة @endif @if($violation->status === 'active') نشط @else مؤكد @endif @if($violation->is_automatic) تلقائي @endif

{{ Str::limit($violation->title, 60) }}

النقاط المخصومة
@if($violation->points_deducted > 0)
-{{ $violation->points_deducted }}
@else
لا يوجد
@endif
التاريخ
{{ $violation->created_at->format('Y/m/d') }}
المنشئ: {{ $violation->creator_display_name }}
@if($violation->created_by === auth()->id() && $violation->status === 'active') @endif @if($violation->attachment) @endif
@endforeach
@if($violations->hasPages())

عرض {{ $violations->firstItem() }} إلى {{ $violations->lastItem() }} من أصل {{ $violations->total() }} نتيجة

{{ $violations->appends(request()->query())->links() }}
@endif @else

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

جرب تغيير معايير البحث

@endif
@endsection @push('scripts') @endpush