Invoice #INV-{{ $order->id }}

Created {{ optional($order->created_at)->format('d M Y, h:i A') }}

@php $received = (float) $order->payments->where('status', 'successful')->sum('amount'); $due = $order->status === 'pending' ? max(0, (float) $order->amount - $received) : 0; @endphp
Paid
{{ $order->currency }} {{ number_format($received, 2) }}
Due
{{ $order->currency }} {{ number_format($due, 2) }}
@if ($order->status === 'pending') Record payment @endif
@php $siteLogo = \App\Models\FrontendSetting::where('key', 'site_logo_path')->value('value_en'); @endphp @if ($siteLogo) {{ config('app.name') }} @else iTechBD logo @endif
System Generated Invoice
Billed To
{{ $student->name }}
{{ $student->email }}
Status
@php $badge = match ($order->status) { 'paid' => 'bg-emerald-50 text-emerald-700 ring-emerald-200', 'pending' => 'bg-amber-50 text-amber-700 ring-amber-200', 'cancelled' => 'bg-rose-50 text-rose-700 ring-rose-200', default => 'bg-slate-50 text-slate-700 ring-slate-200', }; @endphp {{ ucfirst($order->status) }}
Course
{{ $order->course?->title ?? '—' }}
Batch
{{ $order->batch?->name ?? '—' }}
Invoice Date
{{ optional($order->created_at)->format('d M Y') }}
Total
{{ $order->currency }} {{ number_format((float) $order->amount, 2) }}
Description Amount
Course enrollment{{ $order->course ? ': '.$order->course->title : '' }} @if($order->batch) (Batch: {{ $order->batch->name }}) @endif {{ $order->currency }} {{ number_format((float) $order->amount, 2) }}
Total {{ $order->currency }} {{ number_format((float) $order->amount, 2) }}
This invoice is generated by the system. If you have any issues, please contact support.
System Generated Invoice
Signature Not Required

Payment history

Payments and reversals for this invoice. Dates in {{ config('app.timezone') }}.

@forelse ($order->payments as $payment) @php($isImported = $payment->payment_method === 'legacy')

#PAY-{{ $payment->id }} · {{ $payment->currency }} {{ number_format((float) $payment->amount, 2) }}

{{ ucfirst($payment->status) }}

{{ $isImported ? 'Previous invoice' : ucfirst(str_replace('_', ' ', $payment->payment_method)) }}@if ($payment->transaction_reference) · Reference: {{ $payment->transaction_reference }}@endif

{{ $isImported ? 'Estimated payment time' : 'Payment time' }}: {{ $payment->paid_at?->format('d M Y, H:i') ?? 'Unknown' }}

@include('payment::partials.transaction-details')
@empty

No payments recorded for this invoice.

@endforelse