@extends('admin.layouts.app') @section('title', "赛马第 #{$race->id} 场下注明细") @section('content') @php require resource_path('views/admin/partials/list-theme.php'); @endphp @php $horses = $race->horses ?? []; $winner = collect($horses)->firstWhere('id', $race->winner_horse_id); $tableCellClass = 'px-4 py-3'; $badgeClass = $adminListBadgeBaseClass; @endphp

🐎 赛马 #{{ $race->id }} 场下注明细

结算时间:{{ $race->settled_at?->format('Y-m-d H:i:s') ?? '未结算' }} @if ($winner)  · 胜者:{{ $winner['emoji'] ?? '' }} {{ $winner['name'] ?? '' }} @endif  · 注池:{{ number_format($race->total_pool ?? 0) }} 金币

← 返回场次列表
@if (count($horses) > 0)
参赛马匹
保留冠军高亮,仅统一容器与间距风格。
@foreach ($horses as $horse)
{{ $horse['emoji'] ?? '🐎' }}
{{ $horse['name'] }} @if ($horse['id'] === $race->winner_horse_id) 🏆 @endif
@endforeach
@endif
下注明细
统一下注列表样式,保留命中胜马与中奖状态颜色。
@forelse ($bets as $bet) @php $betHorse = collect($horses)->firstWhere('id', $bet->horse_id); $isWinner = $bet->horse_id === $race->winner_horse_id; $won = ($bet->payout ?? 0) > 0; @endphp @empty @endforelse
玩家 押注马匹 押注金额 实际获得 是否中奖 下注时间
{{ $bet->user?->username ?? '已注销' }} @if ($betHorse) {{ $betHorse['emoji'] ?? '' }} {{ $betHorse['name'] ?? '' }} @else #{{ $bet->horse_id }} @endif {{ number_format($bet->amount) }} {{ $won ? '+' . number_format($bet->payout) : '0' }} @if ($won) 🎉 中奖 @else 未中 @endif {{ $bet->created_at->format('H:i:s') }}
本场无人下注
@if ($bets->hasPages())
{{ $bets->links() }}
@endif
@endsection