@extends('admin.layout') @section('title', 'Results') @php $label = fn (string $d) => \Illuminate\Support\Carbon::parse($d)->format('d-m-Y'); $back = route('admin.results', ['month' => $month], false); @endphp @section('content')

Results - {{ $monthLabel }}

Add or update a result

@csrf
← Previous month @if($month < substr($today, 0, 7)) Next month → @endif
@foreach($games as $g) @endforeach @forelse($days as $d) @php $row = $map[$d] ?? []; @endphp @foreach($games as $g) @endforeach @empty @endforelse
Date{{ strtoupper($g->name) }}Actions
{{ $label($d) }} @if(isset($row[$g->id]))
@csrf {{ $row[$g->id] }}
@else - @endif
Edit @if($row)
@csrf
@endif
No days in this month yet.

Import history (CSV)

One row per result: game_slug,YYYY-MM-DD,number (number 00-99, XX for no result, empty to delete). Slugs: {{ $games->pluck('slug')->implode(', ') }}. Existing results are overwritten. No notifications are sent.

@csrf
@endsection