Files
nuhodds_fi4/resources/views/filament/tables/columns/odds-totals.blade.php
T
2025-12-16 15:52:07 +01:00

23 lines
877 B
PHP

<?php
use App\Utilities\BkmIconMap;
use App\Utilities\OddsFormatting;
?>
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 grid-rows-5 oddsbox">
{{ $loadSlots($record->odds_totals) }}
@foreach ($getSlots() as $row)
@if (isset($row->bookmaker))
<div class="bg-contain bg-center bg-no-repeat dark:opacity-90" title="{{ $row->bookmaker->txid }}"
style="background-image: url('{{ BkmIconMap::get($row->bookmaker?->icon) }}')">
</div>
<div class="br bb">{{ OddsFormatting::get($row->over, 2) }}&nbsp;</div>
<div class="br bb">{{ OddsFormatting::get($row->under, 2) }}&nbsp;</div>
<div class="br bb">{{ OddsFormatting::get($row->total, 1) }}&nbsp;</div>
<div class="br bb">{{ OddsFormatting::get($row->margin, 1) }}&nbsp;</div>
@endif
@endforeach
</div>