@extends('layouts.superadmin') @section('title', 'تفاصيل ' . ($violation->type === 'warning' ? 'الإنذار' : 'المخالفة') . ' - ' . $violation->title) @section('content')

@if($violation->type === 'warning') @else @endif {{ $violation->title }}

{{ $violation->created_at_formatted }}

@if(!$violation->isConfirmed()) تعديل {{ $violation->type_name }} @endif العودة للقائمة

@if($violation->type === 'warning') @else @endif معلومات {{ $violation->type_name }}

حالة {{ $violation->type_name }} @if($violation->status == 'pending') معلق @elseif($violation->status == 'active') نشط @else مؤكدة @endif
@if($violation->type === 'warning')
@else
@endif
نوع الحدث
{{ $violation->type_name }}
@if($violation->type === 'violation' && $violation->points_deducted > 0)
النقاط المخصومة
{{ $violation->points_deducted }} نقطة × {{ $violation->members->count() }} عضو = {{ $violation->points_deducted * $violation->members->count() }} نقطة إجمالي
@endif
وصف {{ $violation->type_name }}

{{ $violation->description }}

منشئ {{ $violation->type_name }}
{{ $violation->creator->name }} @if(!$violation->show_creator_name) مخفي للأعضاء @endif
{{ $violation->created_at_formatted }} @if(!$violation->show_creator_name) • يظهر للأعضاء كـ "مجهول الهوية" @endif
@if($violation->is_automatic)
تلقائي
@endif
@if($violation->attachment)
المرفقات
مرفق إثبات
انقر لتحميل الملف
تحميل
@endif @if($violation->isConfirmed())

تم تأكيد {{ $violation->type_name }}

تاريخ التأكيد: {{ $violation->resolved_at_formatted }}

@if($violation->admin_notes)

{{ $violation->admin_notes }}

@endif
@endif

الأعضاء المخالفون ({{ $violation->members->count() }})

@forelse($violation->members as $member)
{{ $member->user->name }}
@php $role = $member->user->roles->first(); $roleNames = [ 'advisor' => 'مستشار الفريق', 'moderator' => 'مشرف', 'official-member' => 'عضو رسمي', 'member' => 'عضو بيتا' ]; @endphp {{ $roleNames[$role->name] ?? $role->display_name ?? $role->name }}
@if($violation->type === 'violation' && $violation->points_deducted > 0)
خصم {{ $violation->points_deducted }} نقطة
@endif
@if($member->acknowledged) تم الإقرار
{{ $member->acknowledged_at_formatted }}
@else في الانتظار @endif
@if($member->member_response)
رد العضو:

{{ $member->member_response }}

@endif
@empty
لا يوجد أعضاء في هذه {{ $violation->type_name }}
@endforelse
@if($violation->members->count() > 0)
إحصائيات الإقرار
@php $acknowledgedCount = $violation->members->where('acknowledged', true)->count(); $totalCount = $violation->members->count(); $pendingCount = $totalCount - $acknowledgedCount; $acknowledgedPercentage = $totalCount > 0 ? round(($acknowledgedCount / $totalCount) * 100) : 0; @endphp
تم الإقرار {{ $acknowledgedCount }}/{{ $totalCount }}
في الانتظار {{ $pendingCount }}
نسبة الإقرار: {{ $acknowledgedPercentage }}%
@if($violation->type === 'violation' && $violation->points_deducted > 0)
إجمالي النقاط المخصومة
{{ $violation->points_deducted * $totalCount }} نقطة
{{ $violation->points_deducted }} نقطة × {{ $totalCount }} عضو
@endif
@endif
@if(session('success'))

تم بنجاح!

{{ session('success') }}

@endif @if(session('error'))

خطأ!

{{ session('error') }}

@endif @endsection