wip desing
This commit is contained in:
1 parent
5ffbc07564
commit
b90b057eb2
4 files changed
+21
-14
No files matched your search
@@ -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