@extends('layouts.core.frontend_dark', [ 'subscriptionPage' => true, ]) @section('title', trans('messages.subscriptions')) @section('head') @endsection @section('menu_title') @include('subscription._title') @endsection @section('menu_right') @if ($invoice->type !== \Acelle\Model\InvoiceNewSubscription::TYPE_NEW_SUBSCRIPTION) @endif @include('layouts.core._top_activity_log') @include('layouts.core._menu_frontend_user', [ 'menu' => 'subscription', ]) @endsection @section('content')
@if (Auth::user()->customer->getNewOrActiveGeneralSubscription() && Auth::user()->customer->getNewOrActiveGeneralSubscription()->getUnpaidInvoice() && Auth::user()->customer->getNewOrActiveGeneralSubscription()->getUnpaidInvoice()->lastTransactionIsFailed()) @include('elements._notification', [ 'level' => 'danger', 'message' => Auth::user()->customer->getNewOrActiveGeneralSubscription()->getUnpaidInvoice()->lastTransaction()->error ]) @endif @include('subscription._selectPlan') @include('subscription._billingInformation')
{{ trans('messages.subscription.payment_method.title') }}

{{ trans('messages.subscription.payment_method.subtitle') }}

{{ csrf_field() }}

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

@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