- Datenmodell Property/Season/Extra (Beträge in Cent), Seeder mit Preisliste 2026 - PriceCalculator: Saison-Splitting, Mindestaufenthalt, Zusatzperson, Endreinigung, Extras, Anzahlung/Restzahlung - Filament-Verwaltung: Wohnungen, Saisons (Überschneidungsprüfung, Lückenwarnung, Kopie ins Folgejahr, Preisrechner), Zusatzleistungen - Tests für Preisberechnung und Saisonverwaltung Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Properties\Tables;
|
|
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\IconColumn;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class PropertiesTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('name')
|
|
->label('Name')
|
|
->searchable(),
|
|
TextColumn::make('address')
|
|
->label('Adresse'),
|
|
TextColumn::make('size_sqm')
|
|
->label('Größe')
|
|
->suffix(' m²'),
|
|
TextColumn::make('max_guests')
|
|
->label('Max. Personen'),
|
|
TextColumn::make('cleaning_fee')
|
|
->label('Endreinigung')
|
|
->money('EUR', divideBy: 100, locale: 'de'),
|
|
IconColumn::make('is_active')
|
|
->label('Aktiv')
|
|
->boolean(),
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
]);
|
|
}
|
|
}
|