update the match view

This commit is contained in:
ghassan committed 2026-03-12 03:59:52 +03:00
1 parent 062c0e896f
commit 69f5df163a
14 files changed
+7331 -743

No files matched your search

+16
View File
@@ -246,6 +246,22 @@ class Video extends Model
return $this->comments()->count();
}
// Match events relationships
public function matchRounds()
{
return $this->hasMany(MatchRound::class)->orderBy('round_number');
}
public function matchPoints()
{
return $this->hasMany(MatchPoint::class);
}
public function coachReviews()
{
return $this->hasMany(CoachReview::class)->orderBy('start_time_seconds');
}
// Get recent views count (within hours)
public function getRecentViews($hours = 48)
{