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

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

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

@if($reportObjection->status == 'pending' && $reportObjection->target_id === auth()->id()) @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' ? 'بلاغ' : 'اعتراض' }}

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

@if($reportObjection->user)

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

@endif

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

@if($reportObjection->target)

{{ $reportObjection->target->email }}

{{ $reportObjection->target_type == 'superadmin' ? 'سوبر أدمن' : 'مشرف' }}

@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

تفاصيل {{ $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->isReviewed())

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

@if($reportObjection->reviewer)

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

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

@php $reviewerRole = $reportObjection->reviewer->roles->first(); $roleNames = [ 'super-admin' => 'سوبر أدمن', 'moderator' => 'مشرف' ]; @endphp @if($reviewerRole)

{{ $roleNames[$reviewerRole->name] ?? $reviewerRole->name }}

@endif @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 }} ({{ $reportObjection->target_type == 'superadmin' ? 'سوبر أدمن' : 'مشرف' }})

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

لم تتم المراجعة بعد

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

@if($reportObjection->status == 'pending' && $reportObjection->target_id === auth()->id())
مطلوب اتخاذ إجراء:
هذا الطلب مُوجه إليك ويحتاج لمراجعتك. يمكنك قبوله أو رفضه مع إضافة ملاحظاتك.
@endif
@endif

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

@if($reportObjection->status == 'pending' && $reportObjection->target_id === auth()->id())
اتخاذ قرار:
قم بمراجعة الطلب واتخاذ القرار المناسب
@endif @if($reportObjection->status == 'pending' && $reportObjection->user_id === auth()->id())
يمكنك التعديل:
ما دام الطلب قيد المراجعة، يمكنك تعديله
@endif
{{-- مودال مراجعة سريع --}} @if($reportObjection->status == 'pending' && $reportObjection->target_id === auth()->id()) @endif @endsection