diff --git a/app/Http/Controllers/CustomerInvoiceController.php b/app/Http/Controllers/CustomerInvoiceController.php new file mode 100644 index 0000000..9a14aed --- /dev/null +++ b/app/Http/Controllers/CustomerInvoiceController.php @@ -0,0 +1,21 @@ +status === InvoiceStatus::DRAFT) { + abort(404); + } + if ($invoice->status === InvoiceStatus::VOID) { + abort(404); + } + + return view('invoices.show', compact('invoice')); + } +} diff --git a/resources/views/invoices/show.blade.php b/resources/views/invoices/show.blade.php new file mode 100644 index 0000000..2990970 --- /dev/null +++ b/resources/views/invoices/show.blade.php @@ -0,0 +1,85 @@ + + +
+ + +{{ $invoice->invoice_number }}
+eBandroom
+540 W. Louse Ave.
+Vinita, OK 74301
+{{ $invoice->client->name }}
+| SKU | +Description | +School Year | +Qty | +Unit Price | +Amount | +
|---|---|---|---|---|---|
| {{ $line->sku }} | +{{ $line->name }} | +{{ $line->school_year_formatted }} | +{{ $line->quantity }} | +{{ formatMoney($line->unit_price) }} | +{{ formatMoney($line->amount) }} | +
| Total | +{{ formatMoney($invoice->total) }} | +||||
Please make payment to:
+eBandroom
+540 W. Louse Ave.
+Vinita, OK 74301
+{{ $invoice->notes }}
+