stuck with livewire
This commit is contained in:
1 parent
b21cdb507a
commit
c0f2689ff6
30 files changed
+372
-64
No files matched your search
@@ -12,11 +12,16 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_dc as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -51,5 +56,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -12,11 +12,16 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_dnb as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -25,14 +30,14 @@
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dnb1,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dnb1']) && $item->dnb1 >= $act['dnb1'] ? 1: 0,
|
||||
'hig' => isset($act['dnb1']) && $item->dnb1 >= $act['dnb1'] ? 1 : 0,
|
||||
'has' => isset($act['dnb1']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dnb2,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dnb2']) && $item->dnb2 >= $act['dnb2'] ? 1: 0,
|
||||
'hig' => isset($act['dnb2']) && $item->dnb2 >= $act['dnb2'] ? 1 : 0,
|
||||
'has' => isset($act['dnb2']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@@ -44,5 +49,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => false,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -12,12 +12,17 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_ggng as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -26,14 +31,14 @@
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->gg,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['gg']) && $item->gg >= $act['gg'] ? 1: 0,
|
||||
'hig' => isset($act['gg']) && $item->gg >= $act['gg'] ? 1 : 0,
|
||||
'has' => isset($act['gg']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->ng,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['ng']) && $item->ng >= $act['ng'] ? 1: 0,
|
||||
'hig' => isset($act['ng']) && $item->ng >= $act['ng'] ? 1 : 0,
|
||||
'has' => isset($act['ng']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@@ -45,5 +50,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => false,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -12,12 +12,18 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
$column = 0;
|
||||
@endphp
|
||||
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_2ways_s1 as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
@php
|
||||
use App\Utilities\BkmIconMap;
|
||||
$loadData($record);
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
@include('filament.tables.columns.fumetto.fumetto_ml')
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4" style="width: 190px;">
|
||||
@@ -12,12 +12,19 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
$having = [];
|
||||
@endphp
|
||||
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_2ways as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
$setHaving($bookmaker_id);
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -45,5 +52,24 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
|
||||
@for ($i = $rows; $i < 4; $i++)
|
||||
<x-filament::dropdown max-height="400px">
|
||||
<x-slot name="trigger" class="mb-0.5 h-3 border-gray-700 border cursor-pointer">
|
||||
</x-slot>
|
||||
<x-filament::dropdown.list>
|
||||
@foreach ($getActivBookmaker() as $item)
|
||||
<x-filament::dropdown.list.item wire:click="setMC({{ $i }},{{ $item->id }})">
|
||||
<div class="h-5 w-24 mx-auto bg-cover bg-center my-auto dark:opacity-80"
|
||||
style="background-image: url('{{ BkmIconMap::get($item->bookmaker->icon) }}')">
|
||||
</div>
|
||||
</x-filament::dropdown.list.item>
|
||||
@endforeach
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
@endfor
|
||||
</div>
|
||||
@endif
|
||||
@@ -10,9 +10,18 @@
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_points_q1 as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -46,5 +55,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -10,9 +10,18 @@
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_points as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -46,5 +55,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -10,9 +10,18 @@
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_totals_ht as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -46,5 +55,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -10,9 +10,18 @@
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_totals_q1 as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -46,5 +55,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -10,9 +10,18 @@
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_totals as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -46,5 +55,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -12,11 +12,16 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_tq as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -25,14 +30,14 @@
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->htq,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['htq']) && $item->htq >= $act['htq'] ? 1: 0,
|
||||
'hig' => isset($act['htq']) && $item->htq >= $act['htq'] ? 1 : 0,
|
||||
'has' => isset($act['htq']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->atq,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['atq']) && $item->atq >= $act['atq'] ? 1: 0,
|
||||
'hig' => isset($act['atq']) && $item->atq >= $act['atq'] ? 1 : 0,
|
||||
'has' => isset($act['atq']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@@ -44,5 +49,9 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => false,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -12,11 +12,16 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_3ways as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -51,5 +56,10 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
@@ -12,11 +12,16 @@
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
$rows = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_3ways_ht as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@php
|
||||
$rows++;
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@@ -51,5 +56,10 @@
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
|
||||
@livewire('SetBookmakerSlot', [
|
||||
'rows' => $rows,
|
||||
'column' => true,
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
Reference in new issue
Block a user