68 lines
1.9 KiB
PHP
68 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\TemplateGenerations;
|
|
|
|
use App\Filament\Resources\TemplateGenerations\Pages\ListTemplateGenerations;
|
|
use App\Filament\Resources\TemplateGenerations\Pages\ViewTemplateGeneration;
|
|
use App\Filament\Resources\TemplateGenerations\Schemas\TemplateGenerationInfolist;
|
|
use App\Filament\Resources\TemplateGenerations\Tables\TemplateGenerationsTable;
|
|
use App\Models\TemplateGeneration;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class TemplateGenerationResource extends Resource
|
|
{
|
|
protected static ?string $model = TemplateGeneration::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedDocumentArrowDown;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'پاورپوینتها';
|
|
|
|
protected static ?string $recordTitleAttribute = 'uuid';
|
|
|
|
protected static ?string $modelLabel = 'تولید';
|
|
|
|
protected static ?string $pluralModelLabel = 'تولیدها';
|
|
|
|
protected static ?string $navigationLabel = 'تولیدها';
|
|
|
|
protected static ?int $navigationSort = 22;
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return TemplateGenerationsTable::configure($table);
|
|
}
|
|
|
|
public static function infolist(Schema $schema): Schema
|
|
{
|
|
return TemplateGenerationInfolist::configure($schema);
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListTemplateGenerations::route('/'),
|
|
'view' => ViewTemplateGeneration::route('/{record}'),
|
|
];
|
|
}
|
|
|
|
public static function canCreate(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function canEdit($record): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function canDelete($record): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|