Passolution

This commit is contained in:
Kevin Adametz 2020-10-16 16:18:34 +02:00
parent f79806ffe8
commit 06fc3ba919
31 changed files with 337 additions and 119 deletions

View file

@ -25,8 +25,8 @@ class CMSContentController extends Controller
'destco' => $destco,
'tdat' => $tdat,
];
$passolution = new Passolution();
$passolution->fill($data);
$passolution = new Passolution($data);
//$passolution->fill($data);
$html = $passolution->read();
return response()->json(['response' => $html]);
@ -71,12 +71,15 @@ class CMSContentController extends Controller
'tdat' => $tdat,
];
$passolution = new Passolution();
$passolution->fill($data);
$html = $passolution->read();
return response()->json(['success' => true, "response" => $html, "data" => $data], 200, $headers);
$passolution = new Passolution($data);
//$passolution->fill($data);
$html = $passolution->read(true);
return response()->json(['success' => true,
"response" => $html,
"pdf"=> $passolution->getPdfPath(['filename', 'url']),
"additionalContent" => $passolution->additionalContent,
"data" => $data],
200, $headers);
}