@extends('layouts.frontend') @section('title', trans('messages.subscription')) @section('page_script') @endsection @section('page_header')

{{ Auth::user()->customer->displayName() }}

@endsection @section('content') @include("account._menu")
@if ($gateway->hasPending($subscription))
{!! $gateway->getPendingNotice($subscription) !!}
@endif @if ($gateway->hasError($subscription))
{!! $gateway->getErrorNotice($subscription) !!}
@endif

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

@if ($subscription->isActive()) @if ($subscription->isRecurring())

{!! trans('messages.subscription.current_subscription.recurring.wording', [ 'plan' => $plan->name, 'money' => Acelle\Library\Tool::format_price($plan->price, $plan->currency->format), 'remain' => $subscription->current_period_ends_at->diffForHumans(), 'next_on' => \Acelle\Library\Tool::formatDate($subscription->current_period_ends_at) ]) !!}

@else

{!! trans('messages.subscription.current_subscription.cancel_at_end_of_period.wording', [ 'plan' => $plan->name, 'money' => Acelle\Library\Tool::format_price($plan->price, $plan->currency->format), 'remain' => $subscription->current_period_ends_at->diffForHumans(), 'end_at' => \Acelle\Library\Tool::formatDate($subscription->current_period_ends_at) ]) !!}

@endif @if (\Auth::user()->customer->can('renew', $subscription)) {{ trans('messages.subscription.renew') }} @endif @if (\Auth::user()->customer->can('cancel', $subscription)) {{ trans('messages.subscription.cancel') }} @endif @if (\Auth::user()->customer->can('resume', $subscription)) {{ trans('messages.subscription.resume') }} @endif @if (\Auth::user()->customer->can('changePlan', $subscription)) $subscription->uid]) }}" class="btn btn-mc_default change_plan_button mr-10" data-size="sm" > {{ trans('messages.subscription.change_plan') }} @endif @if (\Auth::user()->customer->can('cancelNow', $subscription)) {{ trans('messages.subscription.cancel_now') }} @endif @endif
@include('account.subscription._invoices')

{{ trans('messages.plan_details') }}

{{ trans('messages.plan_details.intro') }}

@include('plans._details', ['plan' => $plan])
@endsection