@include('admin.partials._subscription_notice') @if (Session::has('error'))
{{ Session::get('error') }}
@endif
@if(Auth::user()->hasExpiredPlan())
{{ trans('app.notice') }} {{ trans('messages.subscription_expired') }}
@endif @if(Auth::user()->isSubscribed()) @if($current_plan && ! Auth::user()->isOnGracePeriod())
{!! trans('messages.current_subscription', ['plan' => $current_plan->name]) !!} @if(Auth::user()->isMerchant()) {!! Form::open(['route' => ['admin.account.subscription.cancel', $current_plan], 'method' => 'delete', 'class' => 'inline']) !!} {!! Form::button(trans('app.calcel_plan'), ['type' => 'submit', 'class' => 'confirm ajax-silent btn btn-sm btn-danger pull-right']) !!} {!! Form::close() !!} @endif
@endif @else
{{ trans('messages.choose_subscription') }}
@endif @unless(Auth::user()->hasBillingToken())
{{ trans('messages.no_billing_info') }}
@endunless
{{ trans('app.subscription_plans') }} @foreach($plans as $plan) @if(Auth::user()->isMerchant()) @endif @endforeach
{{ $plan->name }} {{ trans('app.features') }} {{ get_formated_currency($plan->cost) . trans('app.per_month') }} @if(optional($current_plan)->stripe_plan == $plan->plan_id || optional($current_plan)->braintree_plan == $plan->plan_id) @if(Auth::user()->isOnGracePeriod()) {{ trans('app.resume_subscription') }} @else @endif @else {{ trans('app.select_this_plan') }} @endif
@if((bool) config('system_settings.trial_days')) {{ trans('messages.plan_comes_with_trial',['days' => config('system_settings.trial_days')]) }} @endif
@if(Auth::user()->isMerchant())
{!! Form::model($profile, ['method' => 'PUT', 'route' => ['admin.account.card.update'], 'id' => 'stripe-form', 'data-toggle' => 'validator']) !!} @include('auth.stripe_form')
{!! Form::submit(trans('app.update'), ['class' => 'btn btn-lg btn-new']) !!}
{!! Form::close() !!}
@else
{{ trans('app.notice') }} {{ trans('messages.only_merchant_can_change_plan') }}
@endif
{{ trans('app.history') }} @include('admin.account._activity_logs', ['logger' => Auth::user()->shop])