@if(session('success'))
{{ session('success') }}
@endif
@if(session('show_print_prompt'))
Would you like to print or download the invoice?
@endif
Invoice Information
| Invoice Number: |
{{ $invoice->invoice_number }} |
| Invoice Date: |
{{ \Carbon\Carbon::parse($invoice->invoice_date)->format('M d, Y') }} |
| Due Date: |
{{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('M d, Y') : 'N/A' }} |
| Status: |
{{ ucfirst($invoice->status) }}
|
Customer Information
| Customer: |
{{ $invoice->customer->customer_account ?? 'N/A' }} |
| Customer Code: |
{{ $invoice->customer->customer_code ?? 'N/A' }} |
| Created By: |
{{ $invoice->creator->name ?? 'N/A' }} |
| Created Date: |
{{ $invoice->created_at->format('M d, Y H:i') }} |
@if($invoice->description)
Description
{{ $invoice->description }}
@endif
Invoice Items
| Item |
Quantity |
Unit Price |
Discount (%) |
Line Total |
@forelse($invoice->items ?? [] as $item)
| {{ $item->item }} |
{{ number_format($item->quantity, 2) }} |
${{ number_format($item->unit_price, 2) }} |
{{ number_format($item->discount, 2) }}% |
${{ number_format($item->line_total, 2) }} |
@empty
|
No invoice items found
|
@endforelse
| Subtotal: |
${{ number_format($invoice->subtotal, 2) }} |
| Discount: |
-${{ number_format($invoice->discount_total, 2) }} |
| Tax (10%): |
${{ number_format($invoice->tax_amount, 2) }} |
| Total: |
${{ number_format($invoice->total, 2) }} |