{{ $page_title }}
{{ 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)
@empty
{{ $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
No upcoming or live matches found.
@endforelse
@forelse ($all_matches->get('Result', collect()) as $match)
@empty
{{ $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
No completed matches found.
@endforelse