big change Inhaltstabelle und PDF

This commit is contained in:
salam committed 2025-11-03 18:14:46 +01:00
1 parent 2f6ae7e4a1
commit d5d1f743bb
58 files changed
+1244 -922

No files matched your search

@@ -17,12 +17,7 @@ class CreateProjektInhaltsverzeichnis
foreach ($inhaltsverzeichnis as $key => $value) {
$key++;
$textblock = '';
if ($value->textblock_id > 0) {
$textblock = Textblock::where('id', $value->textblock_id)->pluck('textblock')->first();
}
$text = Textblock::where('id', $value->textblock_id)->first();
$inhalt = new ProjektInhaltsverzeichnis;
$inhalt->projekte_id = $record->id;
$inhalt->sort = $key;
@@ -30,14 +25,15 @@ class CreateProjektInhaltsverzeichnis
$inhalt->name = $value->name;
$inhalt->name2 = $value->name2;
$inhalt->ueberschrift_anzeigen = $value->ueberschrift_anzeigen;
$inhalt->tabellen_id = $value->tabellen_id;
$inhalt->textblock_id = $value->textblock_id;
$inhalt->inhaltselement_id = $value->inhaltselement_id;
$inhalt->part = $value->part;
$inhalt->seite = $value->seite;
$inhalt->neue_seite = $value->neue_seite;
$inhalt->seitenzahl_anzeige = $value->seitenzahl_anzeige;
$inhalt->no_edit = $value->no_edit;
$inhalt->textblock = $textblock;
$inhalt->textblock_name = $text->name ?? '';
$inhalt->textblock = $text->textblock ?? '';
$inhalt->textblock2 = $text->textblock2 ?? '';
$inhalt->save();
}