@extends('layouts.superadmin') @section('title', 'إدارة الفائزين: ' . $competition->title) @section('header')

إدارة الفائزين

{{ $competition->title }}

@endsection @section('content') {{-- Navigation Tabs - Responsive --}}
القائمة نظرة عامة المشاركون {{ $competition->participants()->count() }} الإرسالات {{ $competition->submissions()->count() }} الفائزون @php($winnersCount = $competition->participants()->where('status', 'winner')->count()) @if($winnersCount > 0) {{ $winnersCount }} @endif
{{-- Custom Scrollbar Styles --}}

إجمالي الفائزين

{{ $winners->total() }}

المؤهلون للفوز

{{ $qualifiedCount }}

إجمالي النقاط الممنوحة

{{ number_format($totalPointsAwarded) }}

الرتب الممنوحة

{{ $ranksAwarded }}

{{-- قائمة المؤهلين للفوز - Cards --}} @if($qualifiedParticipants->count() > 0)

المشاركون المؤهلون للفوز

يمكنك اختيار الفائزين من هؤلاء المشاركين المؤهلين

{{ $qualifiedParticipants->count() }} مؤهل
@foreach($qualifiedParticipants as $participant)
{{-- Participant Header --}}
{{ $participant->user->name }}

{{ $participant->user->name }}

{{ $participant->user->email }}

{{-- Participant Info --}}

تاريخ التأهيل

{{ $participant->qualified_at ? $participant->qualified_at->format('Y/m/d H:i') : '-' }}

عدد الإرسالات

{{ $participant->submissions_count ?? 0 }}
@if($participant->qualifierUser)

المؤهل بواسطة

{{ $participant->qualifierUser->name }}

@endif
{{-- Action Button --}}
@endforeach
@endif {{-- قائمة الفائزين - Cards Grid --}}

قائمة الفائزين

@if($winners->total() > 0) {{ $winners->total() }} فائز @endif
@forelse($winners as $winner)
{{-- Winner Header --}}
{{ $winner->user->name }}

{{ $winner->user->name }}

{{ $winner->user->email }}

{{-- Winner Info --}}

تاريخ الفوز

{{ $winner->won_at ? $winner->won_at->format('Y/m/d H:i') : '-' }}

@if($winner->won_at)

{{ $winner->won_at->diffForHumans() }}

@endif

النقاط الممنوحة

@if($winner->awarded_points > 0) {{ number_format($winner->awarded_points) }} @else - @endif
@if($winner->awardedRank)

الرتبة الممنوحة

@if($winner->awardedRank->icon) {{ $winner->awardedRank->icon }} @endif {{ $winner->awardedRank->name }}
@endif @if($winner->winnerSelectorUser)

اختاره

{{ $winner->winnerSelectorUser->name }}

@endif
{{-- Actions --}}
@empty

لا يوجد فائزون بعد

قم باختيار الفائزين من المشاركين المؤهلين أعلاه

@if($qualifiedParticipants->count() > 0) @endif
@endforelse {{-- Pagination --}} @if($winners->hasPages())
{{ $winners->links() }}
@endif
@endsection