@extends('tablar::page')

@section('content')
<div class="page-header d-print-none">
    <div class="container-xl">
        <div class="row g-2 align-items-center">
            <div class="col">
                <h2 class="page-title">Winner Totals</h2>
            </div>
        </div>
    </div>
</div>
<div class="page-body">
    <div class="container-xl">
        <div class="row row-cards">
            <div class="col-12">
                <div class="card">
                    <div class="table-responsive">
                        <table class="table table-vcenter card-table">
                            <thead>
                                <tr>
                                    <th>Bidder</th>
                                    <th>Total Won</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach($winner_totals as $total)
                                    <tr>
                                        <td>{{ $total->bidder_fname }} {{ $total->bidder_lname }}</td>
                                        <td>${{ number_format($total->total_won, 2) }}</td>
                                    </tr>
                                @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
@push('js')
@endpush
