wip sudamerica comppa e ueva coppas
This commit is contained in:
1 parent
b20fcb0034
commit
54bbb420ec
5 files changed
+14
-5
No files matched your search
@@ -10,12 +10,11 @@ class Expectation1X2
|
||||
public static function load(array &$expectations, array $filter, object $match)
|
||||
{
|
||||
$team_id = (int) $filter['team_id'] ?? 0;
|
||||
$home_id = $match->home_id;
|
||||
$away_id = $match->away_id;
|
||||
|
||||
$res_tp = LoadEventsQueryTP::load($filter, $match);
|
||||
|
||||
$count_tp = $res_tp->count();
|
||||
|
||||
$expectations['count_events'] = $count_tp;
|
||||
|
||||
$expectations += ['win_count' => 0, 'draw_count' => 0, 'lost_count' => 0];
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace App\Filament\Widgets\Charts\LoadEvents;
|
||||
use App\Filament\Pages\Selections\Helper\GetSeason;
|
||||
use App\Models\StatistikoEvent;
|
||||
use App\Models\StatistikoPlayer;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class LoadEventsQueryTP
|
||||
{
|
||||
@@ -97,7 +98,7 @@ class LoadEventsQueryTP
|
||||
/**
|
||||
* STATTISTIC DATA
|
||||
*/
|
||||
// Log::debug('result', [$similar_past_matches, $home_id, $away_id, $team_id]);
|
||||
Log::debug('result', [$similar_past_matches, $league_id, $team_id]);
|
||||
|
||||
return StatistikoEvent::with('home')->with('away')
|
||||
->where(function ($query) use ($league_id, $similar_past_matches) {
|
||||
|
||||
Reference in new issue
Block a user