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->a = 0;
|
||||||
$item->b = 0;
|
$item->b = 0;
|
||||||
$item->c = 0;
|
$item->c = 0;
|
||||||
$item->marging = 0;
|
$item->margin = 0;
|
||||||
$multilines[$slot] = $item;
|
$multilines[$slot] = $item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
@php
|
@php
|
||||||
use App\Utilities\BkmIconMap;
|
use App\Utilities\BkmIconMap;
|
||||||
use App\Utilities\OddsFormatting;
|
|
||||||
$loadSlots($getState(), $record->multiline_client);
|
$loadSlots($getState(), $record->multiline_client);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@@ -10,39 +9,19 @@
|
|||||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 grid-rows-5 oddsbox">
|
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 grid-rows-5 oddsbox">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@foreach ($getSlots() as $row)
|
@foreach ($getSlots() as $row)
|
||||||
<div class="bg-contain bg-center bg-no-repeat dark:opacity-90" title="{{ $row->bookmaker_id }}"
|
<div class="bg-contain bg-center bg-no-repeat dark:opacity-90" title="{{ $row->bookmaker_id }}"
|
||||||
style="background-image: url('{{ BkmIconMap::get($row->icon) }}')">
|
style="background-image: url('{{ BkmIconMap::get($row->icon) }}')">
|
||||||
</div>
|
</div>
|
||||||
<div class="br bb text-right">
|
@include('filament.tables.columns.odds', ['odd' => $row->a, 'decimal' => 2])
|
||||||
|
|
||||||
@if (isset($row->a))
|
|
||||||
{{ OddsFormatting::get($row->a, 2) }}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@if ($has3Columns())
|
@if ($has3Columns())
|
||||||
<div class="br bb text-right">
|
@include('filament.tables.columns.odds', ['odd' => $row->b, 'decimal' => 2])
|
||||||
|
|
||||||
@if (isset($row->b))
|
|
||||||
{{ OddsFormatting::get($row->b, 2) }}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@endif
|
@endif
|
||||||
<div class="br bb text-right">
|
|
||||||
|
@include('filament.tables.columns.odds', ['odd' => $row->c, 'decimal' => 2])
|
||||||
@if (isset($row->c))
|
|
||||||
{{ OddsFormatting::get($row->c, 2) }}
|
@include('filament.tables.columns.odds', ['odd' => $row->margin, 'decimal' => 1])
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="br bb text-right">
|
|
||||||
|
|
||||||
@if (isset($row->margin))
|
|
||||||
{{ OddsFormatting::get($row->margin, 1) }}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</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