fimetto minimum ok

This commit is contained in:
salam committed 2026-01-03 18:15:52 +01:00
1 parent 9c78f507f4
commit a2b0569c9e
20 files changed
+134 -25

No files matched your search

@@ -13,6 +13,8 @@ class Column3way extends Column
protected ?array $max; protected ?array $max;
protected ?array $min;
protected ?array $bookmakers; protected ?array $bookmakers;
protected ?bool $has_data; protected ?bool $has_data;
@@ -34,12 +36,16 @@ class Column3way extends Column
$this->data = Odds3way::with('bookmaker')->where('event_id', $record->id)->get(); $this->data = Odds3way::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['h3w'] = $this->data->max('h3w'); $this->max['h3w'] = $this->data->max('h3w');
$this->min['h3w'] = $this->data->min('h3w');
$this->max['d3w'] = $this->data->max('d3w'); $this->max['d3w'] = $this->data->max('d3w');
$this->min['d3w'] = $this->data->min('d3w');
$this->max['a3w'] = $this->data->max('a3w'); $this->max['a3w'] = $this->data->max('a3w');
$this->min['a3w'] = $this->data->min('a3w');
$this->max['margin'] = $this->data->max('margin'); $this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false; $this->has_data = count($this->data) ? true : false;
} }
@@ -54,6 +60,11 @@ class Column3way extends Column
return $this->max; return $this->max;
} }
public function getMin()
{
return $this->min;
}
public function hasData() public function hasData()
{ {
return $this->has_data; return $this->has_data;
+11
View File
@@ -11,6 +11,8 @@ class ColumnDc extends Column
protected ?array $max; protected ?array $max;
protected ?array $min;
protected $data; protected $data;
protected ?array $bookmakers; protected ?array $bookmakers;
@@ -34,12 +36,16 @@ class ColumnDc extends Column
$this->data = OddsDc::with('bookmaker')->where('event_id', $record->id)->get(); $this->data = OddsDc::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['dc1x'] = $this->data->max('dc1x'); $this->max['dc1x'] = $this->data->max('dc1x');
$this->min['dc1x'] = $this->data->min('dc1x');
$this->max['dc12'] = $this->data->max('dc12'); $this->max['dc12'] = $this->data->max('dc12');
$this->min['dc12'] = $this->data->min('dc12');
$this->max['dcx2'] = $this->data->max('dcx2'); $this->max['dcx2'] = $this->data->max('dcx2');
$this->min['dcx2'] = $this->data->min('dcx2');
$this->max['margin'] = $this->data->max('margin'); $this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false; $this->has_data = count($this->data) ? true : false;
} }
@@ -54,6 +60,11 @@ class ColumnDc extends Column
return $this->max; return $this->max;
} }
public function getMin()
{
return $this->min;
}
public function hasData() public function hasData()
{ {
return $this->has_data; return $this->has_data;
+10
View File
@@ -11,6 +11,8 @@ class ColumnDnb extends Column
protected ?array $max; protected ?array $max;
protected ?array $min;
protected $data; protected $data;
protected ?array $bookmakers; protected ?array $bookmakers;
@@ -34,10 +36,13 @@ class ColumnDnb extends Column
$this->data = OddsDnb::with('bookmaker')->where('event_id', $record->id)->get(); $this->data = OddsDnb::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['dnb1'] = $this->data->max('dnb1'); $this->max['dnb1'] = $this->data->max('dnb1');
$this->min['dnb1'] = $this->data->min('dnb1');
$this->max['dnb2'] = $this->data->max('dnb2'); $this->max['dnb2'] = $this->data->max('dnb2');
$this->min['dnb2'] = $this->data->min('dnb2');
$this->max['margin'] = $this->data->max('margin'); $this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false; $this->has_data = count($this->data) ? true : false;
} }
@@ -52,6 +57,11 @@ class ColumnDnb extends Column
return $this->max; return $this->max;
} }
public function getMin()
{
return $this->min;
}
public function hasData() public function hasData()
{ {
return $this->has_data; return $this->has_data;
@@ -11,6 +11,8 @@ class ColumnGgng extends Column
protected ?array $max; protected ?array $max;
protected ?array $min;
protected $data; protected $data;
protected ?array $bookmakers; protected ?array $bookmakers;
@@ -34,10 +36,13 @@ class ColumnGgng extends Column
$this->data = OddsGgng::with('bookmaker')->where('event_id', $record->id)->get(); $this->data = OddsGgng::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['gg'] = $this->data->max('gg'); $this->max['gg'] = $this->data->max('gg');
$this->min['gg'] = $this->data->min('gg');
$this->max['ng'] = $this->data->max('ng'); $this->max['ng'] = $this->data->max('ng');
$this->min['ng'] = $this->data->min('ng');
$this->max['margin'] = $this->data->max('margin'); $this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false; $this->has_data = count($this->data) ? true : false;
} }
@@ -52,6 +57,11 @@ class ColumnGgng extends Column
return $this->max; return $this->max;
} }
public function getMin()
{
return $this->min;
}
public function hasData() public function hasData()
{ {
return $this->has_data; return $this->has_data;
@@ -11,6 +11,8 @@ class ColumnTotal extends Column
protected ?array $max; protected ?array $max;
protected ?array $min;
protected $data; protected $data;
protected ?array $bookmakers; protected ?array $bookmakers;
@@ -34,10 +36,13 @@ class ColumnTotal extends Column
$this->data = OddsTotal::with('bookmaker')->where('event_id', $record->id)->get(); $this->data = OddsTotal::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['over'] = $this->data->max('over'); $this->max['over'] = $this->data->max('over');
$this->min['over'] = $this->data->min('over');
$this->max['under'] = $this->data->max('under'); $this->max['under'] = $this->data->max('under');
$this->min['under'] = $this->data->min('under');
$this->max['margin'] = $this->data->max('margin'); $this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false; $this->has_data = count($this->data) ? true : false;
} }
@@ -52,6 +57,11 @@ class ColumnTotal extends Column
return $this->max; return $this->max;
} }
public function getMin()
{
return $this->min;
}
public function hasData() public function hasData()
{ {
return $this->has_data; return $this->has_data;
+10
View File
@@ -11,6 +11,8 @@ class ColumnTq extends Column
protected ?array $max; protected ?array $max;
protected ?array $min;
protected $data; protected $data;
protected ?array $bookmakers; protected ?array $bookmakers;
@@ -34,10 +36,13 @@ class ColumnTq extends Column
$this->data = OddsQualify::with('bookmaker')->where('event_id', $record->id)->get(); $this->data = OddsQualify::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['htq'] = $this->data->max('htq'); $this->max['htq'] = $this->data->max('htq');
$this->min['htq'] = $this->data->min('htq');
$this->max['atq'] = $this->data->max('atq'); $this->max['atq'] = $this->data->max('atq');
$this->min['atq'] = $this->data->min('atq');
$this->max['margin'] = $this->data->max('margin'); $this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false; $this->has_data = count($this->data) ? true : false;
} }
@@ -52,6 +57,11 @@ class ColumnTq extends Column
return $this->max; return $this->max;
} }
public function getMin()
{
return $this->min;
}
public function hasData() public function hasData()
{ {
return $this->has_data; return $this->has_data;
Generated
+7 -7
View File
@@ -4148,16 +4148,16 @@
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "3.9.0", "version": "3.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "10d85740180ecba7896c87e06a166e0c95a0e3b6" "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/10d85740180ecba7896c87e06a166e0c95a0e3b6", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b321dd6749f0bf7189444158a3ce785cc16d69b0",
"reference": "10d85740180ecba7896c87e06a166e0c95a0e3b6", "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4175,7 +4175,7 @@
"graylog2/gelf-php": "^1.4.2 || ^2.0", "graylog2/gelf-php": "^1.4.2 || ^2.0",
"guzzlehttp/guzzle": "^7.4.5", "guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.2", "guzzlehttp/psr7": "^2.2",
"mongodb/mongodb": "^1.8", "mongodb/mongodb": "^1.8 || ^2.0",
"php-amqplib/php-amqplib": "~2.4 || ^3", "php-amqplib/php-amqplib": "~2.4 || ^3",
"php-console/php-console": "^3.1.8", "php-console/php-console": "^3.1.8",
"phpstan/phpstan": "^2", "phpstan/phpstan": "^2",
@@ -4235,7 +4235,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/Seldaek/monolog/issues", "issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/3.9.0" "source": "https://github.com/Seldaek/monolog/tree/3.10.0"
}, },
"funding": [ "funding": [
{ {
@@ -4247,7 +4247,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-03-24T10:02:05+00:00" "time": "2026-01-02T08:56:05+00:00"
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
@@ -22,24 +22,28 @@
'odd' => $item->dc1x, 'odd' => $item->dc1x,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->dc12, 'odd' => $item->dc12,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->dcx2, 'odd' => $item->dcx2,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@endif @endif
@endforeach @endforeach
@@ -22,18 +22,21 @@
'odd' => $item->dnb1, 'odd' => $item->dnb1,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->dnb2, 'odd' => $item->dnb2,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@endif @endif
@endforeach @endforeach
@@ -22,18 +22,21 @@
'odd' => $item->gg, 'odd' => $item->gg,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->ng, 'odd' => $item->ng,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@endif @endif
@endforeach @endforeach
@@ -22,24 +22,28 @@
'odd' => $item->over, 'odd' => $item->over,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->under, 'odd' => $item->under,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->total, 'odd' => $item->total,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@endif @endif
@endforeach @endforeach
@@ -22,18 +22,21 @@
'odd' => $item->htq, 'odd' => $item->htq,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->atq, 'odd' => $item->atq,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@endif @endif
@endforeach @endforeach
@@ -22,24 +22,28 @@
'odd' => $item->h3w, 'odd' => $item->h3w,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->d3w, 'odd' => $item->d3w,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->a3w, 'odd' => $item->a3w,
'decimal' => 2, 'decimal' => 2,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@endif @endif
@endforeach @endforeach
@@ -7,6 +7,7 @@
@php @php
$max = $getMax(); $max = $getMax();
$min = $getMin();
@endphp @endphp
@foreach ($getData() as $item) @foreach ($getData() as $item)
@@ -19,24 +20,28 @@
'odd' => $item->h3w, 'odd' => $item->h3w,
'decimal' => 2, 'decimal' => 2,
'max' => $item->h3w == $max['h3w'] ? 1 : 0, 'max' => $item->h3w == $max['h3w'] ? 1 : 0,
'min' => $item->h3w == $min['h3w'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->d3w, 'odd' => $item->d3w,
'decimal' => 2, 'decimal' => 2,
'max' => $item->d3w == $max['d3w'] ? 1 : 0, 'max' => $item->d3w == $max['d3w'] ? 1 : 0,
'min' => $item->d3w == $min['d3w'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->a3w, 'odd' => $item->a3w,
'decimal' => 2, 'decimal' => 2,
'max' => $item->a3w == $max['a3w'] ? 1 : 0, 'max' => $item->a3w == $max['a3w'] ? 1 : 0,
'min' => $item->a3w == $min['a3w'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0, 'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
]) ])
@endforeach @endforeach
</div> </div>
@@ -7,6 +7,7 @@
@php @php
$max = $getMax(); $max = $getMax();
$min = $getMin();
@endphp @endphp
@foreach ($getData() as $item) @foreach ($getData() as $item)
@@ -19,24 +20,28 @@
'odd' => $item->dc1x, 'odd' => $item->dc1x,
'decimal' => 2, 'decimal' => 2,
'max' => $item->dc1x == $max['dc1x'] ? 1 : 0, 'max' => $item->dc1x == $max['dc1x'] ? 1 : 0,
'min' => $item->dc1x == $min['dc1x'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->dc12, 'odd' => $item->dc12,
'decimal' => 2, 'decimal' => 2,
'max' => $item->dc12 == $max['dc12'] ? 1 : 0, 'max' => $item->dc12 == $max['dc12'] ? 1 : 0,
'min' => $item->dc12 == $min['dc12'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->dcx2, 'odd' => $item->dcx2,
'decimal' => 2, 'decimal' => 2,
'max' => $item->dcx2 == $max['dcx2'] ? 1 : 0, 'max' => $item->dcx2 == $max['dcx2'] ? 1 : 0,
'min' => $item->dcx2 == $min['dcx2'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0, 'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
]) ])
@endforeach @endforeach
</div> </div>
@@ -7,6 +7,7 @@
@php @php
$max = $getMax(); $max = $getMax();
$min = $getMin();
@endphp @endphp
@foreach ($getData() as $item) @foreach ($getData() as $item)
@@ -19,18 +20,21 @@
'odd' => $item->dnb1, 'odd' => $item->dnb1,
'decimal' => 2, 'decimal' => 2,
'max' => $item->dnb1 == $max['dnb1'] ? 1 : 0, 'max' => $item->dnb1 == $max['dnb1'] ? 1 : 0,
'min' => $item->dnb1 == $min['dnb1'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->dnb2, 'odd' => $item->dnb2,
'decimal' => 2, 'decimal' => 2,
'max' => $item->dnb2 == $max['dnb2'] ? 1 : 0, 'max' => $item->dnb2 == $max['dnb2'] ? 1 : 0,
'min' => $item->dnb2 == $min['dnb2'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0, 'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
]) ])
@endforeach @endforeach
</div> </div>
@@ -4,9 +4,12 @@
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10"> <div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10">
@include('filament.tables.columns.multiline.label', ['labels' => ['GG', 'NG']]) @include('filament.tables.columns.multiline.label', ['labels' => ['GG', 'NG']])
@php @php
$max = $getMax(); $max = $getMax();
$min = $getMin();
@endphp @endphp
@foreach ($getData() as $item) @foreach ($getData() as $item)
@include('filament.tables.columns.multiline.bkm', [ @include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id, 'bookmaker_id' => $item->bookmaker_id,
@@ -17,18 +20,21 @@
'odd' => $item->gg, 'odd' => $item->gg,
'decimal' => 2, 'decimal' => 2,
'max' => $item->gg == $max['gg'] ? 1 : 0, 'max' => $item->gg == $max['gg'] ? 1 : 0,
'min' => $item->gg == $min['gg'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->ng, 'odd' => $item->ng,
'decimal' => 2, 'decimal' => 2,
'max' => $item->ng == $max['ng'] ? 1 : 0, 'max' => $item->ng == $max['ng'] ? 1 : 0,
'min' => $item->ng == $min['ng'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0, 'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
]) ])
@endforeach @endforeach
</div> </div>
@@ -4,9 +4,12 @@
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10"> <div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10">
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']]) @include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
@php @php
$max = $getMax(); $max = $getMax();
$min = $getMin();
@endphp @endphp
@foreach ($getData() as $item) @foreach ($getData() as $item)
@include('filament.tables.columns.multiline.bkm', [ @include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id, 'bookmaker_id' => $item->bookmaker_id,
@@ -17,24 +20,28 @@
'odd' => $item->over, 'odd' => $item->over,
'decimal' => 2, 'decimal' => 2,
'max' => $item->over == $max['over'] ? 1 : 0, 'max' => $item->over == $max['over'] ? 1 : 0,
'min' => $item->over == $min['over'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->under, 'odd' => $item->under,
'decimal' => 2, 'decimal' => 2,
'max' => $item->under == $max['under'] ? 1 : 0, 'max' => $item->under == $max['under'] ? 1 : 0,
'min' => $item->under == $min['under'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->total, 'odd' => $item->total,
'decimal' => 1, 'decimal' => 1,
'max' => false, 'max' => false,
'min' => false,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0, 'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
]) ])
@endforeach @endforeach
</div> </div>
@@ -4,9 +4,12 @@
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10"> <div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10">
@include('filament.tables.columns.multiline.label', ['labels' => ['H', 'A']]) @include('filament.tables.columns.multiline.label', ['labels' => ['H', 'A']])
@php @php
$max = $getMax(); $max = $getMax();
$min = $getMin();
@endphp @endphp
@foreach ($getData() as $item) @foreach ($getData() as $item)
@include('filament.tables.columns.multiline.bkm', [ @include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id, 'bookmaker_id' => $item->bookmaker_id,
@@ -17,18 +20,21 @@
'odd' => $item->htq, 'odd' => $item->htq,
'decimal' => 2, 'decimal' => 2,
'max' => $item->htq == $max['htq'] ? 1 : 0, 'max' => $item->htq == $max['htq'] ? 1 : 0,
'min' => $item->htq == $min['htq'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->atq, 'odd' => $item->atq,
'decimal' => 2, 'decimal' => 2,
'max' => $item->atq == $max['atq'] ? 1 : 0, 'max' => $item->atq == $max['atq'] ? 1 : 0,
'min' => $item->atq == $min['atq'] ? 1 : 0,
]) ])
@include('filament.tables.columns.multiline.odds', [ @include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin, 'odd' => $item->margin,
'decimal' => 1, 'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0, 'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
]) ])
@endforeach @endforeach
</div> </div>
@@ -1,18 +1,11 @@
@if (isset($max) && $max == true) <div class="mb-0.5 ml-0.5 border border-transparent
<div class="mb-0.5 ml-0.5 border border-transparent bg-green-500/50 rounded" @if (isset($max) && $max == true) bg-green-600/25 rounded
style="font-size: 10.5px; text-align:center;"> @elseif (isset($min) && $min == true) bg-blue-600/25 rounded @endif
&nbsp; "
@if (isset($odd)) style="font-size: 10.5px; text-align:center;">
{{ number_format($odd, $decimal) }} &nbsp;
@endif @if (isset($odd))
&nbsp; {{ number_format($odd, $decimal) }}
</div> @endif
@else &nbsp;
<div class="mb-0.5 ml-0.5 border border-transparent" style="font-size: 10.5px; text-align:center;"> </div>
&nbsp;
@if (isset($odd))
{{ number_format($odd, $decimal) }}
@endif
&nbsp;
</div>
@endif