@if (count($methods = $helper->getPaymentMethodOptions(['id' => $order->payment_method_id])))
@foreach ($methods as $method)
@if ($method->method == 'vnpay' && $method->configData && is_countable($method->configData) && count($method->configData))
@php
$opts = get_atm_bank_options($method->configData, asset('static/payments/banks'));
// dd($method->configData);
$select = html_input([
'type' => 'crazyselect',
'name' => $method->method.'_bank',
'data' => $opts,
'default' => old($method->method.'_bank'),
'id' => $method->method.'_bank',
]);
@endphp
@include('client-libs.form.crazyselect', [
'input' => $select
])
@endif
@endforeach
@endif