Update BUMDes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Bumdes;
|
||||
|
||||
enum StatusUnitKomoditasBumdes: string
|
||||
{
|
||||
case YA = 'ya';
|
||||
case DITANGANI_PENGURUS_INTI = 'ditangani_pengurus_inti';
|
||||
case DIRENCANAKAN = 'direncanakan';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::YA => 'Ya, ada unit khusus',
|
||||
self::DITANGANI_PENGURUS_INTI => 'Tidak ada unit khusus, ditangani langsung pengurus inti',
|
||||
self::DIRENCANAKAN => 'Belum ada, masih direncanakan',
|
||||
};
|
||||
}
|
||||
|
||||
public static function options(): array
|
||||
{
|
||||
return collect(self::cases())->mapWithKeys(fn (self $value) => [$value->value => $value->label()])->all();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user