OrientierungZuAbschlaegesRelationManager ok
This commit is contained in:
1 parent
1728384c4e
commit
2f2c44c0d7
1 file changed
+128
-6
+128
-6
@@ -158,12 +158,13 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
|||||||
}),
|
}),
|
||||||
BulkAction::make('a')
|
BulkAction::make('a')
|
||||||
->label($spalten['a'] ?? '')
|
->label($spalten['a'] ?? '')
|
||||||
|
->color('info')
|
||||||
->hidden(isset($spalten['a']) ? false : true)
|
->hidden(isset($spalten['a']) ? false : true)
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('a')
|
TextInput::make('a')
|
||||||
->prefixIcon('phosphor-gear'),
|
->prefixIcon('phosphor-math-operations'),
|
||||||
])
|
])
|
||||||
->icon('phosphor-gear')
|
->icon('phosphor-math-operations')
|
||||||
->action(function (Collection $records, array $data): void {
|
->action(function (Collection $records, array $data): void {
|
||||||
foreach ($records as $record) {
|
foreach ($records as $record) {
|
||||||
OrientierungZuAbschlaege::where('id', '=', $record->id)
|
OrientierungZuAbschlaege::where('id', '=', $record->id)
|
||||||
@@ -174,12 +175,13 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
|||||||
}),
|
}),
|
||||||
BulkAction::make('b')
|
BulkAction::make('b')
|
||||||
->label($spalten['b'] ?? '')
|
->label($spalten['b'] ?? '')
|
||||||
|
->color('info')
|
||||||
->hidden(isset($spalten['b']) ? false : true)
|
->hidden(isset($spalten['b']) ? false : true)
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('b')
|
TextInput::make('b')
|
||||||
->prefixIcon('phosphor-gear'),
|
->prefixIcon('phosphor-math-operations'),
|
||||||
])
|
])
|
||||||
->icon('phosphor-gear')
|
->icon('phosphor-math-operations')
|
||||||
->action(function (Collection $records, array $data): void {
|
->action(function (Collection $records, array $data): void {
|
||||||
foreach ($records as $record) {
|
foreach ($records as $record) {
|
||||||
OrientierungZuAbschlaege::where('id', '=', $record->id)
|
OrientierungZuAbschlaege::where('id', '=', $record->id)
|
||||||
@@ -190,12 +192,13 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
|||||||
}),
|
}),
|
||||||
BulkAction::make('c')
|
BulkAction::make('c')
|
||||||
->label($spalten['c'] ?? '')
|
->label($spalten['c'] ?? '')
|
||||||
|
->color('info')
|
||||||
->hidden(isset($spalten['c']) ? false : true)
|
->hidden(isset($spalten['c']) ? false : true)
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('c')
|
TextInput::make('c')
|
||||||
->prefixIcon('phosphor-gear'),
|
->prefixIcon('phosphor-math-operations'),
|
||||||
])
|
])
|
||||||
->icon('phosphor-gear')
|
->icon('phosphor-math-operations')
|
||||||
->action(function (Collection $records, array $data): void {
|
->action(function (Collection $records, array $data): void {
|
||||||
foreach ($records as $record) {
|
foreach ($records as $record) {
|
||||||
OrientierungZuAbschlaege::where('id', '=', $record->id)
|
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']]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}),
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user