{{-- resources/views/general/my-honors-rewards/index.blade.php --}} @extends($layout) @section('title', 'تكريماتي ومكافآتي') @section('content')
{{-- Page Header --}}

تكريماتي ومكافآتي

جميع التكريمات والمكافآت التي حصلت عليها

طباعة
{{-- Statistics Cards --}}
{{-- Total --}}

الإجمالي

{{ $stats['total_received'] }}

{{-- Honors --}}

التكريمات

{{ $stats['honors_received'] }}

{{-- Rewards --}}

المكافآت

{{ $stats['rewards_received'] }}

{{-- Points --}}

نقاط مكتسبة

{{ $stats['points_from_honors_rewards'] }}

{{-- Ranks --}}

الرتب

{{ $stats['ranks_received'] }}

{{-- User Ranks Section --}} @if($userRanks->count() > 0)

رتبي الحالية

@foreach($userRanks as $rank)
@if($rank->icon === 'star') @else @endif

{{ $rank->name }}

@if($rank->description)

{{ Str::limit($rank->description, 50) }}

@endif
@endforeach
@endif {{-- Filters Section --}}

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

{{-- Search --}}
{{-- Type Filter --}}
{{-- Year Filter --}}
إعادة تعيين
{{-- Honours and Rewards Cards Grid --}}
@forelse($honorsRewards as $item)
{{-- Header --}}
@if($item->honorReward->type === 'honor') @else @endif

{{ $item->honorReward->title }}

{{ $item->honorReward->type === 'honor' ? 'تكريم' : 'مكافأة' }}

{{ $item->honorReward->reason }}

{{-- Meta Info --}}
{{ $item->honorReward->creator->name }}
{{ $item->honorReward->created_at->format('Y/m/d') }}
{{-- Points Badge --}} @if($item->honorReward->points_amount && $item->points_awarded)
حصلت على {{ $item->honorReward->points_amount }} نقطة
@endif {{-- Rank Award --}} @if($item->honorReward->rank && $item->rank_awarded)
@if($item->honorReward->rank->icon === 'star') @else @endif

حصلت على رتبة: {{ $item->honorReward->rank->name }}

@if($item->honorReward->rank->description)

{{ $item->honorReward->rank->description }}

@endif
@endif {{-- Action Button --}}
@empty

لا توجد تكريمات أو مكافآت

لم تحصل على أي تكريمات أو مكافآت حتى الآن

@endforelse
{{-- Pagination --}} @if($honorsRewards->hasPages())
{{ $honorsRewards->links() }}
@endif
@endsection