{{ __('all.message.select_your_payment_method') }}
@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if (session()->has('error'))
{{ session('error') }}
@endif
@php
$jsGateway = [];
$onClickGateway = [];
$submitGateway = [];
@endphp
@if (!blank($paymentGateways))
@foreach ($paymentGateways as $paymentGateway)
@if ($paymentGateway->misc != null)
@if (!blank(json_decode($paymentGateway->misc)))
@if (!blank(json_decode($paymentGateway->misc)->js))
@foreach (json_decode($paymentGateway->misc)->js as $js)
@include('paymentGateways.' . str_replace('.blade.php', '', $js))
@endforeach
@endif
@if (!blank(json_decode($paymentGateway->misc)->input))
@if (isset(json_decode($paymentGateway->misc)->input[0]))
@php $jsGateway[$paymentGateway->slug] = isset(json_decode($paymentGateway->misc)->input[0]); @endphp
@endif
@endif
@if (!blank(json_decode($paymentGateway->misc)->onClick))
@if (isset(json_decode($paymentGateway->misc)->onClick) && json_decode($paymentGateway->misc)->onClick)
@php $onClickGateway[$paymentGateway->slug] = json_decode($paymentGateway->misc)->onClick; @endphp
@endif
@endif
@if (!blank(json_decode($paymentGateway->misc)->submit))
@if (isset(json_decode($paymentGateway->misc)->submit) && json_decode($paymentGateway->misc)->submit)
@php $submitGateway[$paymentGateway->slug] = json_decode($paymentGateway->misc)->submit; @endphp
@endif
@endif
@endif
@endif
@endforeach
@endif
@php
$jsGateway = json_encode($jsGateway);
$onClickGateway = json_encode($onClickGateway);
$submitGateway = json_encode($submitGateway);
@endphp