This commit is contained in:
louiscklaw
2025-01-31 21:12:34 +08:00
parent c0b4825bea
commit f08350ff38
754 changed files with 137077 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace App\Services;
use App\Models\Exam;
use App\Models\Plan;
use App\Models\Subject;
use App\Models\Test;
use App\Models\Country;
use App\Models\State;
class CommonService {
/* Get Total Count of Exam */
public static function totalExam() {
return Exam::all()->count();
}
/* Get Total Count of Plan */
public static function totalPlan() {
return Plan::all()->count();
}
/* Get Total Count of Plan */
public static function totalSubject() {
return Subject::all()->count();
}
/* Get Total Count of Plan */
public static function totalTest() {
return Test::all()->count();
}
/* Get Total Country */
public static function totalCountry() {
return Country::all()->count();
}
/* Get Total State */
public static function totalState() {
return State::all()->count();
}
}