@extends('backoffice.dashboard') @section('content') @if(Auth::check())
{{-- header (title + create) --}}

المناظرات

إنشاء مناظرة
{{-- Zone de recherche --}}
{{-- body --}}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('warning'))
{!! session('warning') !!}
@endif
@forelse($concours as $c) {{-- Download Column --}} {{-- Upload Column --}} @empty @endforelse
العنوان الفترة الحالة المنشئ قائمة المترشحين تحميل النتائج عرض إجراءات
{{ $c->titre_ar }}
@if(!empty($c->description)) {{ Str::limit($c->description, 80) }} @endif
{{ optional($c->date_debut)->format('Y-m-d') ?? '—' }} — {{ optional($c->date_fin)->format('Y-m-d') ?? '—' }}
@php $etat = $c->etat ?? 'draft'; $etatLabel = $c->etat_label ?? ucfirst($etat); $badgeClass = $etat === 'published' ? 'status-badge--success' : ($etat === 'closed' ? 'status-badge--danger' : 'status-badge--danger'); @endphp {{ $etatLabel }}
{{ optional($c->user)->nom_prenom ?? '—' }}
تنزيل
@csrf
المترشحين
@csrf @method('DELETE')
لا توجد مسابقات بعد.
إجمالي: {{ $concours->total() }}
{{ $concours->appends(request()->query())->links('pagination::bootstrap-5') }}
{{-- SweetAlert2 for nicer confirmations --}} @else @endif @endsection