update sosial ekonomi

This commit is contained in:
2026-07-09 14:37:53 +07:00
parent 2152079b26
commit 626fdba065
45 changed files with 3862 additions and 112 deletions
@@ -0,0 +1,30 @@
<?php
namespace App\Enums\SosialEkonomi;
enum PernahJualHargaLebihTinggi: string
{
case BELUM_PERNAH = 'belum_pernah';
case PERNAH = 'pernah';
public function label(): string
{
return match ($this) {
self::BELUM_PERNAH => 'Belum pernah',
self::PERNAH => 'Pernah',
};
}
public static function options(): array
{
return collect(self::cases())->map(fn ($case) => [
'value' => $case->value,
'label' => $case->label(),
])->toArray();
}
public static function values(): array
{
return array_column(self::cases(), 'value');
}
}