GutachtenValidation

This commit is contained in:
salam committed 2025-10-17 18:04:34 +02:00
1 parent d1ce891d9c
commit 8ccc4a3c20
15 files changed
+390 -109

No files matched your search

@@ -9,6 +9,7 @@ use App\Models\OrientierungZuAbschlaege;
use Filament\Actions\Action;
use Filament\Actions\BulkAction;
use Filament\Actions\BulkActionGroup;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Resources\RelationManagers\RelationManager;
@@ -58,10 +59,10 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
CheckboxColumn::make('nicht_in_orientierung')
->label('Nicht in Orientierung')
->toggleable(),
TextInputColumn::make('raumart')
TextColumn::make('raumart')
->toggleable()
->width('2rem')
->rules(['required'])
// ->rules(['required'])
->searchable(),
SelectColumn::make('orientierung_id')
->toggleable()
@@ -156,8 +157,29 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
);
}
}),
BulkAction::make('nicht_in_orientierung')
->color('primary')
->label('Nicht In Orientierung')
->schema([
Radio::make('nicht_in_orientierung')
->hiddenLabel()
->default(1)
->options([
'1' => 'Ja',
'0' => 'Nein',
]),
])
->icon('phosphor-arrow-square-out')
->action(function (Collection $records, array $data): void {
foreach ($records as $record) {
OrientierungZuAbschlaege::where('id', '=', $record->id)
->update(
['nicht_in_orientierung' => 1]
);
}
}),
BulkAction::make('a')
->label($spalten['a'] ?? '')
->label($spalten['a'].' Faktor' ?? '')
->color('info')
->hidden(isset($spalten['a']) ? false : true)
->schema([