Match #{{ $match->id }} @php $statusStyle = match($match->status) { 'completed' => 'background:#f0fdf4;color:#15803d', 'in_progress' => 'background:#eff6ff;color:#1d4ed8', 'disputed' => 'background:#fef9c3;color:#854d0e', default => 'background:#f1f5f9;color:#64748b', }; @endphp

Match Room

match-{{ str_pad($match->id, 4, '0', STR_PAD_LEFT) }}
@if($match->status === 'in_progress') @endif {{ ucfirst(str_replace('_',' ',$match->status)) }}
{{ $match->host->username }}
Host
@php $hd = getDivision($match->host->elo ?? 1200); @endphp {{ $hd['icon'] }} {{ number_format($match->host->elo ?? 1200) }}
@if($match->status === 'completed')
{{ $match->score_host }}{{ $match->score_guest }}
@if($match->winner_id)
{{ $match->winner->username }} 🏆
@else
Draw
@endif @else
VS
{{ $match->status === 'in_progress' ? '⚡ Live' : 'Menunggu' }}
@endif
{{ $match->guest->username }}
Guest
@php $gd = getDivision($match->guest->elo ?? 1200); @endphp {{ $gd['icon'] }} {{ number_format($match->guest->elo ?? 1200) }}
@if(in_array($match->status, ['pending','in_progress','submitted']) && auth()->check() && in_array(auth()->id(), [$match->host_id, $match->guest_id])) @php $isHost = auth()->id() === $match->host_id; @endphp
Submit Skor (masukkan skor dari sudut pandangmu)
@csrf
@endif
Info Match
@foreach([['Match ID','#'.$match->id],['Dibuat',$match->created_at->format('d M Y H:i')],['Status',ucfirst(str_replace('_',' ',$match->status))]] as [$l,$v])
{{ $l }} {{ $v }}
@endforeach
@if($match->discord_channel_id)
Discord Room
Buka di Discord
@endif
@push('styles') @endpush