@ -41,7 +41,7 @@ class User extends Authenticatable implements Auditable
{
$now = date('Y-m-d H:i:s');
$courseAppointmentTotals = CourseAppointmentTotal::where('user_id', $this->id)
->where('start_time', '<=', $now)
//->where('start_time', '<=', $now)
->where('end_time', '>=', $now)
->sum('total');
return $courseAppointmentTotals;