@extends('layouts.admin') @section('page-title', 'Inscriptions') @section('content')

Liste des inscriptions

Consultez et traitez les demandes d'inscription

@if(count($inscriptions) > 0)
@foreach($inscriptions as $inscription) @php $isNew = $inscription->statut === 'en_attente'; @endphp @endforeach
Candidat Programme Statut Date Actions
{{ strtoupper(substr($inscription->prenom, 0, 1) . substr($inscription->nom, 0, 1)) }} @if($isNew) @endif

{{ $inscription->nom }} {{ $inscription->prenom }}

{{ $inscription->email }}

{{ $inscription->programme->titre ?? 'N/A' }} @php $statutConfig = [ 'en_attente' => ['label' => 'En attente', 'bg' => 'bg-amber-100', 'text' => 'text-amber-700', 'border' => 'border-amber-200', 'dot' => 'bg-amber-500'], 'acceptee' => ['label' => 'Acceptée', 'bg' => 'bg-emerald-100', 'text' => 'text-emerald-700', 'border' => 'border-emerald-200', 'dot' => 'bg-emerald-500'], 'refusee' => ['label' => 'Refusée', 'bg' => 'bg-red-100', 'text' => 'text-red-700', 'border' => 'border-red-200', 'dot' => 'bg-red-500'], ]; $config = $statutConfig[$inscription->statut] ?? ['label' => $inscription->statut, 'bg' => 'bg-slate-100', 'text' => 'text-slate-600', 'border' => 'border-slate-200', 'dot' => 'bg-slate-400']; @endphp {{ $config['label'] }}

{{ $inscription->created_at->format('d/m/Y') }}

{{ $inscription->created_at->format('H:i') }}

@if(method_exists($inscriptions, 'links') && $inscriptions->hasPages())
{{ $inscriptions->links() }}
@endif @else

Aucune inscription

Les candidatures soumises via le site apparaîtront ici. Vous pourrez les consulter et les traiter.

Les nouvelles inscriptions arrivent automatiquement
@endif
@endsection