Skip to content

Commit

Permalink
Changes to files: app/Filament/Resources/BranchResource.php
Browse files Browse the repository at this point in the history
app/Filament/Resources/BranchResource/Pages/Creating.php
app/Filament/Resources/BranchResource/Pages/Editing.php
app/Filament/Resources/BranchResource/Pages/Listing.php
app/Filament/Resources/CompanyResource.php
app/Filament/Resources/CompanyResource/Pages/Creating.php
app/Filament/Resources/CompanyResource/Pages/Editing.php
app/Filament/Resources/CompanyResource/Pages/Listing.php
app/Filament/Resources/CountryCurrencyResource.php
app/Filament/Resources/CountryCurrencyResource/Pages/Creating.php
app/Filament/Resources/CountryCurrencyResource/Pages/Editing.php
app/Filament/Resources/CountryCurrencyResource/Pages/Listing.php
app/Filament/Resources/CountryResource.php
app/Filament/Resources/CountryResource/Pages/Creating.php
app/Filament/Resources/CountryResource/Pages/Editing.php
app/Filament/Resources/CountryResource/Pages/Listing.php
app/Filament/Resources/CurrencyResource.php
app/Filament/Resources/CurrencyResource/Pages/Creating.php
app/Filament/Resources/CurrencyResource/Pages/Editing.php
app/Filament/Resources/CurrencyResource/Pages/Listing.php
app/Filament/Resources/DataMigratedResource.php
app/Filament/Resources/DataMigratedResource/Pages/Creating.php
app/Filament/Resources/DataMigratedResource/Pages/Editing.php
app/Filament/Resources/DataMigratedResource/Pages/Listing.php
app/Filament/Resources/LanguageResource.php
app/Filament/Resources/LanguageResource/Pages/Creating.php
app/Filament/Resources/LanguageResource/Pages/Editing.php
app/Filament/Resources/LanguageResource/Pages/Listing.php
app/Filament/Resources/LanguageTranslationResource.php
app/Filament/Resources/LanguageTranslationResource/Pages/Creating.php
app/Filament/Resources/LanguageTranslationResource/Pages/Editing.php
app/Filament/Resources/LanguageTranslationResource/Pages/Listing.php
app/Filament/Resources/NotificationResource.php
app/Filament/Resources/NotificationResource/Pages/Creating.php
app/Filament/Resources/NotificationResource/Pages/Editing.php
app/Filament/Resources/NotificationResource/Pages/Listing.php
app/Filament/Resources/SettingResource.php
app/Filament/Resources/SettingResource/Pages/Creating.php
app/Filament/Resources/SettingResource/Pages/Editing.php
app/Filament/Resources/SettingResource/Pages/Listing.php
app/Filament/Resources/TimezoneResource.php
app/Filament/Resources/TimezoneResource/Pages/Creating.php
app/Filament/Resources/TimezoneResource/Pages/Editing.php
app/Filament/Resources/TimezoneResource/Pages/Listing.php
  • Loading branch information
dedanirungu committed Oct 13, 2024
1 parent dbfd8ef commit c53a869
Show file tree
Hide file tree
Showing 44 changed files with 111 additions and 70 deletions.
11 changes: 4 additions & 7 deletions app/Filament/Resources/BranchResource.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\Core\Filament\Resources\BranchResource\Pages;
use Modules\Core\Models\Branch;

class BranchResource extends BaseResource
Expand Down Expand Up @@ -111,13 +111,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/BranchResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\BranchResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\BranchResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = BranchResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/BranchResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\BranchResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Core\Filament\Resources\BranchResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = BranchResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/BranchResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\BranchResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Core\Filament\Resources\BranchResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = BranchResource::class;
}
11 changes: 4 additions & 7 deletions app/Filament/Resources/CompanyResource.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\Core\Filament\Resources\CompanyResource\Pages;
use Modules\Core\Models\Company;

class CompanyResource extends BaseResource
Expand Down Expand Up @@ -105,13 +105,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/CompanyResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CompanyResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\CompanyResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = CompanyResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/CompanyResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CompanyResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Core\Filament\Resources\CompanyResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = CompanyResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/CompanyResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CompanyResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Core\Filament\Resources\CompanyResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = CompanyResource::class;
}
11 changes: 4 additions & 7 deletions app/Filament/Resources/CountryCurrencyResource.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\Core\Filament\Resources\CountryCurrencyResource\Pages;
use Modules\Core\Models\CountryCurrency;

class CountryCurrencyResource extends BaseResource
Expand Down Expand Up @@ -72,13 +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'),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CountryCurrencyResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\CountryCurrencyResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = CountryCurrencyResource::class;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CountryCurrencyResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Core\Filament\Resources\CountryCurrencyResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = CountryCurrencyResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

namespace Modules\Core\Filament\Resources\CountryCurrencyResources\Pages;
namespace Modules\Core\Filament\Resources\CountryCurrencyResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Core\Filament\Resources\CountryCurrencyResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = CountryCurrencyResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/CountryResource.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\Core\Filament\Resources\CountryResource\Pages;
use Modules\Core\Models\Country;

class CountryResource extends BaseResource
Expand Down Expand Up @@ -89,12 +89,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/CountryResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CountryResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\CountryCurrencyResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = CountryCurrencyResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/CountryResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CountryResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Core\Filament\Resources\CountryResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = CountryResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/CountryResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CountryResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Core\Filament\Resources\CountryResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = CountryResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/CurrencyResource.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\Core\Filament\Resources\CurrencyResource\Pages;
use Modules\Core\Models\Currency;

class CurrencyResource extends BaseResource
Expand Down Expand Up @@ -109,12 +109,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/CurrencyResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CurrencyResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\CurrencyResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = CurrencyResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/CurrencyResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CurrencyResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Core\Filament\Resources\CurrencyResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = CurrencyResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/CurrencyResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\CurrencyResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Core\Filament\Resources\CurrencyResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = CurrencyResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/DataMigratedResource.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\Core\Filament\Resources\DataMigratedResource\Pages;
use Modules\Core\Models\DataMigrated;

class DataMigratedResource extends BaseResource
Expand Down Expand Up @@ -90,12 +90,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'),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\DataMigratedResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\DataMigratedResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = DataMigratedResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/DataMigratedResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\DataMigratedResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Core\Filament\Resources\DataMigratedResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = DataMigratedResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/DataMigratedResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\DataMigratedResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Core\Filament\Resources\DataMigratedResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = DataMigratedResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/LanguageResource.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\Core\Filament\Resources\LanguageResource\Pages;
use Modules\Core\Models\Language;

class LanguageResource extends BaseResource
Expand Down Expand Up @@ -68,12 +68,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/LanguageResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Core\Filament\Resources\LanguageResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Core\Filament\Resources\LanguageResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = LanguageResource::class;
}
Loading

0 comments on commit c53a869

Please sign in to comment.