{{-- Header --}}

{{ config('redfamosa.name', config('app.name')) }}

{{ __('Payment Invoice') }}
{{-- Meta --}}
{{ __('Invoice') }}
INV-{{ strtoupper(substr($txn->uid, 0, 8)) }}
{{ __('Date') }}
{{ rf_datetime($txn->updated_at) }}
{{ __('Billed to') }}
{{ $txn->user->name }}
{{ $txn->user->email }}
{{ __('Status') }}
โœ“ {{ __('Completed') }}
{{-- Items --}}
@if(!empty($txn->meta['bonus_amount']) && (float)$txn->meta['bonus_amount'] > 0) @endif
{{ __('Description') }} {{ __('Method') }} {{ __('Amount') }}
{{ __('Wallet top-up') }} @if($txn->gateway_reference)
{{ $txn->gateway_reference }}
@endif
{{ $txn->method?->name ?? ucfirst(str_replace('_', ' ', $txn->driver)) }} {{ money($txn->amount, $txn->currency) }}
๐ŸŽ {{ __('Deposit bonus') }} โ€” + {{ money($txn->meta['bonus_amount'], $txn->currency) }}
{{ __('Deposit') }} {{ money($txn->amount, $txn->currency) }}
@if(!empty($txn->meta['bonus_amount']) && (float)$txn->meta['bonus_amount'] > 0)
{{ __('Bonus') }} + {{ money($txn->meta['bonus_amount'], $txn->currency) }}

{{ __('Total credited') }} {{ money(bcadd($txn->amount, $txn->meta['bonus_amount'] ?? '0', 6), $txn->currency) }}
@else
{{ __('Total credited') }} {{ money($txn->amount, $txn->currency) }}
@endif