fix: fix tours and flights pagination on homepage
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Tour;
|
||||
|
||||
enum TourStatus:int
|
||||
{
|
||||
case AVAILABLE = 0;
|
||||
case FULL = 1;
|
||||
case CANCELLED = 2;
|
||||
case DRAFT = 3;
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::AVAILABLE => 'در دسترس',
|
||||
self::FULL => 'تکمیل',
|
||||
self::CANCELLED => 'کنسل شده',
|
||||
self::DRAFT => 'در امتظار'
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user