From 982e6f647bea02fe0a116d80ab4fa7ee6ee9246a Mon Sep 17 00:00:00 2001 From: Dedan Date: Mon, 14 Oct 2024 00:07:37 +0300 Subject: [PATCH] Changes to files: app/Filament/Resources/AttendantResource.php app/Filament/Resources/AttendantResource/Pages/Creating.php app/Filament/Resources/AttendantResource/Pages/Editing.php app/Filament/Resources/AttendantResource/Pages/Listing.php app/Filament/Resources/DestinationResource.php app/Filament/Resources/DestinationResource/Pages/Creating.php app/Filament/Resources/DestinationResource/Pages/Editing.php app/Filament/Resources/DestinationResource/Pages/Listing.php app/Filament/Resources/TicketLogResource.php app/Filament/Resources/TicketLogResource/Pages/Creating.php app/Filament/Resources/TicketLogResource/Pages/Editing.php app/Filament/Resources/TicketLogResource/Pages/Listing.php app/Filament/Resources/TicketResource.php app/Filament/Resources/TicketResource/Pages/Creating.php app/Filament/Resources/TicketResource/Pages/Editing.php app/Filament/Resources/TicketResource/Pages/Listing.php --- app/Filament/Resources/AttendantResource.php | 10 ++++------ .../Resources/AttendantResource/Pages/Creating.php | 2 ++ .../Resources/AttendantResource/Pages/Editing.php | 2 ++ .../Resources/AttendantResource/Pages/Listing.php | 2 ++ app/Filament/Resources/DestinationResource.php | 10 ++++------ .../Resources/DestinationResource/Pages/Creating.php | 2 ++ .../Resources/DestinationResource/Pages/Editing.php | 2 ++ .../Resources/DestinationResource/Pages/Listing.php | 2 ++ app/Filament/Resources/TicketLogResource.php | 10 ++++------ .../Resources/TicketLogResource/Pages/Creating.php | 2 ++ .../Resources/TicketLogResource/Pages/Editing.php | 2 ++ .../Resources/TicketLogResource/Pages/Listing.php | 2 ++ app/Filament/Resources/TicketResource.php | 10 ++++------ .../Resources/TicketResource/Pages/Creating.php | 2 ++ .../Resources/TicketResource/Pages/Editing.php | 2 ++ .../Resources/TicketResource/Pages/Listing.php | 2 ++ 16 files changed, 40 insertions(+), 24 deletions(-) diff --git a/app/Filament/Resources/AttendantResource.php b/app/Filament/Resources/AttendantResource.php index c437109..55cae21 100644 --- a/app/Filament/Resources/AttendantResource.php +++ b/app/Filament/Resources/AttendantResource.php @@ -7,7 +7,7 @@ use Filament\Tables; use Filament\Tables\Table; use Modules\Base\Filament\Resources\BaseResource; -use Modules\Base\Filament\Resources\Pages; +use Modules\Queuing\Filament\Resources\AttendantResource\Pages; use Modules\Queuing\Models\Attendant; class AttendantResource extends BaseResource @@ -82,12 +82,10 @@ public static function table(Table $table): Table public static function getPages(): array { - Pages\ListBase::setResource(static::class); - return [ - 'index' => Pages\ListBase::route('/'), - 'create' => Pages\CreateBase::route('/create'), - 'edit' => Pages\EditBase::route('/{record}/edit'), + 'index' => Pages\Listing::route('/'), + 'create' => Pages\Creating::route('/create'), + 'edit' => Pages\Editing::route('/{record}/edit'), ]; } } diff --git a/app/Filament/Resources/AttendantResource/Pages/Creating.php b/app/Filament/Resources/AttendantResource/Pages/Creating.php index 1b01e4f..e5e21d5 100644 --- a/app/Filament/Resources/AttendantResource/Pages/Creating.php +++ b/app/Filament/Resources/AttendantResource/Pages/Creating.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\AttendantResource\Pages; use Modules\Base\Filament\Resources\Pages\CreatingBase; +use Modules\Queuing\Filament\Resources\AttendantResource; // Class List that extends ListBase class Creating extends CreatingBase { + protected static string $resource = AttendantResource::class; } diff --git a/app/Filament/Resources/AttendantResource/Pages/Editing.php b/app/Filament/Resources/AttendantResource/Pages/Editing.php index fa5705c..fd10ab6 100644 --- a/app/Filament/Resources/AttendantResource/Pages/Editing.php +++ b/app/Filament/Resources/AttendantResource/Pages/Editing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\AttendantResource\Pages; use Modules\Base\Filament\Resources\Pages\EditingBase; +use Modules\Queuing\Filament\Resources\AttendantResource; // Class List that extends ListBase class Editing extends EditingBase { + protected static string $resource = AttendantResource::class; } diff --git a/app/Filament/Resources/AttendantResource/Pages/Listing.php b/app/Filament/Resources/AttendantResource/Pages/Listing.php index 84b1e43..1513818 100644 --- a/app/Filament/Resources/AttendantResource/Pages/Listing.php +++ b/app/Filament/Resources/AttendantResource/Pages/Listing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\AttendantResource\Pages; use Modules\Base\Filament\Resources\Pages\ListingBase; +use Modules\Queuing\Filament\Resources\AttendantResource; // Class List that extends ListBase class Listing extends ListingBase { + protected static string $resource = AttendantResource::class; } diff --git a/app/Filament/Resources/DestinationResource.php b/app/Filament/Resources/DestinationResource.php index 0d326e5..8ed0791 100644 --- a/app/Filament/Resources/DestinationResource.php +++ b/app/Filament/Resources/DestinationResource.php @@ -7,7 +7,7 @@ use Filament\Tables; use Filament\Tables\Table; use Modules\Base\Filament\Resources\BaseResource; -use Modules\Base\Filament\Resources\Pages; +use Modules\Queuing\Filament\Resources\DestinationResource\Pages; use Modules\Queuing\Models\Destination; class DestinationResource extends BaseResource @@ -72,12 +72,10 @@ public static function table(Table $table): Table public static function getPages(): array { - Pages\ListBase::setResource(static::class); - return [ - 'index' => Pages\ListBase::route('/'), - 'create' => Pages\CreateBase::route('/create'), - 'edit' => Pages\EditBase::route('/{record}/edit'), + 'index' => Pages\Listing::route('/'), + 'create' => Pages\Creating::route('/create'), + 'edit' => Pages\Editing::route('/{record}/edit'), ]; } } diff --git a/app/Filament/Resources/DestinationResource/Pages/Creating.php b/app/Filament/Resources/DestinationResource/Pages/Creating.php index 9d4d99b..6c9e5e6 100644 --- a/app/Filament/Resources/DestinationResource/Pages/Creating.php +++ b/app/Filament/Resources/DestinationResource/Pages/Creating.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\DestinationResource\Pages; use Modules\Base\Filament\Resources\Pages\CreatingBase; +use Modules\Queuing\Filament\Resources\DestinationResource; // Class List that extends ListBase class Creating extends CreatingBase { + protected static string $resource = DestinationResource::class; } diff --git a/app/Filament/Resources/DestinationResource/Pages/Editing.php b/app/Filament/Resources/DestinationResource/Pages/Editing.php index 21a2676..d24ec0d 100644 --- a/app/Filament/Resources/DestinationResource/Pages/Editing.php +++ b/app/Filament/Resources/DestinationResource/Pages/Editing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\DestinationResource\Pages; use Modules\Base\Filament\Resources\Pages\EditingBase; +use Modules\Queuing\Filament\Resources\DestinationResource; // Class List that extends ListBase class Editing extends EditingBase { + protected static string $resource = DestinationResource::class; } diff --git a/app/Filament/Resources/DestinationResource/Pages/Listing.php b/app/Filament/Resources/DestinationResource/Pages/Listing.php index d6fd416..be4db91 100644 --- a/app/Filament/Resources/DestinationResource/Pages/Listing.php +++ b/app/Filament/Resources/DestinationResource/Pages/Listing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\DestinationResource\Pages; use Modules\Base\Filament\Resources\Pages\ListingBase; +use Modules\Queuing\Filament\Resources\DestinationResource; // Class List that extends ListBase class Listing extends ListingBase { + protected static string $resource = DestinationResource::class; } diff --git a/app/Filament/Resources/TicketLogResource.php b/app/Filament/Resources/TicketLogResource.php index 07a0658..a0f5d66 100644 --- a/app/Filament/Resources/TicketLogResource.php +++ b/app/Filament/Resources/TicketLogResource.php @@ -7,7 +7,7 @@ use Filament\Tables; use Filament\Tables\Table; use Modules\Base\Filament\Resources\BaseResource; -use Modules\Base\Filament\Resources\Pages; +use Modules\Queuing\Filament\Resources\TicketLogResource\Pages; use Modules\Queuing\Models\TicketLog; class TicketLogResource extends BaseResource @@ -70,12 +70,10 @@ public static function table(Table $table): Table public static function getPages(): array { - Pages\ListBase::setResource(static::class); - return [ - 'index' => Pages\ListBase::route('/'), - 'create' => Pages\CreateBase::route('/create'), - 'edit' => Pages\EditBase::route('/{record}/edit'), + 'index' => Pages\Listing::route('/'), + 'create' => Pages\Creating::route('/create'), + 'edit' => Pages\Editing::route('/{record}/edit'), ]; } } diff --git a/app/Filament/Resources/TicketLogResource/Pages/Creating.php b/app/Filament/Resources/TicketLogResource/Pages/Creating.php index 0f610a2..3f52bde 100644 --- a/app/Filament/Resources/TicketLogResource/Pages/Creating.php +++ b/app/Filament/Resources/TicketLogResource/Pages/Creating.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\TicketLogResource\Pages; use Modules\Base\Filament\Resources\Pages\CreatingBase; +use Modules\Queuing\Filament\Resources\TicketLogResource; // Class List that extends ListBase class Creating extends CreatingBase { + protected static string $resource = TicketLogResource::class; } diff --git a/app/Filament/Resources/TicketLogResource/Pages/Editing.php b/app/Filament/Resources/TicketLogResource/Pages/Editing.php index f688cd3..debaec8 100644 --- a/app/Filament/Resources/TicketLogResource/Pages/Editing.php +++ b/app/Filament/Resources/TicketLogResource/Pages/Editing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\TicketLogResource\Pages; use Modules\Base\Filament\Resources\Pages\EditingBase; +use Modules\Queuing\Filament\Resources\TicketLogResource; // Class List that extends ListBase class Editing extends EditingBase { + protected static string $resource = TicketLogResource::class; } diff --git a/app/Filament/Resources/TicketLogResource/Pages/Listing.php b/app/Filament/Resources/TicketLogResource/Pages/Listing.php index bcdcc55..ea2e8e3 100644 --- a/app/Filament/Resources/TicketLogResource/Pages/Listing.php +++ b/app/Filament/Resources/TicketLogResource/Pages/Listing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\TicketLogResource\Pages; use Modules\Base\Filament\Resources\Pages\ListingBase; +use Modules\Queuing\Filament\Resources\TicketLogResource; // Class List that extends ListBase class Listing extends ListingBase { + protected static string $resource = TicketLogResource::class; } diff --git a/app/Filament/Resources/TicketResource.php b/app/Filament/Resources/TicketResource.php index f154007..3eed92c 100644 --- a/app/Filament/Resources/TicketResource.php +++ b/app/Filament/Resources/TicketResource.php @@ -7,7 +7,7 @@ use Filament\Tables; use Filament\Tables\Table; use Modules\Base\Filament\Resources\BaseResource; -use Modules\Base\Filament\Resources\Pages; +use Modules\Queuing\Filament\Resources\TicketResource\Pages; use Modules\Queuing\Models\Ticket; class TicketResource extends BaseResource @@ -86,12 +86,10 @@ public static function table(Table $table): Table public static function getPages(): array { - Pages\ListBase::setResource(static::class); - return [ - 'index' => Pages\ListBase::route('/'), - 'create' => Pages\CreateBase::route('/create'), - 'edit' => Pages\EditBase::route('/{record}/edit'), + 'index' => Pages\Listing::route('/'), + 'create' => Pages\Creating::route('/create'), + 'edit' => Pages\Editing::route('/{record}/edit'), ]; } } diff --git a/app/Filament/Resources/TicketResource/Pages/Creating.php b/app/Filament/Resources/TicketResource/Pages/Creating.php index b501bd4..078ee8b 100644 --- a/app/Filament/Resources/TicketResource/Pages/Creating.php +++ b/app/Filament/Resources/TicketResource/Pages/Creating.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\TicketResource\Pages; use Modules\Base\Filament\Resources\Pages\CreatingBase; +use Modules\Queuing\Filament\Resources\TicketResource; // Class List that extends ListBase class Creating extends CreatingBase { + protected static string $resource = TicketResource::class; } diff --git a/app/Filament/Resources/TicketResource/Pages/Editing.php b/app/Filament/Resources/TicketResource/Pages/Editing.php index 3d7f303..5dfc7e8 100644 --- a/app/Filament/Resources/TicketResource/Pages/Editing.php +++ b/app/Filament/Resources/TicketResource/Pages/Editing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\TicketResource\Pages; use Modules\Base\Filament\Resources\Pages\EditingBase; +use Modules\Queuing\Filament\Resources\TicketResource; // Class List that extends ListBase class Editing extends EditingBase { + protected static string $resource = TicketResource::class; } diff --git a/app/Filament/Resources/TicketResource/Pages/Listing.php b/app/Filament/Resources/TicketResource/Pages/Listing.php index f0f1461..b12b41e 100644 --- a/app/Filament/Resources/TicketResource/Pages/Listing.php +++ b/app/Filament/Resources/TicketResource/Pages/Listing.php @@ -3,8 +3,10 @@ namespace Modules\Queuing\Filament\Resources\TicketResource\Pages; use Modules\Base\Filament\Resources\Pages\ListingBase; +use Modules\Queuing\Filament\Resources\TicketResource; // Class List that extends ListBase class Listing extends ListingBase { + protected static string $resource = TicketResource::class; }