'datetime', 'end_time' => 'datetime', 'is_priority' => 'boolean', 'is_all_day' => 'boolean', 'status' => EventStatus::class, ]; public function client(): BelongsTo { return $this->belongsTo(Client::class); } public function scopeUpcoming($query, int $hours = 24) { return $query->where('start_time', '>=', now()) ->where('start_time', '<=', now()->addHours($hours)) ->where('status', '!=', EventStatus::Completed->value) ->where('status', '!=', EventStatus::Cancelled->value); } public function scopeToday($query) { return $query->whereDate('start_time', today()); } }