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

المناظرات

إنشاء مناظرة
{{-- optional second header row (filters etc) - keep empty for now or reuse) --}}
إعادة
{{-- body --}}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($concours as $c) @empty @endforelse
العنوان الفترة الحالة المنشئ المترشحون عرض إجراءات
{{ $c->titre }}
@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-published' : ($etat === 'closed' ? 'status-closed' : 'status-draft'); @endphp {{ $etatLabel }}
{{ optional($c->user)->nom_prenom ?? '—' }}
{{-- ID: {{ $c->user->id ?? '—' }} --}}
{{ $c->candidates_count ?? $c->candidates()->count() }} مترشح المترشحين
تعديل
@csrf @method('DELETE')
لا توجد مسابقات بعد.
إجمالي: {{ $concours->total() }}
{{ $concours->appends(request()->query())->links('pagination::bootstrap-5') }}
{{-- SweetAlert2 for nicer confirmations --}} @else @endif @endsection