@extends('admin.layouts.app')
@section('styles')
@include('admin.leagues.partials._final_squads_figma_styles')
@endsection
@section('content')
@include('admin.layouts.alert')
@php
$summaryAuction = $summary['auction'] ?? [];
$summarySpending = $summary['spending'] ?? [];
$mostExpensive = $summary['mostExpensivePlayer'] ?? null;
$topTeam = $summary['topSpendingTeam'] ?? null;
@endphp
Total Players Sold
{{ $summaryAuction['soldLots'] ?? 0 }}/{{ $summaryAuction['totalLots'] ?? 0 }}
{{ number_format($summaryAuction['soldPercentage'] ?? 0, 1) }}%
Total Auction Spend
{{ $summarySpending['totalSpend'] ?? '—' }}
Avg spend: {{ $summarySpending['averageSpend'] ?? '—' }} · Avg remaining: {{ $summarySpending['averageRemainingBudget'] ?? '—' }}
Most Expensive Player
@if ($mostExpensive)
{{ $mostExpensive['playerName'] }}
{{ $mostExpensive['amount'] }} Sold to {{ $mostExpensive['teamName'] }}
@else
No sales yet
—
@endif
Top Spending Team
@if ($topTeam)
{{ $topTeam['teamName'] }}
Spent {{ $topTeam['spend'] }}
@if ($topTeam['budgetPercent'] !== null)
({{ $topTeam['budgetPercent'] }}% Budget)
@endif
@else
No sales yet
—
@endif
@forelse ($recentSignings as $signing)
{{ $signing['playerName'] }}
{{ $signing['role'] }} — {{ $signing['teamName'] }}
{{ $signing['soldPrice'] }} Sold
@empty
No recent signings yet.
@endforelse
@if (($historyAvailable ?? true) && empty($loadError))
VIEW FULL AUCTION HISTORY
@else
@endif
@include('admin.leagues.partials._final_squads_figma')
@endsection
@section('scripts')
@endsection