Update Praktik Budidaya & Pendidikan Pelatihan

This commit is contained in:
2026-07-07 14:39:25 +07:00
parent b3d805fe98
commit ff3f930939
24 changed files with 3054 additions and 249 deletions
@@ -0,0 +1,31 @@
<?php
namespace App\Enums\PraktikBudidaya;
enum FrekuensiSanitasiLahan: int
{
case TIDAK_PERNAH = 1;
case SESEKALI = 2;
case SETIAP_PANEN = 3;
case RUTIN_TIDAK_TERJADWAL = 4;
case RUTIN_TERJADWAL = 5;
public function label(): string
{
return match($this) {
self::TIDAK_PERNAH => 'Tidak pernah',
self::SESEKALI => 'Sesekali, tidak terjadwal',
self::SETIAP_PANEN => 'Setiap panen, tapi tidak menyeluruh',
self::RUTIN_TIDAK_TERJADWAL => 'Rutin, tapi tanpa jadwal yang jelas',
self::RUTIN_TERJADWAL => 'Rutin terjadwal dan menyeluruh',
};
}
public static function options(): array
{
return collect(self::cases())->map(fn ($case) => [
'value' => $case->value,
'label' => $case->label(),
])->toArray();
}
}