From 604f074dfa888a4da054037459143ea6ce6900f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 10 May 2021 13:26:13 +0200 Subject: [PATCH] Show invoices full screen --- app/Http/Controllers/ClientPortal/InvoiceController.php | 2 +- .../views/portal/ninja2020/invoices/show-fullscreen.blade.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 resources/views/portal/ninja2020/invoices/show-fullscreen.blade.php diff --git a/app/Http/Controllers/ClientPortal/InvoiceController.php b/app/Http/Controllers/ClientPortal/InvoiceController.php index 9746863da046..ff5a0d493650 100644 --- a/app/Http/Controllers/ClientPortal/InvoiceController.php +++ b/app/Http/Controllers/ClientPortal/InvoiceController.php @@ -57,7 +57,7 @@ class InvoiceController extends Controller ]; if ($request->query('mode') === 'fullscreen') { - return response()->file($invoice->pdf_file_path(null, 'path')); + return render('invoices.show-fullscreen', $data); } return $this->render('invoices.show', $data); diff --git a/resources/views/portal/ninja2020/invoices/show-fullscreen.blade.php b/resources/views/portal/ninja2020/invoices/show-fullscreen.blade.php new file mode 100644 index 000000000000..8b1bb3b8da23 --- /dev/null +++ b/resources/views/portal/ninja2020/invoices/show-fullscreen.blade.php @@ -0,0 +1,2 @@ +