@php // The same validated accent the orders PDF uses: Brand::accentHex() proves // the stored colour is #rrggbb and falls back to the product seed otherwise, // so one helper answers "what colour is this panel" for both documents. // Passed through Css::color() as well because it is printed raw into {{-- ── HEADER ── --}}
{{ __('Invoice') }}
{{ $panel?->name ?? config('app.name') }}
{{-- ── META ── --}}
{{ __('Invoice number') }} {{ $invoiceNumber }}
{{ __('Issue date') }} {{ rf_date($txn->created_at) }}
{{ __('Payment date') }} {{ rf_date($txn->created_at) }}
{{ __('Payment method') }} {{ $txn->method?->name ?? ucfirst(str_replace('_', ' ', $txn->driver)) }}
{{-- ── PARTIES ── --}}
{{ __('From') }}
{{ $panel?->name ?? config('app.name') }}
{{ config('app.url') }}
{{ __('Billed to') }}
{{ $txn->user->name }}
{{ $txn->user->email }}
{{-- ── PAID HEADLINE ── --}}
{{ strtoupper($paidCurrency) }} {{ money_number($paidAmount) }} {{ __('paid on') }} {{ rf_date($txn->created_at) }}
{{-- ── ITEMS TABLE ── --}} @if($bonus) @endif
{{ __('Description') }} {{ __('Qty') }} {{ __('Unit price') }} {{ __('Amount') }}
{{ __('Wallet top-up') }} — {{ $txn->method?->name ?? ucfirst(str_replace('_', ' ', $txn->driver)) }}
{{ $invoiceNumber }} · {{ rf_datetime($txn->created_at) }}
1 {{ strtoupper($paidCurrency) }} {{ money_number($paidAmount) }} {{ strtoupper($paidCurrency) }} {{ money_number($paidAmount) }}
{{ __('Deposit bonus') }}
{{ __('Promotional bonus applied to this deposit') }}
1 {{ strtoupper($baseCurrency) }} {{ money_number($bonus) }} {{ strtoupper($baseCurrency) }} {{ money_number($bonus) }}
{{-- ── TOTALS ── --}} @if($bonus) @endif
{{ __('Subtotal') }} {{ strtoupper($paidCurrency) }} {{ money_number($paidAmount) }}
{{ __('Bonus') }} + {{ strtoupper($baseCurrency) }} {{ money_number($bonus) }}
{{ __('Total credited') }} {{ strtoupper($baseCurrency) }} {{ money_number($credited) }}
{{-- ── FOOTER ── --}}