wip desing
This commit is contained in:
1 parent
5ffbc07564
commit
b90b057eb2
4 files changed
+21
-14
No files matched your search
@@ -96,11 +96,11 @@ class LoadPlayerSelection
|
||||
$infostring = '';
|
||||
|
||||
if ($colorlevel > 1 && $events_played < $colorlevel) {
|
||||
$infostring = '<div class="w-full text-red-600 dark:text-red-500 cursor-pointer flex flex-row gap-3">';
|
||||
$infostring = '<div class="w-full text-red-600 dark:text-red-500 cursor-pointer flex flex-row gap-1">';
|
||||
} elseif ($events_played < $colorlevel * 2) {
|
||||
$infostring = '<div class="w-full text-blue-600 dark:text-blue-500 cursor-pointer flex flex-row gap-3">';
|
||||
$infostring = '<div class="w-full text-blue-600 dark:text-blue-500 cursor-pointer flex flex-row gap-1">';
|
||||
} else {
|
||||
$infostring = '<div class="w-full text-green-600 dark:text-green-500 cursor-pointer flex flex-row gap-3">';
|
||||
$infostring = '<div class="w-full text-green-600 dark:text-green-500 cursor-pointer flex flex-row gap-1">';
|
||||
}
|
||||
$infostring .= '<div class="flex-1 font-bold">'.$val['player_name'].' '.$val['player_position'].'</div>';
|
||||
$infostring .= '<div>'.$events_played.' Events,</div>';
|
||||
|
||||
@@ -348,7 +348,10 @@ class Statistic extends BaseDashboard
|
||||
->prefixIcon('icon-player')
|
||||
->preload()
|
||||
->searchable()
|
||||
->extraAttributes(fn () => ['id' => 'player_selector'])
|
||||
->extraAttributes(fn () => [
|
||||
'id' => 'player_selector',
|
||||
'style' => 'width: 100%;',
|
||||
])
|
||||
->suffixAction(
|
||||
Action::make('iconInfo')
|
||||
->icon('phosphor-question-fill')
|
||||
|
||||
@@ -55,32 +55,32 @@ class BoxesBettypeAll extends StatsOverviewWidget
|
||||
$lost = $data['lost_odd'];
|
||||
$boxes[] = Stat::make('Odds', self::template_odds($data, $win, $draw, $lost))
|
||||
->description('Expectations')
|
||||
->extraAttributes(['x-init' => "animate('win', $win, 2); animate('draw', $draw, 2); animate('lost', $lost, 2)", 'class' => 'box-purple']);
|
||||
->extraAttributes(['x-init' => "animate('win', $win, 2); animate('draw', $draw, 2); animate('lost', $lost, 2)", 'class' => 'box-success']);
|
||||
|
||||
// BOX EXPECTED
|
||||
if (isset($data['gls'])) {
|
||||
$boxes[] = Stat::make('Expected', self::template_tabelle_1($data))
|
||||
->extraAttributes(['class' => 'box-gray'])
|
||||
->extraAttributes(['class' => 'box-yellow'])
|
||||
->description('Home - Away');
|
||||
}
|
||||
|
||||
// BOX AVERAGE
|
||||
if (isset($data['gls_team'])) {
|
||||
$boxes[] = Stat::make('Average '.$data['active_team'], self::template_tabelle_2($data))
|
||||
->extraAttributes(['class' => 'box-success'])
|
||||
->extraAttributes(['class' => 'box-blank'])
|
||||
->description($team_position);
|
||||
}
|
||||
|
||||
// BOX AVERAGE WITH TEAM FIXED TO ACTIVE SEASON
|
||||
if (isset($data['gls_team_season'])) {
|
||||
$boxes[] = Stat::make('Average '.$data['active_team'], self::template_tabelle_3($data))
|
||||
->extraAttributes(['class' => 'box-yellow'])
|
||||
->extraAttributes(['class' => 'box-blank'])
|
||||
->description('Season '.$data['active_season']);
|
||||
}
|
||||
// BOX AVERAGE ALL LEAGUE FIXED TO ACTIVE SEASON
|
||||
if (isset($data['gls_liga_season'])) {
|
||||
$boxes[] = Stat::make('League Average', self::template_tabelle_4($data))
|
||||
->extraAttributes(['class' => 'box-yellow'])
|
||||
->extraAttributes(['class' => 'box-blank'])
|
||||
->description('Season '.$data['active_season']);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user