| Name |
{{ $invoice->customer_name }} |
@if($invoice->customer_email)
| Email |
{{ $invoice->customer_email }} |
@endif
@if($invoice->customer_phone)
| Phone |
{{ $invoice->customer_phone }} |
@endif
@if($invoice->customer_address)
| Address |
{!! nl2br(e($invoice->customer_address)) !!} |
@endif
@if($invoice->client)
| Client ID |
#{{ $invoice->client->id }} |
@endif
| Invoice # |
{{ $invoice->invoice_number }} |
| Date |
{{ $invoice->invoice_date->format('d/m/Y') }} |
@if($invoice->due_date)
| Due Date |
{{ $invoice->due_date->format('d/m/Y') }}
@if($invoice->due_date->isPast() && !$invoice->isPaid() && !$invoice->isCancelled())
Overdue
@endif
|
@endif
| Status |
{{ $invoice->status_label }}
|
| Created By |
{{ $invoice->createdBy->name ?? 'System' }} |
@if($invoice->original_quotation_id)
| Original Quotation |
{{ $invoice->originalQuotation->invoice_number ?? 'N/A' }}
|
@endif
@if($invoice->converted_at)
| Converted At |
{{ $invoice->converted_at->format('d/m/Y H:i:s') }} |
@endif
@if($invoice->notes)
@endif
| # |
Description |
Quantity |
Unit Price |
Amount |
@foreach($invoice->items as $index => $item)
| {{ $index + 1 }} |
{!! $item->description !!} |
{{ $item->quantity }} |
RM {{ number_format($item->unit_price, 2) }} |
RM {{ number_format($item->amount, 2) }} |
@endforeach
| Subtotal |
RM {{ number_format($invoice->subtotal, 2) }} |
@if($invoice->tax > 0)
| Tax |
RM {{ number_format($invoice->tax, 2) }} |
@endif
@if($invoice->discount > 0)
| Discount |
-RM {{ number_format($invoice->discount, 2) }} |
@endif
| Total |
RM {{ number_format($invoice->total, 2) }} |
@if($invoice->isPaid())
|
PAID
|
@endif
@if($invoice->logs->count() > 0)
| User |
Action |
Description |
Date/Time |
@foreach($invoice->logs as $log)
| {{ $log->user->name ?? 'System' }} |
{{ $log->action }}
|
{{ $log->description }} |
{{ $log->created_at->format('d/m/Y H:i:s') }} |
@endforeach
@endif