Files
nutzwerte_fi4/app/Filament/Resources/Kontooptionens/KontooptionenResource.php
T
2025-09-06 17:56:57 +02:00

62 lines
1.7 KiB
PHP

<?php
namespace App\Filament\Resources\Kontooptionens;
use App\Filament\Resources\Kontooptionens\Pages\CreateKontooptionen;
use App\Filament\Resources\Kontooptionens\Pages\EditKontooptionen;
use App\Filament\Resources\Kontooptionens\Pages\ListKontooptionens;
use App\Filament\Resources\Kontooptionens\Schemas\KontooptionenForm;
use App\Filament\Resources\Kontooptionens\Tables\KontooptionensTable;
use App\Models\Kontooptionen;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
use UnitEnum;
class KontooptionenResource extends Resource
{
protected static ?string $model = Kontooptionen::class;
protected static string|BackedEnum|null $navigationIcon = 'lucide-key-square';
protected static string|UnitEnum|null $navigationGroup = 'Interne Administration';
protected static ?string $navigationLabel = 'Konto Optionen';
protected static ?string $modelLabel = 'Konto Option';
protected static ?string $pluralModelLabel = 'Konto Optionen';
public static function form(Schema $schema): Schema
{
return KontooptionenForm::configure($schema);
}
public static function table(Table $table): Table
{
return KontooptionensTable::configure($table);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => ListKontooptionens::route('/'),
'create' => CreateKontooptionen::route('/create'),
'edit' => EditKontooptionen::route('/{record}/edit'),
];
}
public static function getNavigationBadge(): ?string
{
return parent::getEloquentQuery()->count();
}
}