diff --git a/app/Filament/Resources/Projektes/RelationManagers/OrientierungZuAbschlaegesRelationManager.php b/app/Filament/Resources/Projektes/RelationManagers/OrientierungZuAbschlaegesRelationManager.php index aa4a470..298cda1 100644 --- a/app/Filament/Resources/Projektes/RelationManagers/OrientierungZuAbschlaegesRelationManager.php +++ b/app/Filament/Resources/Projektes/RelationManagers/OrientierungZuAbschlaegesRelationManager.php @@ -158,12 +158,13 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager }), BulkAction::make('a') ->label($spalten['a'] ?? '') + ->color('info') ->hidden(isset($spalten['a']) ? false : true) ->schema([ TextInput::make('a') - ->prefixIcon('phosphor-gear'), + ->prefixIcon('phosphor-math-operations'), ]) - ->icon('phosphor-gear') + ->icon('phosphor-math-operations') ->action(function (Collection $records, array $data): void { foreach ($records as $record) { OrientierungZuAbschlaege::where('id', '=', $record->id) @@ -174,12 +175,13 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager }), BulkAction::make('b') ->label($spalten['b'] ?? '') + ->color('info') ->hidden(isset($spalten['b']) ? false : true) ->schema([ TextInput::make('b') - ->prefixIcon('phosphor-gear'), + ->prefixIcon('phosphor-math-operations'), ]) - ->icon('phosphor-gear') + ->icon('phosphor-math-operations') ->action(function (Collection $records, array $data): void { foreach ($records as $record) { OrientierungZuAbschlaege::where('id', '=', $record->id) @@ -190,12 +192,13 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager }), BulkAction::make('c') ->label($spalten['c'] ?? '') + ->color('info') ->hidden(isset($spalten['c']) ? false : true) ->schema([ TextInput::make('c') - ->prefixIcon('phosphor-gear'), + ->prefixIcon('phosphor-math-operations'), ]) - ->icon('phosphor-gear') + ->icon('phosphor-math-operations') ->action(function (Collection $records, array $data): void { foreach ($records as $record) { OrientierungZuAbschlaege::where('id', '=', $record->id) @@ -204,6 +207,125 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager ); } }), + BulkAction::make('d') + ->label($spalten['d'] ?? '') + ->color('info') + ->hidden(isset($spalten['d']) ? false : true) + ->schema([ + TextInput::make('d') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['d' => $data['d']] + ); + } + }), + BulkAction::make('e') + ->label($spalten['e'] ?? '') + ->color('info') + ->hidden(isset($spalten['e']) ? false : true) + ->schema([ + TextInput::make('e') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['e' => $data['e']] + ); + } + }), + BulkAction::make('f') + ->label($spalten['f'] ?? '') + ->color('info') + ->hidden(isset($spalten['f']) ? false : true) + ->schema([ + TextInput::make('f') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['f' => $data['f']] + ); + } + }), + BulkAction::make('g') + ->label($spalten['g'] ?? '') + ->color('info') + ->hidden(isset($spalten['g']) ? false : true) + ->schema([ + TextInput::make('g') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['g' => $data['g']] + ); + } + }), + BulkAction::make('h') + ->label($spalten['h'] ?? '') + ->color('info') + ->hidden(isset($spalten['h']) ? false : true) + ->schema([ + TextInput::make('h') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['h' => $data['h']] + ); + } + }), + BulkAction::make('i') + ->label($spalten['i'] ?? '') + ->color('info') + ->hidden(isset($spalten['i']) ? false : true) + ->schema([ + TextInput::make('i') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['i' => $data['i']] + ); + } + }), + BulkAction::make('j') + ->label($spalten['j'] ?? '') + ->color('info') + ->hidden(isset($spalten['j']) ? false : true) + ->schema([ + TextInput::make('j') + ->prefixIcon('phosphor-math-operations'), + ]) + ->icon('phosphor-math-operations') + ->action(function (Collection $records, array $data): void { + foreach ($records as $record) { + OrientierungZuAbschlaege::where('id', '=', $record->id) + ->update( + ['j' => $data['j']] + ); + } + }), ]), ]); }