wip
This commit is contained in:
1 parent
7e7d667b81
commit
f4f524646a
2 files changed
+6
-2
No files matched your search
@@ -66,6 +66,9 @@ class LoadEvents
|
|||||||
$handicap_range = 0;
|
$handicap_range = 0;
|
||||||
$total_range = 0;
|
$total_range = 0;
|
||||||
if ($similar_past_matches != 'none') {
|
if ($similar_past_matches != 'none') {
|
||||||
|
|
||||||
|
$team_position = '';
|
||||||
|
|
||||||
$match = StatisticFixtures::with('home')->with('away')->where('id', (int) $match_id)->first();
|
$match = StatisticFixtures::with('home')->with('away')->where('id', (int) $match_id)->first();
|
||||||
|
|
||||||
$exp_handicap = $match->exp_away - $match->exp_home;
|
$exp_handicap = $match->exp_away - $match->exp_home;
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
if (!$data)
|
if (!$data)
|
||||||
return [];
|
return [];
|
||||||
|
|
||||||
// dd($data);
|
|
||||||
$arr_home = [];
|
$arr_home = [];
|
||||||
$arr_away = [];
|
$arr_away = [];
|
||||||
|
|
||||||
@@ -65,7 +64,7 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
$home_team = $data['home_team'];
|
$home_team = $data['home_team'];
|
||||||
$away_team = $data['away_team'];
|
$away_team = $data['away_team'];
|
||||||
}
|
}
|
||||||
|
// dd($arr_home);
|
||||||
// if (! $total_home) {
|
// if (! $total_home) {
|
||||||
// return [
|
// return [
|
||||||
// Stat::make('Number of events', 0),
|
// Stat::make('Number of events', 0),
|
||||||
@@ -103,6 +102,8 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
else
|
else
|
||||||
$value_away = 0;
|
$value_away = 0;
|
||||||
|
|
||||||
|
// dd($value_home);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Stat::make('Number of events', new HtmlString('<div id="number-of-events">' . $total_home . '</div>'))->extraAttributes(['x-init' => "animate('number-of-events', $total_home)"]),
|
Stat::make('Number of events', new HtmlString('<div id="number-of-events">' . $total_home . '</div>'))->extraAttributes(['x-init' => "animate('number-of-events', $total_home)"]),
|
||||||
Stat::make('Average ' . $statistic_type, self::template('avhome', 'avaway', $home_team, $away_team))->extraAttributes(['x-init' => "animate('avhome', $value_home); animate('avaway', $value_away)"]),
|
Stat::make('Average ' . $statistic_type, self::template('avhome', 'avaway', $home_team, $away_team))->extraAttributes(['x-init' => "animate('avhome', $value_home); animate('avaway', $value_away)"]),
|
||||||
|
|||||||
Reference in new issue
Block a user