Stub PDF generator

This commit is contained in:
David Bomba 2023-02-21 20:44:25 +11:00
parent 84ab240eda
commit 87690df25f

View File

@ -179,7 +179,12 @@ class StubBuilder
$html = new HtmlEngine($this->invitation);
$design_string = "{$this->entity_type}_design_id";
$design = DesignModel::withTrashed()->find($this->decodePrimaryKey($design_string));
nlog($design_string);
$design = DesignModel::withTrashed()->find($this->decodePrimaryKey($html->settings->{$design_string}));
nlog($design->toArray());
$template = new PdfMakerDesign(strtolower($design->name));
$state = [