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 @@ +