fumetto max ok

This commit is contained in:
salam committed 2026-01-03 17:46:23 +01:00
1 parent 9e7384daf8
commit 9c78f507f4
58 files changed
+672 -144

No files matched your search

@@ -9,6 +9,8 @@ class ColumnGgng extends Column
{
protected string $view = 'filament.tables.columns.column-ggng';
protected ?array $max;
protected $data;
protected ?array $bookmakers;
@@ -31,6 +33,12 @@ class ColumnGgng extends Column
{
$this->data = OddsGgng::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['gg'] = $this->data->max('gg');
$this->max['ng'] = $this->data->max('ng');
$this->max['margin'] = $this->data->max('margin');
$this->has_data = count($this->data) ? true : false;
}
@@ -39,6 +47,11 @@ class ColumnGgng extends Column
return $this->data;
}
public function getMax()
{
return $this->max;
}
public function hasData()
{
return $this->has_data;