render invoice in pdf

This commit is contained in:
ludo
2024-01-07 23:16:29 +01:00
parent 4df8628a3e
commit 560ef61c9f
8 changed files with 236 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ class InvoiceController extends Controller
public function pdf($uuid)
{
\Debugbar::disable();
$data = [
'invoice' => Invoices::getByUUID($uuid),
];

View File

@@ -82,4 +82,9 @@ class OrderController extends Controller
return view('Shop.Orders.confirmed');
}
public function getPdf($uuid)
{
return Orders::getPdfByUUID($uuid);
}
}