'Passport', self::Contract => 'Contract', self::MedicalCertificate => 'Medical Certificate', self::EducationCertificate => 'Education Certificate', self::Other => 'Other', }; } public function color(): string { return match ($this) { self::Passport => 'primary', self::Contract => 'success', self::MedicalCertificate => 'danger', self::EducationCertificate => 'info', self::Other => 'gray', }; } public function icon(): string { return match ($this) { self::Passport => 'heroicon-o-identification', self::Contract => 'heroicon-o-document-text', self::MedicalCertificate => 'heroicon-o-heart', self::EducationCertificate => 'heroicon-o-academic-cap', self::Other => 'heroicon-o-folder', }; } }