fix: fix tours and flights pagination on homepage

This commit is contained in:
2026-08-22 07:58:01 +03:30
parent fd6fbc4f93
commit ccdb811d2d
12 changed files with 1620 additions and 34 deletions
+21
View File
@@ -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 => 'در امتظار'
};
}
}