<div class="row">
    <div class="col-sm-12">
        <h3>Total Prizes</h1>
            <table class="custom-table" style="width: 100%;">
                <tr>
                    <th style="width: 40%;">Prize</th>
                    <th>Max Allowed</th>
                    <th>Max Allowed Per Hour</th>
                    <th>Total Allocated</th>
                    <th>Pending</th>
                </tr>
                @foreach ($totalPrizes as $totalPrize)
                <tr>
                    <td>{{ $totalPrize['id'].' '.$totalPrize['name'] }}</td>
                    <td>{{ $totalPrize['max_allowed_total'] }}</td>
                    <td>{{ $totalPrize['max_allowed_per_hour'] }}</td>
                    <td>{{ $totalPrize['total_allocated_count'] }}</td>
                    <td>{{ $totalPrize['max_allowed_total'] - $totalPrize['total_allocated_count'] }}</td>
                </tr>
                @endforeach
            </table>
    </div>
    <div class="col-sm-12">
        <h3 class="mt-3">Configuration</h1>
            <table class="custom-table" style="width: 100%;">
                <tr>
                    <th>Key</th>
                    <th>Value</th>
                </tr>
                @foreach ($configurations as $configuration)
                <tr>
                    <td class="">{{ $configuration['key'] == "LastPrizeDistributedId" ? "Last Prize
                        Allocated" : "Default Prize Distribution Count" }}</td>
                    <td class="">{{ $configuration['key'] == "LastPrizeDistributedId" ? $lastPrize :
                        $configuration['value'] }}</td>
                </tr>
                @endforeach
                <tr>
                    <td class="">Total Prize Count</td>
                    <td class="">{{ $totalCounts['Available'] }}</td>
                </tr>
                <tr>
                    <td class="">Total Prize Allocated</td>
                    <td class="">{{ $totalCounts['Allocated'] }}</td>
                </tr>
            </table>
    </div>
</div>
