{{ __('What Bilipoa has billed this account, and what it was for.') }}
{{ __('No invoices yet. The first one is raised after your first full billing month.') }}
@else| {{ __('Period') }} | {{ __('Plan') }} | {{ __('Usage billed') }} | {{ __('Amount') }} | {{ __('Status') }} |
|---|---|---|---|---|
| {{ $invoice->period_start->format('d M') }} – {{ $invoice->period_end->format('d M Y') }} | {{ $invoice->plan?->name ?? '—' }} | @if ($invoice->usage_amount !== null) {{ __('KSh :amount hotspot revenue', ['amount' => number_format((float) $invoice->usage_amount, 2)]) }} @elseif ($invoice->usage_count !== null) {{ trans_choice(':count subscriber|:count subscribers', $invoice->usage_count, ['count' => $invoice->usage_count]) }} @else — @endif | {{ number_format((float) $invoice->total_due, 2) }} |
@php
$badge = match ($invoice->status) {
'paid' => 'bg-success-subtle text-success',
'overdue' => 'bg-danger-subtle text-danger',
'void' => 'bg-secondary-subtle text-secondary',
default => 'bg-warning-subtle text-warning',
};
@endphp
{{ ucfirst($invoice->status) }}
@if ($invoice->status === 'pending')
{{ __('Due :date', ['date' => $invoice->due_at->format('d M')]) }}
@endif
|
{{ __('No messages sent in this month.') }}
@else{{ __('Switch to your own gateway on the SMS gateway page to stop per-message charges.') }} {{ __('SMS gateway settings') }}
@endif