@php $opponent = $battle->club_id === $club->id ? $battle->opponentClub : $battle->club; $ourScore = $battle->scoreFor($club); $theirScore = $battle->club_id === $club->id ? $battle->opponent_score : $battle->club_score; @endphp
← {{ __('clubs.battles_title') }}

{{ $battle->category->name() }}

{{ $club->name }}

vs

{{ $opponent->name }}

@if ($battle->status === \App\Models\ClubBattle::STATUS_COMPLETED)

@if ($battle->winner_club_id) {{ __('clubs.battle_winner', ['club' => $battle->winnerClub->name]) }} @else {{ __('clubs.battle_tied') }} @endif

@endif

{{ __('clubs.battle_window', ['start' => $battle->starts_at->toFormattedDateString(), 'end' => $battle->ends_at->toFormattedDateString()]) }}

@vite('resources/js/echo.js')