@extends('layouts.core.frontend_dark') @section('title', trans('messages.subscriptions')) @section('head') @endsection @section('menu_title') @include('subscription._title') @endsection @section('menu_right') @if ($invoice->type !== \Acelle\Model\Invoice::TYPE_NEW_SUBSCRIPTION) @endif @include('layouts.core._top_activity_log') @include('layouts.core._menu_frontend_user') @endsection @section('content')
@if (Auth::user()->customer->subscription && Auth::user()->customer->subscription->getUnpaidInvoice() && Auth::user()->customer->subscription->getUnpaidInvoice()->lastTransactionIsFailed()) @include('elements._notification', [ 'level' => 'danger', 'message' => Auth::user()->customer->subscription->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() }}

@if (Lang::has('messages.'.$gateway->getType().'.user.description')) {{ trans('messages.'.$gateway->getType().'.user.description') }} @else {{ $gateway->getDescription() }} @endif

@endforeach
@endsection