Merge pull request #95 from witelgroup/bugfix/MissionSearch

convert many to many to one to many
This commit is contained in:
Amir Ghasempoor
2025-12-01 11:30:28 +03:30
committed by GitHub
11 changed files with 123 additions and 32 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Enums;
enum CmmsMachineStatus: int
{
case AMADE= 1;
case RESERVE = 2;
case DAR_MAMORIAT = 3;
public function label(): string
{
return match ($this) {
self::AMADE => 'آماده',
self::RESERVE => 'رزرو',
self::DAR_MAMORIAT => 'در ماموریت',
};
}
}