Merge remote-tracking branch 'origin/mhmfajar'

This commit is contained in:
Muhammad Fajar
2022-12-08 08:53:58 +07:00
34 changed files with 955 additions and 792 deletions

View File

@@ -44,10 +44,10 @@ class Corporate extends Model
public function currentPolicy()
{
return $this->hasOne(CorporatePolicy::class)
// ->where('start', '<=', now())
// ->where('end', '>=', now())
->where('active', true)
->latestOfMany();
// ->where('start', '<=', now())
// ->where('end', '>=', now())
->where('active', true)
->latestOfMany();
}
public function corporatePlans()