@extends('admin.layout') @section('title', 'Battles') @section('subtitle', $battles->total() . ' total') @section('content')
| Challenger | Opponent | Category | Score | Winner | Status | When | |
|---|---|---|---|---|---|---|---|
| {{ $b->challenger->battle_name ?? '—' }} | @if ($b->is_bot_match) 🤖 {{ $b->bot_name }} @else {{ $b->opponent->battle_name ?? '—' }} @endif | {{ $b->category->label ?? '—' }} | {{ $b->challenger_score }} – {{ $b->opponent_score }} | {{ $b->winner->battle_name ?? ($b->is_bot_match && ! $b->winner_id ? $b->bot_name : '—') }} | {{ ucfirst($b->status) }} | {{ $b->created_at->diffForHumans() }} | View |
| No battles. | |||||||