big change Inhaltstabelle und PDF
This commit is contained in:
1 parent
2f6ae7e4a1
commit
d5d1f743bb
58 files changed
+1244
-922
No files matched your search
@@ -9,7 +9,6 @@ use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Enums\FiltersLayout;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Support\HtmlString;
|
||||
|
||||
class InhaltsverzeichnisTable
|
||||
{
|
||||
@@ -18,40 +17,27 @@ class InhaltsverzeichnisTable
|
||||
return $table
|
||||
->heading('Inhaltsverzeichnis')
|
||||
->description('Generische Vorlage beim Erstellen neuer Projekte.')
|
||||
// ->recordClasses(fn ($record) => $record->part == 'gutachten' ? 'border-l-4' : 'border-l-4')
|
||||
->columns([
|
||||
TextColumn::make('ordnungszahl')
|
||||
->label('Index')
|
||||
->alignRight()
|
||||
->getStateUsing(fn ($record): string => $record->ordnungszahl == '0' ? '' : number_format($record->ordnungszahl, 2)),
|
||||
IconColumn::make('neue_seite')
|
||||
->tooltip('Start neue Seite')
|
||||
->color('primary')
|
||||
->alignCenter()
|
||||
->label('Start')
|
||||
->icon(fn (string $state): string => match ($state) {
|
||||
'1' => 'phosphor-file-plus',
|
||||
default => ''
|
||||
}),
|
||||
TextColumn::make('name')
|
||||
->color('primary')
|
||||
->label('Überschrift')
|
||||
->wrap(),
|
||||
IconColumn::make('ueberschrift_anzeigen')
|
||||
->label('Anzeigen')
|
||||
->alignCenter()
|
||||
->tooltip('Überschrift anzeigen')
|
||||
->color(fn ($state): string => $state ? 'primary' : 'gray')
|
||||
->icon(fn ($state): string => $state ? 'phosphor-article-ny-times' : ''),
|
||||
IconColumn::make('textblock')
|
||||
->color('primary')
|
||||
->alignCenter()
|
||||
->icon('phosphor-article')
|
||||
->tooltip(fn ($record): HtmlString => new HtmlString($record->name)),
|
||||
IconColumn::make('tabellen')
|
||||
->color('primary')
|
||||
->alignCenter()
|
||||
->icon('phosphor-table')
|
||||
->tooltip(fn ($record): HtmlString => new HtmlString($record->name)),
|
||||
TextColumn::make('inhaltselement.name')
|
||||
->label('Element')
|
||||
->wrap(),
|
||||
TextColumn::make('textblock.name')
|
||||
->wrap(),
|
||||
TextColumn::make('seite')
|
||||
->alignCenter()
|
||||
->badge()
|
||||
|
||||
Reference in new issue
Block a user