fix: fix tours and flights pagination on homepage
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Flight;
|
||||
|
||||
enum TourType:int
|
||||
{
|
||||
case RECREATIONAL = 0;
|
||||
case TOURISM = 1;
|
||||
case PILGRIMAGE = 2;
|
||||
case ECO_TOURISM = 3;
|
||||
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::RECREATIONAL => 'تفریحی',
|
||||
self::TOURISM => 'گردشگری',
|
||||
self::PILGRIMAGE => 'زیارتی',
|
||||
self::ECO_TOURISM => 'طبیعتگردی'
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user