INVOICE

Invoice Number: {{ $invoice->invoice_number }}

Date: {{ $invoice->invoice_date->format('Y-m-d') }}

Due Date: {{ $invoice->due_date ? $invoice->due_date->format('Y-m-d') : 'N/A' }}

Bill To:

{{ $customer->customer_name }}

{{ $customer->address ?? '' }}

{{ $customer->email }}

Subtotal: ${{ number_format($invoice->total_amount, 2) }}

Tax Rate: {{ $tax_rate->rate ?? 0 }}%

Tax Amount: ${{ number_format($invoice->tax_amount, 2) }}

Total Amount: ${{ number_format($invoice->getTotalWithTax(), 2) }}

@if($invoice->notes)

Notes:

{{ $invoice->notes }}

@endif