58 lines
1.6 KiB
PHP
58 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\BazaarReleases;
|
|
|
|
use App\Filament\Resources\BazaarReleases\Pages\ListBazaarReleases;
|
|
use App\Filament\Resources\BazaarReleases\Pages\ViewBazaarRelease;
|
|
use App\Filament\Resources\BazaarReleases\Schemas\BazaarReleaseForm;
|
|
use App\Filament\Resources\BazaarReleases\Schemas\BazaarReleaseInfolist;
|
|
use App\Filament\Resources\BazaarReleases\Tables\BazaarReleasesTable;
|
|
use App\Models\BazaarRelease;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class BazaarReleaseResource extends Resource
|
|
{
|
|
protected static ?string $model = BazaarRelease::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Cafe Bazaar';
|
|
|
|
protected static ?string $navigationLabel = 'Publishing';
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return BazaarReleaseForm::configure($schema);
|
|
}
|
|
|
|
public static function infolist(Schema $schema): Schema
|
|
{
|
|
return BazaarReleaseInfolist::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return BazaarReleasesTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListBazaarReleases::route('/'),
|
|
'view' => ViewBazaarRelease::route('/{record}'),
|
|
];
|
|
}
|
|
}
|