'array', ]; } public function user() { return $this->belongsTo(User::class); } public function nailPolish() { return $this->belongsTo(NailPolish::class); } public function isPending(): bool { return in_array($this->status, ['pending', 'processing']); } public function statusLabel(): string { return match ($this->status) { 'pending' => 'Warten', 'processing' => 'Verarbeitung', 'done' => 'Fertig', 'failed' => 'Fehler', default => $this->status, }; } public function statusColor(): string { return match ($this->status) { 'pending' => 'warning', 'processing' => 'info', 'done' => 'success', 'failed' => 'danger', default => 'secondary', }; } }