create new culumn in machine and add in controller and createe enum for this

This commit is contained in:
2025-10-19 16:54:39 +03:30
parent a13b3e022e
commit afb94681de
3 changed files with 50 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Enums;
enum MachineStates: int
{
case AMADE_BE_CAR = 1;
case REZERV = 2;
case DAR_HAL_MAMOREAT = 3;
public function label(): string
{
return match ($this) {
self::AMADE_BE_CAR => 'اماده به کار',
self::REZERV => 'رزرو',
self::DAR_HAL_MAMOREAT => 'در حال ماموریت',
};
}
}