@if(session('success'))
{{ session('success') }}
@endif
@php $live_matches = $all_matches->get('OnGoing', collect()); $upcoming_matches = $all_matches->get('Match', collect()); $matches_to_show = $live_matches->merge($upcoming_matches); @endphp @forelse ($matches_to_show as $match)

{{ $match->Match_Title }}

{{ $match->Position == 'OnGoing' ? 'Live' : 'Upcoming' }}
Time {{ \Carbon\Carbon::parse($match->Match_Time)->format('d M, h:i A') }}
Slots {{ $match->Player_Join }} / {{ $match->Player_Need }}
Prize {{ $match->Total_Prize }} BDT
Edit Joiners Result
@csrf @method('DELETE')
@empty

No upcoming or live matches found.

@endforelse
@forelse ($all_matches->get('Result', collect()) as $match)

{{ $match->Match_Title }}

Completed
Time {{ \Carbon\Carbon::parse($match->Match_Time)->format('d M, h:i A') }}
Slots {{ $match->Player_Join }} / {{ $match->Player_Need }}
Prize {{ $match->Total_Prize }} BDT
Joiners
@csrf @method('DELETE')
@empty

No completed matches found.

@endforelse