65 lines
1.8 KiB
PHP
65 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\KontoOptions;
|
|
|
|
use App\Filament\Clusters\Administration\AdministrationCluster;
|
|
use App\Filament\Resources\KontoOptions\Pages\CreateKontoOption;
|
|
use App\Filament\Resources\KontoOptions\Pages\EditKontoOption;
|
|
use App\Filament\Resources\KontoOptions\Pages\ListKontoOptions;
|
|
use App\Filament\Resources\KontoOptions\Schemas\KontoOptionForm;
|
|
use App\Filament\Resources\KontoOptions\Tables\KontoOptionTable;
|
|
use App\Models\KontoOption;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class KontoOptionResource extends Resource
|
|
{
|
|
protected static ?string $model = KontoOption::class;
|
|
|
|
protected static ?string $cluster = AdministrationCluster::class;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Kunden';
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = 'lucide-key-square';
|
|
|
|
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 KontoOptionForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return KontoOptionTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListKontoOptions::route('/'),
|
|
'create' => CreateKontoOption::route('/create'),
|
|
'edit' => EditKontoOption::route('/{record}/edit'),
|
|
];
|
|
}
|
|
|
|
public static function getNavigationBadge(): ?string
|
|
{
|
|
return parent::getEloquentQuery()->count();
|
|
}
|
|
}
|