pdf wip
This commit is contained in:
1 parent
6bf10b25bd
commit
fe03a71735
18 files changed
+149
-103
No files matched your search
@@ -13,6 +13,7 @@ class CreateProjektInhaltsverzeichnis
|
||||
ProjektInhaltsverzeichnis::where('projekte_id', $record->id)->delete();
|
||||
|
||||
$inhaltsverzeichnis = Inhaltsverzeichnis::get();
|
||||
$part = 1;
|
||||
foreach ($inhaltsverzeichnis as $inhalt) {
|
||||
|
||||
$textblock = '';
|
||||
@@ -20,6 +21,10 @@ class CreateProjektInhaltsverzeichnis
|
||||
$textblock = Textblock::where('id', $inhalt->textblock_id)->pluck('textblock')->first();
|
||||
}
|
||||
|
||||
if ($inhalt->tabellen_id == 5) {
|
||||
$part = 2;
|
||||
}
|
||||
|
||||
ProjektInhaltsverzeichnis::updateOrCreate(
|
||||
[
|
||||
'projekte_id' => $record->id,
|
||||
@@ -32,9 +37,11 @@ class CreateProjektInhaltsverzeichnis
|
||||
'ueberschrift_anzeigen' => $inhalt->ueberschrift_anzeigen,
|
||||
'tabellen_id' => $inhalt->tabellen_id,
|
||||
'textblock_id' => $inhalt->textblock_id,
|
||||
'part' => $part,
|
||||
'seite' => $inhalt->seite,
|
||||
'neue_seite' => $inhalt->neue_seite,
|
||||
'seitenzahl_anzeige' => $inhalt->seitenzahl_anzeige,
|
||||
'no_edit' => $inhalt->no_edit,
|
||||
'textblock' => $textblock,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user