@extends('layouts.superadmin') @section('title', 'تفاصيل ' . $honorReward->type_text . ' - ' . $honorReward->title) @section('content')

{{ $honorReward->type_text }} #{{ $honorReward->id }}

عرض تفصيلي لـ{{ $honorReward->type_text }}: {{ $honorReward->title }}

تفاصيل {{ $honorReward->type_text }}

{{ $honorReward->status_text }}

{{ $honorReward->title }}

{{ $honorReward->reason }}

@if($honorReward->additional_notes)

{{ $honorReward->additional_notes }}

@endif @if($honorReward->points_amount || $honorReward->rank_id)
@if($honorReward->points_amount)

{{ $honorReward->points_amount }}

نقطة

@endif @if($honorReward->rank)

{{ $honorReward->rank->name }}

رتبة جديدة

@endif
@endif

المستلمون ({{ $honorReward->recipients->count() }})

@if($recipients->isNotEmpty())
@foreach($recipients as $recipient) @php $recipientRecord = $honorReward->recipients->where('user_id', $recipient->id)->first(); @endphp
{{ substr($recipient->name, 0, 1) }}

{{ $recipient->name }}

{{ $recipient->email }}

@if($recipientRecord && $recipientRecord->awarded_at)

تم المنح: {{ $recipientRecord->awarded_at->format('Y/m/d H:i') }}

@endif
@if($honorReward->points_amount) نقاط @endif @if($honorReward->rank_id) رتبة @endif @if($recipientRecord && $recipientRecord->isFullyAwarded()) مكتمل @endif
@endforeach
@else

لا يوجد مستلمون

لم يتم تحديد أي مستلمين لهذا {{ $honorReward->type_text }}

@endif

إحصائيات التنفيذ

إجمالي المستلمين {{ $executionStats['total_recipients'] }}
@if($honorReward->points_amount)
النقاط الممنوحة {{ $executionStats['points_awarded'] }}
@endif @if($honorReward->rank_id)
الرتب الممنوحة {{ $executionStats['ranks_awarded'] }}
@endif
مكتمل التنفيذ {{ $executionStats['fully_completed'] }}
@php $completionPercentage = $executionStats['total_recipients'] > 0 ? ($executionStats['fully_completed'] / $executionStats['total_recipients']) * 100 : 0; @endphp

نسبة الإكمال: {{ number_format($completionPercentage, 1) }}%

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

{{ $honorReward->type_text }}

{{ $honorReward->creator->name }}

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

@if($honorReward->executed_at)

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

@endif

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

@if($honorReward->status === 'active')

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

@endif

منطقة الخطر

حذف هذا {{ $honorReward->type_text }} سيؤدي إلى إزالة جميع البيانات المرتبطة به نهائياً. هذا الإجراء لا يمكن التراجع عنه.

@push('styles') @endpush @endsection