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
+2 -2
View File
@@ -4,8 +4,8 @@ namespace App\Enums\Flight;
enum FlightScope:int
{
case Domestic = 1;
case International = 2;
case Domestic = 0;
case International = 1;
public function label(): string
{
+2 -2
View File
@@ -4,8 +4,8 @@ namespace App\Enums\Flight;
enum FlightType:int
{
case Systematic = 1;
case Charter = 2;
case Systematic = 0;
case Charter = 1;
public function label(): string
{
+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 => 'در امتظار'
};
}
}
@@ -1,6 +1,6 @@
<?php
namespace App\Enums\Flight;
namespace App\Enums\Tour;
enum TourType:int
{