58 lines
1.7 KiB
PHP
58 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\BazaarSubscriptions;
|
|
|
|
use App\Filament\Resources\BazaarSubscriptions\Pages\ListBazaarSubscriptions;
|
|
use App\Filament\Resources\BazaarSubscriptions\Pages\ViewBazaarSubscription;
|
|
use App\Filament\Resources\BazaarSubscriptions\Schemas\BazaarSubscriptionForm;
|
|
use App\Filament\Resources\BazaarSubscriptions\Schemas\BazaarSubscriptionInfolist;
|
|
use App\Filament\Resources\BazaarSubscriptions\Tables\BazaarSubscriptionsTable;
|
|
use App\Models\BazaarSubscription;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class BazaarSubscriptionResource extends Resource
|
|
{
|
|
protected static ?string $model = BazaarSubscription::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Cafe Bazaar';
|
|
|
|
protected static ?string $navigationLabel = 'Subscriptions';
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return BazaarSubscriptionForm::configure($schema);
|
|
}
|
|
|
|
public static function infolist(Schema $schema): Schema
|
|
{
|
|
return BazaarSubscriptionInfolist::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return BazaarSubscriptionsTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListBazaarSubscriptions::route('/'),
|
|
'view' => ViewBazaarSubscription::route('/{record}'),
|
|
];
|
|
}
|
|
}
|