@php
$userinfo = $details['userinfo'];
$buttonIds = [
'bkash' => 'bKash_payment',
'bkash_checkout' => 'bKash_button',
'nagad' => 'nagad_payment',
'upay' => 'upay_payment',
'ssl' => 'paySSL',
'uddokta' => 'uddokta_pay',
'eps' => 'eps_pay',
'surjopay' => 'surjo_payment',
'paystation' => 'paystation_card',
];
$buttonId = $buttonIds[$gateway['id']];
@endphp
Paying with {{ $gateway['name'] }} — {{ optional(siteinfo())->name }}
Sending you to {{ $gateway['name'] }}
{{ optional($userinfo->clientsinfo)->clients_name ?: $userinfo->userid }} · CID {{ $userinfo->id }}
৳{{ $amount }}
{{-- The same fields the Blade payment page carries; the gateway scripts read them by id. --}}
@if ($gateway['id'] === 'bkash_checkout')
Continue to {{ $gateway['name'] }}
@else
Continue to {{ $gateway['name'] }}
@endif
@if ($gateway['id'] === 'ssl')
Pay Now
@endif
Back to bill pay
@switch($gateway['id'])
@case('ssl')
@include('Customer.sslcommerz-script')
@break
@case('bkash')
@include('Customer.bkash-tokenized')
@break
@case('bkash_checkout')
@include('Customer.bkash-checkout')
@break
@case('upay')
@include('Customer.upay-payment')
@break
@case('nagad')
@include('Customer.nagad_checkout')
@break
@case('surjopay')
@include('Customer.surjopayscript')
@break
@case('uddokta')
@break
@case('eps')
@break
@case('paystation')
@break
@endswitch