|
@@ -108,7 +108,8 @@ class Client extends Model
|
|
|
|
|
|
public function upcomingAppointments() {
|
|
|
return $this->hasMany(Appointment::class, 'client_id', 'id')
|
|
|
- // ->where('raw_start_time', '>', date('Y-m-d H:i:s'))
|
|
|
+ // ->where('raw_start_time', '>', date('Y-m-d H:i:s'))
|
|
|
+ ->whereIn('status', ['CREATED', 'CONFIRMED'])
|
|
|
->orderBy('start_time', 'desc');
|
|
|
}
|
|
|
|