projekte
This commit is contained in:
1 parent
0b1a1493b2
commit
527739b996
20 files changed
+546
No files matched your search
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Methodes;
|
||||
|
||||
use App\Filament\Clusters\Administration\AdministrationCluster;
|
||||
use App\Filament\Resources\Methodes\Pages\CreateMethode;
|
||||
use App\Filament\Resources\Methodes\Pages\EditMethode;
|
||||
use App\Filament\Resources\Methodes\Pages\ListMethodes;
|
||||
use App\Filament\Resources\Methodes\Schemas\MethodeForm;
|
||||
use App\Filament\Resources\Methodes\Tables\MethodesTable;
|
||||
use App\Models\Methode;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use UnitEnum;
|
||||
|
||||
class MethodeResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Methode::class;
|
||||
|
||||
protected static ?string $cluster = AdministrationCluster::class;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Programm';
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'lucide-calculator';
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $navigationLabel = 'Methode';
|
||||
|
||||
protected static ?string $modelLabel = 'Methode';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Methoden';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return MethodeForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return MethodesTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListMethodes::route('/'),
|
||||
'create' => CreateMethode::route('/create'),
|
||||
'edit' => EditMethode::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
{
|
||||
return parent::getEloquentQuery()->count();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user