new: make the eye icon work to see an invoice in admin customer view

This commit is contained in:
Valentin Lab
2025-10-04 15:37:28 +02:00
parent ae7f8ed2c9
commit e37cad6699
6 changed files with 35 additions and 13 deletions

View File

@@ -15,8 +15,14 @@ class InvoiceController extends Controller
public function view($uuid)
{
$invoice = Invoices::view($uuid);
if (! $invoice) {
abort(404);
}
$data = [
'invoice' => Invoices::view($uuid),
'invoice' => $invoice,
];
return view('Shop.Invoices.view', $data);