useract wip
This commit is contained in:
1 parent
10b0d334ab
commit
7e9d841856
19 files changed
+194
-51
No files matched your search
@@ -18,6 +18,8 @@ class ColumnOdds extends Column
|
||||
|
||||
public $slots;
|
||||
|
||||
public $empty_slots_icons;
|
||||
|
||||
public $bookmaker;
|
||||
|
||||
protected $max;
|
||||
@@ -40,8 +42,6 @@ class ColumnOdds extends Column
|
||||
|
||||
public $partner;
|
||||
|
||||
public $partner_icon;
|
||||
|
||||
protected ?array $odds_labels;
|
||||
|
||||
protected bool $state = true;
|
||||
@@ -68,8 +68,6 @@ class ColumnOdds extends Column
|
||||
return;
|
||||
}
|
||||
|
||||
$this->setPartnerIcon();
|
||||
|
||||
$this->setSlots();
|
||||
|
||||
$this->has_data = count($this->data);
|
||||
@@ -131,11 +129,6 @@ class ColumnOdds extends Column
|
||||
return $this->columns;
|
||||
}
|
||||
|
||||
public function getPartnerBookmakerIcon()
|
||||
{
|
||||
return $this->partner_icon;
|
||||
}
|
||||
|
||||
public function getSlots()
|
||||
{
|
||||
if (auth()->user()->is_multiline_direct) {
|
||||
@@ -465,6 +458,11 @@ class ColumnOdds extends Column
|
||||
});
|
||||
}
|
||||
|
||||
public function getBookmakerIcon($bookmaker_id)
|
||||
{
|
||||
return $this->empty_slots_icons[$bookmaker_id];
|
||||
}
|
||||
|
||||
public function setPartnerIcon()
|
||||
{
|
||||
$this->partner_icon = Bookmaker::where('id', auth()->user()->partner_bookmaker_id)->value('icon');
|
||||
@@ -474,6 +472,8 @@ class ColumnOdds extends Column
|
||||
{
|
||||
$this->slots = EventsTable::$slots[$this->bettype];
|
||||
|
||||
$this->empty_slots_icons = Bookmaker::pluck('icon', 'id')->all();
|
||||
|
||||
$this->bookmaker = EventsTable::$bookmaker[$this->bettype];
|
||||
|
||||
$this->filter = EventsTable::$filter[$this->bettype];
|
||||
|
||||
Reference in new issue
Block a user