@php $statusColors = [ 'draft' => 'secondary', 'submitted' => 'primary', 'validated' => 'success', ]; $statusLabels = [ 'draft' => 'Brouillon', 'submitted' => 'Soumise', 'validated' => 'Validée', ]; @endphp
| # @if ($sortField === 'id') @endif | Formation sanitaire | Campagne | Date @if ($sortField === 'collected_on') @endif | Responsable @if ($sortField === 'data_manager') @endif | Participants | Statut | ||
|---|---|---|---|---|---|---|---|---|
| {{ $s->id }} | @if ($s->structure) {{ $s->structure->name }} @if ($s->structure->type) {{ $s->structure->type }} @endif @else - @endif | {{ $s->campaign?->name ?? '-' }} | {{ $s->collected_on?->format('d/m/Y') }} | {{ $s->data_manager }} | {{ $s->participants_count }} | @php $st = $s->status?->value ?? 'draft'; @endphp {{ $statusLabels[$st] ?? $st }} | ||
| Aucune collecte ne correspond aux filtres. | ||||||||