feat: implement flights index and blade view for panel admin
This commit is contained in:
@@ -10,4 +10,14 @@ enum FlightStatus:int
|
||||
case CANCELLED = 2;
|
||||
case DRAFT = 3;
|
||||
case DELAYED = 4;
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::AVAILABLE => 'در دسترس',
|
||||
self::FULL => 'تکمیل ظرفیت',
|
||||
self::CANCELLED => 'کنسل شده',
|
||||
self::DRAFT => 'در انتظار',
|
||||
self::DELAYED => 'با تاخیر',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user