pdf wip
This commit is contained in:
1 parent
d827231e92
commit
570ea29952
22 files changed
+260
-209
No files matched your search
@@ -9,25 +9,26 @@ class Deckblatt
|
||||
{
|
||||
public static function create()
|
||||
{
|
||||
dd(MakeGutachten::$gutachter);
|
||||
// dd(MakeGutachten::$gutachter->kopf);
|
||||
// GUTACHTER
|
||||
|
||||
switch (MakeGutachten::$gutachter['kopf']) {
|
||||
case 'logo':
|
||||
$filepath = Storage::disk('public')->path("/download/$projekts_id/gutachter-logo/");
|
||||
->directory('gutachter-logo')
|
||||
break;
|
||||
case 'firma':
|
||||
|
||||
break;
|
||||
case 'gutachter':
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
$html = '<div class="right">';
|
||||
$html .= '<p class="big">'.MakeGutachten::$gutachter->company.'</p>';
|
||||
$html .= '<p class="gray small">'.nl2br(MakeGutachten::$gutachter->address).'</p>';
|
||||
foreach (MakeGutachten::$gutachter->kopf as $component) {
|
||||
switch ($component) {
|
||||
case 'logo':
|
||||
$imgUrl = Storage::disk('public')->url(MakeGutachten::$gutachter->logo);
|
||||
$html .= '<img src="'.$imgUrl.'" width="45%">';
|
||||
break;
|
||||
case 'firma':
|
||||
$html .= '<p class="big">'.MakeGutachten::$gutachter->company.'</p>';
|
||||
break;
|
||||
case 'adresse':
|
||||
$html .= '<p class="gray small">'.nl2br(MakeGutachten::$gutachter->address).'</p>';
|
||||
break;
|
||||
case 'name':
|
||||
$html .= '<p class="gray bold py-1">'.MakeGutachten::$gutachter->title.' '.MakeGutachten::$gutachter->gender.' '.MakeGutachten::$gutachter->name.'</p>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
$html .= '</div>';
|
||||
|
||||
// if (MakeGutachten::$gutachter->kopf == 'adressenblock') {
|
||||
|
||||
@@ -29,9 +29,9 @@ class MakeGutachten
|
||||
public static function generate($filepath, $projekts_id)
|
||||
{
|
||||
|
||||
self::$projekt = Projekte::where('id', $projekts_id)->get()->first();
|
||||
self::$projekt = Projekte::where('id', $projekts_id)->first();
|
||||
|
||||
self::$gutachter = Gutachter::where('id', self::$projekt->gutachter_id)->get()->first();
|
||||
self::$gutachter = Gutachter::where('id', self::$projekt->gutachter_id)->first();
|
||||
|
||||
self::$auftraggeber = Auftraggeber::where('id', self::$projekt->auftraggeber_id)->get()->first();
|
||||
|
||||
|
||||
Reference in new issue
Block a user