@extends('pdf._base') @section('title', 'Invoice '.$invoice->number) @php $eff = $invoice->effectiveStatus(); $plan = $invoice->paymentPlan; $qty = fn ($q) => rtrim(rtrim(number_format((float) $q, 2), '0'), '.'); @endphp @section('body') @include('pdf._letterhead', ['title' => 'INVOICE', 'number' => $invoice->number, 'subtitle' => (float) $invoice->tax_amount > 0 ? 'Tax invoice' : 'Training fee invoice']) @if($eff === 'paid')
| @include('pdf._from') |
Billed to
{{ $invoice->customer_name }}
@if($invoice->company){{ $invoice->company }}
@endif{{ $invoice->customer_email }}@if($invoice->customer_phone) {{ $invoice->customer_phone }}@endif @if($invoice->user?->student_code) Student ID {{ $invoice->user->student_code }}@endif |
|
| # | Description | Qty | Unit price | Amount |
|---|---|---|---|---|
| {{ $n + 1 }} | {{ $it->description }} | {{ $qty($it->quantity) }} | {{ money2($it->unit_price) }} | {{ money2($it->amount) }} |
|
How to pay
@if(\App\Payments\GatewayManager::available() && $invoice->balance() > 0)Pay online instantly with {{ collect(\App\Payments\GatewayManager::available())->map->label()->implode(', ') }}: scan the QR code below or open your invoice link. Your receipt is emailed automatically. @endif
@foreach($methods as $m)• {{ $m }} @endforeach
Please quote {{ $invoice->number }} as the payment reference.
|
{{ amount_in_words($invoice->total, $invoice->currency) }}
|
| Installment | Due date | Amount | Paid | Status |
|---|---|---|---|---|
| {{ $x->label }} | {{ $x->due_date->format('d M Y') }} | {{ money2($x->amount) }} | {{ money2($x->paid_amount) }} | {{ $x->statusLabel() }} |