fumetto max ok
This commit is contained in:
1 parent
9e7384daf8
commit
9c78f507f4
58 files changed
+672
-144
No files matched your search
@@ -135,7 +135,7 @@ class EventsTable
|
||||
->tooltip(fn ($record) => $record->id)
|
||||
->visibleFrom('lg'),
|
||||
|
||||
MatchIds::make('match_ids')->grow(false)->visibleFrom('xl'),
|
||||
MatchIds::make('ids')->grow(false)->visibleFrom('xl'),
|
||||
|
||||
TextColumn::make('starttime')
|
||||
->label('Start')
|
||||
@@ -196,8 +196,8 @@ class EventsTable
|
||||
->verticalAlignment(VerticalAlignment::Start)
|
||||
->width(225)
|
||||
->label('Totals'),
|
||||
])->searchable(['id', 'betsapi_id', 'betradar_id', 'bet365_id', 'bwin_id'])
|
||||
->poll('5s')
|
||||
])->searchable(['id', 'betsapi_id', 'betradar_id', 'bet365_id', 'bwin_id', 'magnig_id', 'magken_id', 'lognig_id', 'logcol_id'])
|
||||
->poll('10s')
|
||||
->defaultSort('starttime', 'ASC')
|
||||
->filters([
|
||||
Filter::make('events')
|
||||
|
||||
@@ -11,6 +11,8 @@ class Column3way extends Column
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected ?bool $has_data;
|
||||
@@ -31,6 +33,14 @@ class Column3way extends Column
|
||||
{
|
||||
$this->data = Odds3way::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['h3w'] = $this->data->max('h3w');
|
||||
|
||||
$this->max['d3w'] = $this->data->max('d3w');
|
||||
|
||||
$this->max['a3w'] = $this->data->max('a3w');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
|
||||
@@ -39,6 +49,11 @@ class Column3way extends Column
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
@@ -9,6 +9,8 @@ class ColumnDc extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-dc';
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
@@ -31,6 +33,14 @@ class ColumnDc extends Column
|
||||
{
|
||||
$this->data = OddsDc::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['dc1x'] = $this->data->max('dc1x');
|
||||
|
||||
$this->max['dc12'] = $this->data->max('dc12');
|
||||
|
||||
$this->max['dcx2'] = $this->data->max('dcx2');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
|
||||
@@ -39,6 +49,11 @@ class ColumnDc extends Column
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
@@ -9,6 +9,8 @@ class ColumnDnb extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-dnb';
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
@@ -31,6 +33,12 @@ class ColumnDnb extends Column
|
||||
{
|
||||
$this->data = OddsDnb::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['dnb1'] = $this->data->max('dnb1');
|
||||
|
||||
$this->max['dnb2'] = $this->data->max('dnb2');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
|
||||
@@ -39,6 +47,11 @@ class ColumnDnb extends Column
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -9,6 +9,8 @@ class ColumnTotal extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-total';
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
@@ -31,6 +33,12 @@ class ColumnTotal extends Column
|
||||
{
|
||||
$this->data = OddsTotal::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['over'] = $this->data->max('over');
|
||||
|
||||
$this->max['under'] = $this->data->max('under');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
|
||||
@@ -39,6 +47,11 @@ class ColumnTotal extends Column
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
@@ -9,6 +9,8 @@ class ColumnTq extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-tq';
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
@@ -31,6 +33,12 @@ class ColumnTq extends Column
|
||||
{
|
||||
$this->data = OddsQualify::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['htq'] = $this->data->max('htq');
|
||||
|
||||
$this->max['atq'] = $this->data->max('atq');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
|
||||
@@ -39,6 +47,11 @@ class ColumnTq extends Column
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
Reference in new issue
Block a user