INVOICE
#{{ $invoice->invoice_number }}
Date: {{ $invoice->invoice_date->format('M d, Y') }}
Due: {{ $invoice->due_date->format('M d, Y') }}
Status: {{ strtoupper($invoice->status) }}
BILL TO:
{{ $invoice->customer->name }}
{{ $invoice->customer->phone }}
{{ $invoice->customer->email }}
{{ $invoice->customer->address }}
{{ $invoice->customer->city }}
SALESMAN:
{{ $invoice->sale->salesman->name ?? 'N/A' }}
{{ $invoice->sale->salesman->phone ?? 'N/A' }}
{{ $invoice->sale->inventory->deviceModel->name ?? 'GPS Device' }}
Serial: {{ $invoice->sale->inventory->device_serial_number ?? 'N/A' }}
IMEI: {{ $invoice->sale->inventory->imei_number ?? 'N/A' }}
@if($invoice->sale->inventory->simCard)
SIM: {{ $invoice->sale->inventory->simCard->sim_number }}
@endif
1 x {{ $company['currency'] }} {{ number_format($invoice->subtotal, 2) }}
{{ $company['currency'] }} {{ number_format($invoice->subtotal, 2) }}
Subtotal:
{{ $company['currency'] }} {{ number_format($invoice->subtotal, 2) }}
@if($invoice->tax > 0)
Tax:
{{ $company['currency'] }} {{ number_format($invoice->tax, 2) }}
@endif
@if($invoice->discount > 0)
Discount:
-{{ $company['currency'] }} {{ number_format($invoice->discount, 2) }}
@endif
TOTAL:
{{ $company['currency'] }} {{ number_format($invoice->total_amount, 2) }}
@if($invoice->payments->count() > 0)
PAYMENT HISTORY
@foreach($invoice->payments as $payment)
{{ $payment->payment_date->format('M d') }}
{{ ucfirst($payment->payment_method) }}
{{ $company['currency'] }} {{ number_format($payment->amount, 2) }}
@endforeach
Paid:
{{ $company['currency'] }} {{ number_format($invoice->paid_amount, 2) }}
Balance:
{{ $company['currency'] }} {{ number_format($invoice->balance, 2) }}
@else
BALANCE DUE
{{ $company['currency'] }} {{ number_format($invoice->balance, 2) }}
@endif
@if($invoice->notes)
Notes:
{{ $invoice->notes }}
@endif
Scan to verify invoice