47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Projektes\RelationManagers;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\CreateAction;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Resources\RelationManagers\RelationManager;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
|
{
|
|
protected static string $relationship = 'orientierung_zu_abschlaeges';
|
|
|
|
protected static ?string $title = 'Orientierung Zu/Abschläge';
|
|
|
|
protected static ?string $navigationLabel = 'Orientierung Zu/Abschläge';
|
|
|
|
protected static ?string $modelLabel = 'Orientierung Zu/Abschläge';
|
|
|
|
protected static ?string $pluralModelLabel = 'Orientierung Zu/Abschläge';
|
|
|
|
public function table(Table $table): Table
|
|
{
|
|
return $table
|
|
->recordTitleAttribute('top_nummer')
|
|
->columns([
|
|
TextColumn::make('top_nummer')
|
|
->searchable(),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->headerActions([
|
|
CreateAction::make(),
|
|
])
|
|
->recordActions([
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|