MultilineClients odds as blade
This commit is contained in:
1 parent
33105f33d0
commit
200f2be3e2
3 files changed
+20
-30
No files matched your search
@@ -104,7 +104,7 @@ class MultilineClient extends Column
|
||||
$item->a = 0;
|
||||
$item->b = 0;
|
||||
$item->c = 0;
|
||||
$item->marging = 0;
|
||||
$item->margin = 0;
|
||||
$multilines[$slot] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
@php
|
||||
use App\Utilities\BkmIconMap;
|
||||
use App\Utilities\OddsFormatting;
|
||||
$loadSlots($getState(), $record->multiline_client);
|
||||
@endphp
|
||||
|
||||
@@ -10,39 +9,19 @@
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 grid-rows-5 oddsbox">
|
||||
@endif
|
||||
|
||||
|
||||
@foreach ($getSlots() as $row)
|
||||
<div class="bg-contain bg-center bg-no-repeat dark:opacity-90" title="{{ $row->bookmaker_id }}"
|
||||
style="background-image: url('{{ BkmIconMap::get($row->icon) }}')">
|
||||
</div>
|
||||
<div class="br bb text-right">
|
||||
|
||||
@if (isset($row->a))
|
||||
{{ OddsFormatting::get($row->a, 2) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@include('filament.tables.columns.odds', ['odd' => $row->a, 'decimal' => 2])
|
||||
|
||||
@if ($has3Columns())
|
||||
<div class="br bb text-right">
|
||||
|
||||
@if (isset($row->b))
|
||||
{{ OddsFormatting::get($row->b, 2) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@include('filament.tables.columns.odds', ['odd' => $row->b, 'decimal' => 2])
|
||||
@endif
|
||||
<div class="br bb text-right">
|
||||
|
||||
@if (isset($row->c))
|
||||
{{ OddsFormatting::get($row->c, 2) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="br bb text-right">
|
||||
|
||||
@if (isset($row->margin))
|
||||
{{ OddsFormatting::get($row->margin, 1) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
@include('filament.tables.columns.odds', ['odd' => $row->c, 'decimal' => 2])
|
||||
|
||||
@include('filament.tables.columns.odds', ['odd' => $row->margin, 'decimal' => 1])
|
||||
@endforeach
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
@php
|
||||
use App\Utilities\OddsFormatting;
|
||||
@endphp
|
||||
|
||||
<div class="br bb text-right">
|
||||
|
||||
@if (isset($odd))
|
||||
{{ OddsFormatting::get($odd, $decimal) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
Reference in new issue
Block a user