@if (auth('staff')->user()->hasPermission('tournaments.manage')) Create tournament @endif Tournament Mode Entry fee Slots Status Starts Actions @forelse ($tournaments as $tournament) @php($fill = $tournament->total_slots > 0 ? min(100, round($tournament->joined_count / $tournament->total_slots * 100)) : 0) {{ $tournament->title }} {{ $tournament->game->name }} {{ $tournament->mode }} @if ($tournament->isFree()) Free @else {{ $tournament->entry_fee }} @endif
{{ $tournament->joined_count }}/{{ $tournament->total_slots }}
{{ $tournament->scheduled_start_at->format('d M, H:i') }} View entries @empty @if (auth('staff')->user()->hasPermission('tournaments.manage')) Create tournament @endif @endforelse {{ $tournaments->links() }}