diff --git a/app/Console/Commands/DesignUpdate.php b/app/Console/Commands/DesignUpdate.php index 22ee28b466b0..e73a3eca65fc 100644 --- a/app/Console/Commands/DesignUpdate.php +++ b/app/Console/Commands/DesignUpdate.php @@ -53,12 +53,12 @@ class DesignUpdate extends Command $invoice_design->document(); $design_object = new \stdClass; - $design_object->includes = $invoice_design->getSectionHTML('includes'); - $design_object->header = $invoice_design->getSectionHTML('head', false); - $design_object->body = $invoice_design->getSectionHTML('body', false); - $design_object->product = $invoice_design->getSectionHTML('product-table'); - $design_object->task = $invoice_design->getSectionHTML('task-table'); - $design_object->footer = $invoice_design->getSectionHTML('footer', false); + $design_object->includes = $invoice_design->getSectionHTML('style'); + $design_object->header = $invoice_design->getSectionHTML('header'); + $design_object->body = $invoice_design->getSectionHTML('body'); + $design_object->product = ''; + $design_object->task = ''; + $design_object->footer = $invoice_design->getSectionHTML('footer'); $design->design = $design_object; $design->save(); diff --git a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php index 93cbb60c92d7..b9f39557d148 100644 --- a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php +++ b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php @@ -194,6 +194,7 @@ trait DesignHelpers { $html = ''; + $html .= $partials['includes']; $html .= $partials['header']; $html .= $partials['body']; $html .= $partials['footer']; diff --git a/database/seeders/DesignSeeder.php b/database/seeders/DesignSeeder.php index 1a6a429acf9d..a85fbfad71b7 100644 --- a/database/seeders/DesignSeeder.php +++ b/database/seeders/DesignSeeder.php @@ -11,7 +11,6 @@ namespace Database\Seeders; -use App\Models\Bank; use App\Models\Design; use App\Services\PdfMaker\Design as PdfMakerDesign; use Illuminate\Database\Eloquent\Model; @@ -53,12 +52,12 @@ class DesignSeeder extends Seeder $template->document(); $design_object = new \stdClass; - $design_object->includes = $template->getSectionHTML('includes'); - $design_object->header = $template->getSectionHTML('head', false); - $design_object->body = $template->getSectionHTML('body', false); - $design_object->product = $template->getSectionHTML('product-table'); - $design_object->task = $template->getSectionHTML('task-table'); - $design_object->footer = $template->getSectionHTML('footer', false); + $design_object->includes = $template->getSectionHTML('style'); + $design_object->header = $template->getSectionHTML('header'); + $design_object->body = $template->getSectionHTML('body'); + $design_object->product = ''; + $design_object->task = ''; + $design_object->footer = $template->getSectionHTML('footer'); $design->design = $design_object; $design->save(); diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index 0fe697d0c0c1..9ba2e78d4d2b 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -1,179 +1,184 @@ - - -
- - + - + #product-table { + min-width: 100%; + table-layout: fixed; + overflow-wrap: break-word; + margin-top: 3rem; + margin-bottom: 200px; + } -$entity_issued_to_label:
+$entity_issued_to_label:
-$entity_label
-$entity_label
+$thanks_label!
-$thanks_label!
+$from_label:
+ .entity-label { + font-size: 3rem; + text-transform: uppercase; + margin: 2rem 1rem; + } - - -$to_label:
- -$from_label:
+ + +$to_label:
+ +
-
- $company.name-
|
---|
$company.name
+ #client-details { + display: flex; + flex-direction: column; + } - + #product-table { + min-width: 100%; + table-layout: fixed; + overflow-wrap: break-word; + margin-top: 3rem; + margin-bottom: 200px; + } -$company.name
+ + + +$to_label:
+$to_label:
-$from_label:
- -$from_label:
+