wip season_mode
This commit is contained in:
1 parent
6de4e50847
commit
ca102d3e51
6 files changed
+41
-38
No files matched your search
@@ -3,7 +3,6 @@
|
||||
namespace App\Filament\Widgets;
|
||||
|
||||
use App\Filament\Widgets\PlayerProps\BoxNames;
|
||||
use App\Models\SofaScoreCategory;
|
||||
use App\Traits\PlayerProps\BestLineUp;
|
||||
use App\Traits\PlayerProps\ClearBoxes;
|
||||
use App\Traits\PlayerProps\CopyData;
|
||||
@@ -41,42 +40,28 @@ class PlayerPropsDrop extends Widget
|
||||
|
||||
protected string $view = 'livewire.player-props-drop';
|
||||
|
||||
public string $activeLineUp;
|
||||
|
||||
public string $team_name = '';
|
||||
|
||||
public string $season_or_date = 'season';
|
||||
|
||||
public string $date_spliter = '';
|
||||
|
||||
public string $season_mode;
|
||||
|
||||
public float $x_value = 3;
|
||||
|
||||
public float $y_value = 180;
|
||||
|
||||
public float $asp_team;
|
||||
|
||||
public int $count_player;
|
||||
|
||||
public int $home_id;
|
||||
|
||||
public int $away_id;
|
||||
|
||||
public string $team_home_away;
|
||||
|
||||
public float $asp_team;
|
||||
|
||||
public array $activeBoxes;
|
||||
|
||||
public array $beschriftung;
|
||||
|
||||
public array $lineup;
|
||||
|
||||
public array $lineUpMap;
|
||||
|
||||
public string $activeLineUp;
|
||||
|
||||
public array $boxes;
|
||||
|
||||
public string $team_name = '';
|
||||
|
||||
public string $season_or_date = 'season';
|
||||
|
||||
public string $season_mode = '';
|
||||
|
||||
public string $date_spliter = '';
|
||||
|
||||
public array $season_selected;
|
||||
|
||||
public int $team_id = 0;
|
||||
|
||||
public int $liga_id = 0;
|
||||
@@ -87,10 +72,24 @@ class PlayerPropsDrop extends Widget
|
||||
|
||||
public int $player_on_field_counter;
|
||||
|
||||
public string $team_home_away;
|
||||
|
||||
public array $activeBoxes;
|
||||
|
||||
public array $beschriftung;
|
||||
|
||||
public array $lineup;
|
||||
|
||||
public array $lineUpMap;
|
||||
|
||||
public array $season_selected;
|
||||
|
||||
public array $calculationVariables;
|
||||
|
||||
public array $players;
|
||||
|
||||
public array $boxes;
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->activeBoxes = BoxNames::load();
|
||||
@@ -227,10 +226,8 @@ class PlayerPropsDrop extends Widget
|
||||
}
|
||||
|
||||
#[On('season_mode-update')]
|
||||
public function setSeason(string $country_id)
|
||||
public function setSeason(string $season_mode)
|
||||
{
|
||||
$season_mode = SofaScoreCategory::where('id', $country_id)->value('season_mode');
|
||||
|
||||
$this->season_mode = $season_mode;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user