multi betts wip
This commit is contained in:
1 parent
1aa044fff1
commit
b39196c9eb
62 files changed
+1237
-208
No files matched your search
@@ -34,21 +34,21 @@ class Column3way extends Column
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_3way) ? true : false;
|
||||
$this->has_data = count($record->odds_3ways) ? true : false;
|
||||
|
||||
$this->act = $record->odds_3way->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
$this->act = $record->odds_3ways->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['h3w'] = $record->odds_3way->max('h3w');
|
||||
$this->max['h3w'] = $record->odds_3ways->max('h3w');
|
||||
|
||||
$this->max['d3w'] = $record->odds_3way->max('d3w');
|
||||
$this->max['d3w'] = $record->odds_3ways->max('d3w');
|
||||
|
||||
$this->max['a3w'] = $record->odds_3way->max('a3w');
|
||||
$this->max['a3w'] = $record->odds_3ways->max('a3w');
|
||||
|
||||
$this->min['h3w'] = $record->odds_3way->min('h3w');
|
||||
$this->min['h3w'] = $record->odds_3ways->min('h3w');
|
||||
|
||||
$this->min['d3w'] = $record->odds_3way->min('d3w');
|
||||
$this->min['d3w'] = $record->odds_3ways->min('d3w');
|
||||
|
||||
$this->min['a3w'] = $record->odds_3way->min('a3w');
|
||||
$this->min['a3w'] = $record->odds_3ways->min('a3w');
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Tables\Columns;
|
||||
|
||||
use Filament\Tables\Columns\Column;
|
||||
|
||||
class ColumnMl extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-ml';
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected $max;
|
||||
|
||||
protected $min;
|
||||
|
||||
protected $act;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_2ways) ? true : false;
|
||||
|
||||
$this->act = $record->odds_2ways->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['h2w'] = $record->odds_2ways->max('h2w');
|
||||
|
||||
$this->max['a2w'] = $record->odds_2ways->max('a2w');
|
||||
|
||||
$this->min['h2w'] = $record->odds_2ways->min('h2w');
|
||||
|
||||
$this->min['a2w'] = $record->odds_2ways->min('a2w');
|
||||
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Tables\Columns;
|
||||
|
||||
use Filament\Tables\Columns\Column;
|
||||
|
||||
class ColumnMlS1 extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-ml-s1';
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected $max;
|
||||
|
||||
protected $min;
|
||||
|
||||
protected $act;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_2ways_s1) ? true : false;
|
||||
|
||||
$this->act = $record->odds_2ways->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['h2w'] = $record->odds_2ways->max('h2w');
|
||||
|
||||
$this->max['a2w'] = $record->odds_2ways->max('a2w');
|
||||
|
||||
$this->min['h2w'] = $record->odds_2ways->min('h2w');
|
||||
|
||||
$this->min['a2w'] = $record->odds_2ways->min('a2w');
|
||||
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Tables\Columns;
|
||||
|
||||
use Filament\Tables\Columns\Column;
|
||||
|
||||
class ColumnPoint extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-point';
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected $max;
|
||||
|
||||
protected $min;
|
||||
|
||||
protected $act;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_points) ? true : false;
|
||||
|
||||
$this->act = $record->odds_points->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['home'] = $record->odds_points->max('home');
|
||||
|
||||
$this->max['away'] = $record->odds_points->max('away');
|
||||
|
||||
$this->min['home'] = $record->odds_points->min('home');
|
||||
|
||||
$this->min['away'] = $record->odds_points->min('away');
|
||||
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Tables\Columns;
|
||||
|
||||
use Filament\Tables\Columns\Column;
|
||||
|
||||
class ColumnPointQ1 extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-point-q1';
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected $max;
|
||||
|
||||
protected $min;
|
||||
|
||||
protected $act;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_points_q1) ? true : false;
|
||||
|
||||
$this->act = $record->odds_points_q1->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['home'] = $record->odds_points_q1->max('home');
|
||||
|
||||
$this->max['away'] = $record->odds_points_q1->max('away');
|
||||
|
||||
$this->min['home'] = $record->odds_points_q1->min('home');
|
||||
|
||||
$this->min['away'] = $record->odds_points_q1->min('away');
|
||||
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
}
|
||||
}
|
||||
@@ -34,17 +34,17 @@ class ColumnTotal extends Column
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_total) ? true : false;
|
||||
$this->has_data = count($record->odds_totals) ? true : false;
|
||||
|
||||
$this->act = $record->odds_total->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
$this->act = $record->odds_totals->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['over'] = $record->odds_total->max('over');
|
||||
$this->max['over'] = $record->odds_totals->max('over');
|
||||
|
||||
$this->max['under'] = $record->odds_total->max('under');
|
||||
$this->max['under'] = $record->odds_totals->max('under');
|
||||
|
||||
$this->min['over'] = $record->odds_total->min('over');
|
||||
$this->min['over'] = $record->odds_totals->min('over');
|
||||
|
||||
$this->min['under'] = $record->odds_total->min('under');
|
||||
$this->min['under'] = $record->odds_totals->min('under');
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Tables\Columns;
|
||||
|
||||
use Filament\Tables\Columns\Column;
|
||||
|
||||
class ColumnTotalQ1 extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-total-q1';
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected $max;
|
||||
|
||||
protected $min;
|
||||
|
||||
protected $act;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_totals_q1) ? true : false;
|
||||
|
||||
$this->act = $record->odds_totals_q1->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['over'] = $record->odds_totals_q1->max('over');
|
||||
|
||||
$this->max['under'] = $record->odds_totals_q1->max('under');
|
||||
|
||||
$this->min['over'] = $record->odds_totals_q1->min('over');
|
||||
|
||||
$this->min['under'] = $record->odds_totals_q1->min('under');
|
||||
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user