From c0f3576d55df076bd772c3d3a6a5c1e43949e125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 5 Oct 2020 10:16:36 +0200 Subject: [PATCH 1/2] Fix imports --- app/Http/Controllers/PreviewController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/PreviewController.php b/app/Http/Controllers/PreviewController.php index c0a2d85a9b..3d5e4e87aa 100644 --- a/app/Http/Controllers/PreviewController.php +++ b/app/Http/Controllers/PreviewController.php @@ -16,6 +16,10 @@ use App\Designs\Designer; use App\Factory\InvoiceFactory; use App\Jobs\Invoice\CreateInvoicePdf; use App\Jobs\Util\PreviewPdf; +use App\Models\Client; +use App\Models\ClientContact; +use App\Models\Invoice; +use App\Models\InvoiceInvitation; use App\Services\PdfMaker\Design; use App\Services\PdfMaker\PdfMaker; use App\Utils\HtmlEngine; From a339148f1b5799dd6ab64022bbe3b1cfeb5c1b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 5 Oct 2020 10:24:55 +0200 Subject: [PATCH 2/2] add 200px margin-bottom to the product-table --- resources/views/pdf-designs/bold.html | 1 + resources/views/pdf-designs/business.html | 1 + resources/views/pdf-designs/clean.html | 1 + resources/views/pdf-designs/creative.html | 1 + resources/views/pdf-designs/elegant.html | 1 + resources/views/pdf-designs/hipster.html | 1 + resources/views/pdf-designs/plain.html | 1 + resources/views/pdf-designs/playful.html | 1 + 8 files changed, 8 insertions(+) diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index 4fe76320c4..0fe697d0c0 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -91,6 +91,7 @@ table-layout: fixed; overflow-wrap: break-word; margin-top: 3rem; + margin-bottom: 200px; } #product-table > thead { text-align: left; diff --git a/resources/views/pdf-designs/business.html b/resources/views/pdf-designs/business.html index bf36b606a2..4d0c358606 100644 --- a/resources/views/pdf-designs/business.html +++ b/resources/views/pdf-designs/business.html @@ -94,6 +94,7 @@ #product-table { margin-top: 3.5rem; + margin-bottom: 200px; min-width: 100%; table-layout: fixed; overflow-wrap: break-word; diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html index 564ccda26b..d745a450e9 100644 --- a/resources/views/pdf-designs/clean.html +++ b/resources/views/pdf-designs/clean.html @@ -84,6 +84,7 @@ #product-table { margin-top: 3rem; + margin-bottom: 200px; min-width: 100%; table-layout: fixed; overflow-wrap: break-word; diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html index 6607e37439..1dcc67f8cd 100644 --- a/resources/views/pdf-designs/creative.html +++ b/resources/views/pdf-designs/creative.html @@ -84,6 +84,7 @@ #product-table { margin-top: 3rem; + margin-bottom: 200px; min-width: 100%; table-layout: fixed; overflow-wrap: break-word; diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index a091196602..dcc635d8e6 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -80,6 +80,7 @@ #product-table { margin-top: 3rem; + margin-bottom: 200px; min-width: 100%; table-layout: fixed; overflow-wrap: break-word; diff --git a/resources/views/pdf-designs/hipster.html b/resources/views/pdf-designs/hipster.html index 3801548bcb..d064c7df09 100644 --- a/resources/views/pdf-designs/hipster.html +++ b/resources/views/pdf-designs/hipster.html @@ -94,6 +94,7 @@ #product-table { margin-top: 3rem; + margin-bottom: 200px; min-width: 100%; table-layout: fixed; overflow-wrap: break-word; diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index 446449f51b..556d062ec6 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -64,6 +64,7 @@ table-layout: fixed; overflow-wrap: break-word; margin-top: 3rem; + margin-bottom: 200px; } #product-table > thead { text-align: left; diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index a4bd0846e2..961733d0a0 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -87,6 +87,7 @@ #product-table { margin-top: 3rem; + margin-bottom: 200px; min-width: 100%; table-layout: fixed; overflow-wrap: break-word;