'integer', ]; public function scopePending($query) { return $query->where('status', 'pending'); } public function scopeInProgress($query) { return $query->where('status', 'in_progress'); } public function scopeDone($query) { return $query->where('status', 'done'); } public function scopeActive($query) { return $query->whereIn('status', ['pending', 'in_progress']); } public function getStatusBadgeAttribute(): string { return match ($this->status) { 'done' => '✓', 'in_progress' => '→', default => '○', }; } public function getPriorityBadgeAttribute(): string { return match ($this->priority) { 'urgent' => '🔴', 'high' => '🟠', 'low' => '🔵', default => '', }; } }