Match History
Riwayat Match
Semua pertandingan kamu
@php $user = auth()->user(); @endphp
@forelse($matches as $match) @php $isHost = $match->host_id === $user->id; $myScore = $isHost ? $match->score_host : $match->score_guest; $opScore = $isHost ? $match->score_guest : $match->score_host; $opUser = $isHost ? $match->guest : $match->host; $won = $match->winner_id === $user->id; $draw = is_null($match->winner_id) && $match->status === 'completed'; $ec = $isHost ? ($match->elo_change_host ?? 0) : ($match->elo_change_guest ?? 0); @endphp @empty @endforelse
Lawan Hasil Skor ELO Tanggal
{{ $opUser?->username ?? 'Unknown' }}
@php $od = getDivision($opUser?->elo ?? 1200); @endphp {{ $od['name'] }}
{{ $draw ? 'Draw' : ($won ? '✓ Menang' : '✗ Kalah') }} {{ $myScore }} – {{ $opScore }} {{ $ec != 0 ? ($ec > 0 ? '+' : '').$ec : '—' }} {{ $match->created_at->format('d M Y') }}
{{ $match->created_at->format('H:i') }}
Belum ada pertandingan
Cari Lawan Sekarang
@if($matches->hasPages())
{{ $matches->links() }}
@endif