@forelse ($matches as $match)
@php
$isJoined = in_array($match->Match_Key ?? '', $joinedMatchKeys);
$left = max(0, ($match->Player_Need ?? 0) - ($match->Player_Join ?? 0));
$progress = (($match->Player_Need ?? 0) > 0) ? (($match->Player_Join ?? 0) / $match->Player_Need) * 100 : 0;
$bannerImage = asset('assets/images/match.png');
$detailsUrl = route('match.details', ['game' => $type, 'id' => $match->id]);
@endphp
{{ $match->Play_Map ?? 'TDM' }}
Mobile
ID: {{ $match->id }}
Calculating...
{{ isset($match->Match_Time) ? \Carbon\Carbon::parse($match->Match_Time)->format('h:i A') : '00:00' }}
{{ $match->Match_Title ?? 'No Title' }}
Prize Pool
৳{{ intval($match->Total_Prize ?? 0) }}
Per Kill
৳{{ intval($match->Per_Kill ?? 0) }}
Entry
৳{{ intval($match->Entry_Fee ?? 0) }}
Type
{{ $match->Entry_Type ?? 'Solo' }}
({{ $match->Player_Join ?? 0 }}/{{ $match->Player_Need ?? 0 }}) Only {{ $left }} Spots Left
@if($isJoined)
Joined
@else
Join Now
@endif
@empty
@endforelse
@forelse ($results as $resultMatch)
@php
$bannerImage = asset('assets/images/match.png');
$resultUrl = url('/match-result-details/'.$type.'/'.$resultMatch->id);
@endphp
{{ $resultMatch->Play_Map ?? 'TDM' }}
Mobile
ID: {{ $resultMatch->id }}
Finished
{{ isset($resultMatch->Match_Time) ? \Carbon\Carbon::parse($resultMatch->Match_Time)->format('h:i A') : '00:00' }}
{{ $resultMatch->Match_Title ?? 'No Title' }}
Prize Pool
৳{{ intval($resultMatch->Total_Prize ?? 0) }}
Per Kill
৳{{ intval($resultMatch->Per_Kill ?? 0) }}
Entry
৳{{ intval($resultMatch->Entry_Fee ?? 0) }}
Type
{{ $resultMatch->Entry_Type ?? 'Solo' }}
@empty
@endforelse