@extends('layouts.popup.small') @section('title') {{ trans('messages.edit_payment_method') }} @endsection @section('content')

{{ trans('messages.payment.choose_payment') }}

{!! trans('messages.payment.choose_payment.desc') !!}
{{ csrf_field() }}
@foreach(Acelle\Library\Facades\Billing::getEnabledPaymentGateways() as $gateway)
@include('helpers.form_control', [ 'type' => 'radio2', 'name' => 'payment_method', 'value' => request()->user()->customer->getPreferredPaymentGateway() ? request()->user()->customer->getPreferredPaymentGateway()->getType() : '', 'label' => '', 'help_class' => 'setting', 'rules' => ['payment_method' => 'required'], 'options' => [ ['value' => $gateway->getType(), 'text' => ''], ], ])

{{ $gateway->getName() }}

{{ $gateway->getShortDescription() }}

@endforeach
@endsection