@extends('admin.layout') @section('content')

Dashboard

Pilotes

{{ $pilotCount }}

Participants

{{ $participantCount }}

Turnpoints

{{ $turnpointCount }}

Compétition

@if($comp) @if($comp->status === 'active') Active @elseif($comp->status === 'closed') Clôturée @else En attente @endif @else @endif

{{-- ── Journées ── --}} @if($comp && $days->count() > 0)
Journées de vol @if($comp->status === 'active')
@csrf
@endif
@foreach($days as $day) status === 'active') class="table-success" @endif> @endforeach
Jour Date Statut Démarré Clôturé Actions
Jour {{ $day->day_number }} {{ $day->date->format('d/m/Y') }} @if($day->status === 'pending') En attente @elseif($day->status === 'active') Actif @elseif($day->status === 'closed') Clôturé @endif {{ $day->started_at?->format('H:i') ?? '–' }} {{ $day->closed_at?->format('H:i') ?? '–' }}
@if($day->status === 'pending')
@csrf
@elseif($day->status === 'active')
@csrf
@endif Scores
@elseif($comp)
Aucune journée créée. @if($comp->status === 'active')
@csrf
@endif
@else
Aucune compétition configurée. Créer une compétition.
@endif @endsection