Files
nutzwerte_fi4/app/Filament/Resources/Plans/Tables/PlansTable.php
T
2025-09-28 13:34:36 +02:00

36 lines
1.3 KiB
PHP

<?php
namespace App\Filament\Resources\Plans\Tables;
use Filament\Actions\EditAction;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
class PlansTable
{
public static function configure(Table $table): Table
{
return $table
->columns([
TextColumn::make('name')
->description(fn ($record): string => $record->description)
->wrap(),
TextColumn::make('payment')->label('Plan'),
TextColumn::make('limit_user')->label('B')->tooltip('Benutzer')->badge(),
TextColumn::make('limit_auftraggeber')->label('A')->tooltip('Auftraggeber')->badge(),
TextColumn::make('limit_gutachter')->label('G')->tooltip('Gutachter')->badge(),
TextColumn::make('limit_gutachten')->label('P')->tooltip('Projekte')->badge(),
TextColumn::make('preis')->money('EUR'),
])
->recordActions([
EditAction::make(),
]);
}
}
// `file` varchar(255) DEFAULT NULL,
// `preis` int(11) NOT NULL DEFAULT 0,
// `limit_user` int(11) NOT NULL DEFAULT 1,
// `limit_auftraggeber` int(11) NOT NULL DEFAULT 1,
// `limit_gutachter` int(11) NOT NULL DEFAULT 1,
// `limit_gutachten` int(11) D