{{-- Top bar --}}
OlaInvoice
{{ ucfirst($invoice->status) }}
{{-- Invoice card --}}
{{-- Business header --}}
@if($invoice->user->logo_path) logo @endif
{{ $invoice->user->business_name }}
@if($invoice->user->address)
{{ $invoice->user->address }}
@endif
Invoice
{{ $invoice->invoice_number }}

{{-- Bill to + dates --}}
Bill To
{{ $invoice->client->display_name }}
@if($invoice->client->email)
{{ $invoice->client->email }}
@endif @if($invoice->client->address)
{{ $invoice->client->address }}
@endif
Issue Date:
{{ $invoice->issue_date->format('d/m/Y') }}
Due Date:
{{ $invoice->due_date->format('d/m/Y') }} @if($invoice->isOverdue()) (Overdue) @endif
{{-- Line items --}}
@foreach($invoice->items as $item) @endforeach @if($invoice->discount > 0) @endif
Description Qty Unit Price Total
{{ $item->description }} {{ $item->quantity }} ₦{{ number_format($item->unit_price, 2) }} ₦{{ number_format($item->total, 2) }}
Subtotal ₦{{ number_format($invoice->subtotal, 2) }}
VAT ({{ $invoice->vat_rate }}%) ₦{{ number_format($invoice->vat_amount, 2) }}
Discount -₦{{ number_format($invoice->discount, 2) }}
Total Due ₦{{ number_format($invoice->total, 2) }}
{{-- Notes --}} @if($invoice->notes)
Note: {{ $invoice->notes }}
@endif {{-- Bank details --}} @if($invoice->user->bank_name)
Bank Transfer Option
{{ $invoice->user->bank_name }}  ·  {{ $invoice->user->account_number }}  ·  {{ $invoice->user->account_name }}
@endif {{-- Pay button or paid confirmation --}} @if(!$invoice->isPaid() && !$invoice->isCancelled())
Secured by Paystack  ·  256-bit SSL encryption
@elseif($invoice->isPaid())
Payment Received
Paid on {{ $invoice->paid_at?->format('d F Y') }}
@elseif($invoice->isCancelled())
This invoice has been cancelled.
@endif
{{-- Page footer --}}