wip desing

This commit is contained in:
salam committed 2026-09-25 11:31:52 +02:00
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>';
+4 -1
View File
@@ -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')
+5 -5
View File
@@ -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']);
}
+9 -5
View File
@@ -121,24 +121,28 @@ input[type="radio"].fi-radio-input {
/*
Statistiko BOX Widgets
*/
.box-blank {
@apply p-2 flex justify-center drop-shadow
}
.box-info {
@apply bg-info-50 dark:bg-info-500/20 border border-info-500/30 dark:border-info-900 drop-shadow-xl p-2 flex justify-center
@apply bg-info-50 dark:bg-info-500/20 border border-info-500/30 dark:border-info-900 p-2 flex justify-center
}
.box-success {
@apply bg-success-50 dark:bg-success-500/20 border border-success-500/30 dark:border-success-900 drop-shadow-xl p-2 flex justify-center
@apply bg-success-50 dark:bg-success-500/20 border border-success-500/30 dark:border-success-900 p-2 flex justify-center
}
.box-purple {
@apply bg-purple-50 dark:bg-purple-500/20 border border-purple-500/30 dark:border-purple-900 drop-shadow-xl p-2 flex justify-center
@apply bg-purple-50 dark:bg-purple-500/20 border border-purple-500/30 dark:border-purple-900 p-2 flex justify-center
}
.box-yellow {
@apply bg-yellow-50 dark:bg-yellow-500/20 border border-yellow-500/30 dark:border-yellow-900 drop-shadow-xl p-2 flex justify-center
@apply bg-yellow-50 dark:bg-yellow-500/20 border border-yellow-500/30 dark:border-yellow-900 p-2 flex justify-center
}
.box-gray {
@apply bg-gray-50 dark:bg-gray-500/20 border border-gray-500/30 dark:border-gray-900 drop-shadow-xl p-2 flex justify-center
@apply bg-gray-50 dark:bg-gray-500/20 border border-gray-500/30 dark:border-gray-900 p-2 flex justify-center
}
/*