@extends('layouts.superadmin') @section('title', 'تفاصيل ' . ($reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض') . ' - #' . $reportObjection->id) @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

تفاصيل {{ $reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض' }} #{{ $reportObjection->id }}

{{ $reportObjection->subject }} - {{ $reportObjection->created_at->format('Y/m/d') }}

@if($reportObjection->status == 'pending') @endif العودة للقائمة
@if($reportObjection->type == 'report') @else @endif

{{ $reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض' }} #{{ $reportObjection->id }}

تاريخ الإرسال: {{ $reportObjection->created_at->format('Y/m/d H:i') }}

@if($reportObjection->status == 'approved') مقبول @elseif($reportObjection->status == 'pending') قيد المراجعة @else مرفوض @endif @if($reportObjection->type == 'report') @else @endif {{ $reportObjection->type == 'report' ? 'بلاغ' : 'اعتراض' }} @if($reportObjection->status == 'pending') يحتاج مراجعة @endif

{{ $reportObjection->user ? $reportObjection->user->name : 'غير محدد' }}

@if($reportObjection->user)

{{ $reportObjection->user->email }}

@php $userRole = $reportObjection->user->roles->first(); $roleColor = match($userRole?->name) { 'moderator' => 'text-blue-600 dark:text-blue-400', 'official-member', 'member' => 'text-green-600 dark:text-green-400', default => 'text-gray-600 dark:text-gray-400' }; $roleName = match($userRole?->name) { 'moderator' => 'مشرف', 'official-member' => 'عضو رسمي', 'member' => 'عضو بيتا', default => 'غير محدد' }; @endphp @if($userRole)

{{ $roleName }}

@endif @endif

السوبر أدمن

الإدارة العليا

@if($reportObjection->status === 'approved') @elseif($reportObjection->status === 'pending') @else @endif

@if($reportObjection->status == 'approved') مقبول @elseif($reportObjection->status == 'pending') قيد المراجعة @else مرفوض @endif

@if($reportObjection->reviewed_at)

راجع في: {{ $reportObjection->reviewed_at->format('Y/m/d H:i') }}

@endif
@php $hoursPassed = $reportObjection->created_at->diffInHours(now()); $priority = $hoursPassed > 48 ? 'عالية' : ($hoursPassed > 24 ? 'متوسطة' : 'عادية'); $priorityColor = $hoursPassed > 48 ? 'text-red-600 dark:text-red-400' : ($hoursPassed > 24 ? 'text-yellow-600 dark:text-yellow-400' : 'text-green-600 dark:text-green-400'); @endphp

{{ $priority }}

منذ {{ $reportObjection->created_at->diffForHumans() }}

تفاصيل {{ $reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض' }}

{{ $reportObjection->subject }}

{{ $reportObjection->details }}

@if($reportObjection->attachment)
@php $extension = pathinfo($reportObjection->attachment, PATHINFO_EXTENSION); $isImage = in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'webp']); @endphp @if($isImage) مرفق @else تحميل المرفق @endif
@endif
@if($reportObjection->reviewed_at)

نتيجة المراجعة

@if($reportObjection->reviewer)

{{ $reportObjection->reviewer->name }}

{{ $reportObjection->reviewed_at->format('Y/m/d H:i') }}

سوبر أدمن

@else

مراجعة تلقائية

{{ $reportObjection->reviewed_at->format('Y/m/d H:i') }}

@endif
@if($reportObjection->status == 'approved') @else @endif

{{ $reportObjection->status == 'approved' ? 'تم قبول الطلب' : 'تم رفض الطلب' }}

@if($reportObjection->review_reply)

{{ $reportObjection->review_reply }}

@if($reportObjection->reviewer)

- {{ $reportObjection->reviewer->name }} (سوبر أدمن)

@endif
@endif
@if($reportObjection->status == 'approved')
تم قبول {{ $reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض' }}: سيتم اتخاذ الإجراء المناسب بناءً على هذا الطلب. شكراً للمساهمة في تحسين الفريق.
@else
تم رفض {{ $reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض' }}: يرجى مراجعة الملاحظات أعلاه لفهم أسباب الرفض.
@endif
@else

يحتاج لمراجعة عاجلة

{{ $reportObjection->type == 'report' ? 'البلاغ' : 'الاعتراض' }} ما زال قيد المراجعة ويحتاج لاتخاذ قرار

مطلوب اتخاذ إجراء:
هذا الطلب مرسل إلى السوبر أدمن ويحتاج لمراجعتك. يمكنك قبوله أو رفضه مع إضافة ملاحظاتك حول القرار. @if($reportObjection->created_at->diffInHours(now()) > 24)
تنبيه: هذا الطلب معلق منذ أكثر من {{ $reportObjection->created_at->diffInHours(now()) }} ساعة. @endif
@endif

إجراءات الإدارة العليا

@if($reportObjection->status == 'pending')
قبول الطلب:
الموافقة على صحة البلاغ/الاعتراض
رفض الطلب:
عدم الموافقة مع توضيح الأسباب
@endif
سجل الإجراءات:
عرض تاريخ جميع الإجراءات

معلومات إضافية

إحصائيات سريعة
زمن انتظار المراجعة: @if($reportObjection->reviewed_at) {{ $reportObjection->created_at->diffInHours($reportObjection->reviewed_at) }} ساعة @else {{ $reportObjection->created_at->diffInHours(now()) }} ساعة (جاري) @endif
طلبات سابقة للمرسل: @if($reportObjection->user) {{ \App\Models\ReportObjection::where('user_id', $reportObjection->user_id)->count() }} @else 0 @endif
آخر نشاط للمرسل: {{ $reportObjection->user ? $reportObjection->user->last_activity?->diffForHumans() ?? 'غير متوفر' : 'غير متوفر' }}
إرشادات المراجعة
تحقق من مصداقية المرسل
أضف ملاحظات واضحة للقرار
اعتبر تأثير القرار على الفريق
{{-- مودال مراجعة السوبر أدمن --}} {{-- مودال تأكيد الحذف --}} {{-- مودال سجل الإجراءات --}} @endsection