38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Plans\Tables;
|
|
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\ImageColumn;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class PlansTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
ImageColumn::make('promotion')->imageHeight(100)->disk('promotion'),
|
|
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()->iconButton()->color('gray'),
|
|
]);
|
|
}
|
|
}
|
|
// `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
|