ZuUndAbschlaege wip
This commit is contained in:
1 parent
622b37bb90
commit
c7f69d2efe
4 files changed
+27
-28
No files matched your search
@@ -9,6 +9,7 @@ use App\Actions\Generate\Pdf\Platzhalter;
|
||||
use App\Actions\Generate\Pdf\Ueberschrift;
|
||||
use App\Actions\Generate\Tabellen\Allgemeinflaechen;
|
||||
use App\Actions\Generate\Tabellen\Paragraph6;
|
||||
use App\Actions\Generate\Tabellen\ZuUndAbschlaege;
|
||||
use App\Actions\Generate\Utilities\Format;
|
||||
use App\Models\Auftraggeber;
|
||||
use App\Models\Gutachter;
|
||||
@@ -49,13 +50,13 @@ class Pdf
|
||||
$filepath = Storage::disk('public')->path("/download/$projekte_id/");
|
||||
$filename = \ucfirst($type).' '.preg_replace("'[^0-9a-zA-Z]'", '', self::$projekt->interner_name).'.pdf';
|
||||
|
||||
if ($type == 'nutzwerte') {
|
||||
if ($mode == 'new') {
|
||||
Projekte::where('id', $projekte_id)->update(['pdf_gutachten_name' => '', 'pdf_nutzwerte_status' => 1]);
|
||||
} else {
|
||||
return Response::download($file, $filename, $headers);
|
||||
}
|
||||
}
|
||||
// if ($type == 'nutzwerte') {
|
||||
// if ($mode == 'new') {
|
||||
// Projekte::where('id', $projekte_id)->update(['pdf_nutzwerte_name' => '', 'pdf_nutzwerte_status' => 1]);
|
||||
// } else {
|
||||
// return Response::download($file, $filename, $headers);
|
||||
// }
|
||||
// }
|
||||
|
||||
if (! File::isDirectory($filepath)) {
|
||||
File::makeDirectory($filepath, 0777, true, true);
|
||||
@@ -117,6 +118,9 @@ class Pdf
|
||||
case '4':
|
||||
$html .= Allgemeinflaechen::load($projekte_id);
|
||||
break;
|
||||
case '5':
|
||||
$html .= ZuUndAbschlaege::load($projekte_id);
|
||||
break;
|
||||
case '8':
|
||||
$str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml();
|
||||
$html .= Format::fix_str($str);
|
||||
|
||||
Reference in new issue
Block a user