50 lines
1.7 KiB
PHP
50 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Clusters\Verwaltung\Kontos\Tables;
|
|
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Support\Enums\FontWeight;
|
|
use Filament\Support\Enums\TextSize;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
use Illuminate\Support\HtmlString;
|
|
|
|
class KontosTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('company')->label('Firma')
|
|
->size(TextSize::Large)
|
|
->weight(FontWeight::Bold)
|
|
->description(fn ($record): HtmlString => new HtmlString($record->address)),
|
|
TextColumn::make('guthaben')
|
|
->size(TextSize::Large)
|
|
->weight(FontWeight::Bold)
|
|
->color('primary')
|
|
->description('Gutachten')
|
|
->alignCenter(),
|
|
TextColumn::make('abgeschlossen')
|
|
->size(TextSize::Large)
|
|
->weight(FontWeight::Bold)
|
|
->color('success')
|
|
->description('Gutachten')
|
|
->alignCenter(),
|
|
|
|
])
|
|
->recordActions([
|
|
EditAction::make()->iconButton(),
|
|
// Action::make('Guthaben laden')
|
|
// ->iconButton()
|
|
// ->color('gray')
|
|
// ->icon('heroicon-o-credit-card')
|
|
// ->schema([
|
|
// TextInput::make('subject')->required(),
|
|
// RichEditor::make('body')->required(),
|
|
// ])
|
|
// ->action(function (array $data) {}),
|
|
]);
|
|
}
|
|
}
|