@extends('layouts.shell') @section('title', 'My tournaments') @section('subtitle', 'Posts stay pending until admin approval. Dates and poster cannot be changed.') @section('actions') @if (auth()->user()?->canPublishTournaments()) Post tournament @endif @endsection @section('content')
@forelse ($tournaments as $tournament) @empty @endforelse
PosterDatesStatusApproval
@if ($tournament->posterUrl()) @else No image @endif {{ $tournament->start_date?->toDateString() }} — {{ $tournament->end_date?->toDateString() }} {{ $tournament->status?->value }} @if ($tournament->is_postponed && $tournament->postponed_reason)
{{ $tournament->postponed_reason }}
@endif
{{ $tournament->approval_status?->value }} @if ($tournament->rejection_reason)
{{ $tournament->rejection_reason }}
@endif
@if ($tournament->status?->value !== 'completed') @unless ($tournament->status?->value === 'live')
@csrf
@endunless
@csrf
@csrf
@endif
You have not posted a tournament yet.
{{ $tournaments->links() }}
@include('partials.image-lightbox') @endsection