@extends('layouts.app') @section('title', 'My Matches') @section('show-header', true) @section('back-button', true) @section('page-title', 'My Matches') @section('content') {{-- Tabs --}}
@foreach(['upcoming' => 'Upcoming', 'ongoing' => 'Live', 'result' => 'Results'] as $key => $label) {{ $label }} @endforeach
@forelse($registrations as $reg)
{{ $reg->tournament->game->name }} @if($reg->tournament->status === 'upcoming') Upcoming @elseif($reg->tournament->status === 'ongoing') Live @elseif($reg->tournament->status === 'result') Result @endif

{{ $reg->tournament->title }}

{{ $reg->tournament->scheduled_at->format('d M Y, g:ia') }}

@if($tab === 'result')

{{ $reg->kills }}

Kills

{{ $reg->position ? '#'.$reg->position : '-' }}

Position

৳{{ number_format($reg->prize_won) }}

Earned

@endif @if($tab === 'ongoing' && $reg->tournament->room_id)

Room ID

{{ $reg->tournament->room_id }}

Password

{{ $reg->tournament->room_password ?: 'None' }}

@endif
@empty

No {{ $tab }} matches

Browse Tournaments
@endforelse {{ $registrations->withQueryString()->links('user.components.pagination') }}
@endsection