Show invoices full screen

This commit is contained in:
Benjamin Beganović 2021-05-10 13:26:13 +02:00
parent b089cec622
commit 604f074dfa
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -0,0 +1,2 @@
<iframe src="{{ $invoice->pdf_file_path() }}"
style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe>