stuck with livewire
This commit is contained in:
1 parent
b21cdb507a
commit
c0f2689ff6
30 files changed
+372
-64
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Tables\Columns;
|
||||
|
||||
use App\Models\BookmakerSport;
|
||||
use Filament\Tables\Columns\Column;
|
||||
|
||||
class ColumnMl extends Column
|
||||
@@ -16,6 +17,8 @@ class ColumnMl extends Column
|
||||
|
||||
protected $act;
|
||||
|
||||
protected $having;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
@@ -27,11 +30,27 @@ class ColumnMl extends Column
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setMC($slot, $bookmaker_id)
|
||||
{
|
||||
// MultilineClient::where('sport_id', auth()->user()->sport_id)
|
||||
// ->where('position', $position)
|
||||
// ->where('multiline_setting_id', 22)
|
||||
// ->update(['bookmaker_id' => $bookmaker_id]);
|
||||
}
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
}
|
||||
|
||||
public function getActivBookmaker()
|
||||
{
|
||||
return BookmakerSport::with('bookmaker')
|
||||
->whereNotIn('bookmaker_id', $this->having)
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_2ways) ? true : false;
|
||||
@@ -48,6 +67,11 @@ class ColumnMl extends Column
|
||||
|
||||
}
|
||||
|
||||
public function setHaving($bkmid)
|
||||
{
|
||||
return $this->having[] = $bkmid;
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
|
||||
Reference in new issue
Block a user