Skip to content

Commit

Permalink
Changes to files: app/Filament/Resources/AttendantResource.php
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dedanirungu committed Oct 13, 2024
1 parent 2b67faa commit 982e6f6
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 24 deletions.
10 changes: 4 additions & 6 deletions app/Filament/Resources/AttendantResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/AttendantResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/AttendantResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/AttendantResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/DestinationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/DestinationResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/DestinationResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/DestinationResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/TicketLogResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/TicketLogResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/TicketLogResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/TicketLogResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/TicketResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/TicketResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/TicketResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/TicketResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 982e6f6

Please sign in to comment.