@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 @unless(Auth::user()->isSubscribed())
{{ trans('messages.choose_subscription') }}
@endunless
{{ trans('app.subscription_plans') }} @foreach($plans as $plan) @if(\Auth::user()->isMerchant()) @endif @endforeach
{{ $plan->name }} @if(optional($current_plan)->stripe_plan == $plan->plan_id) @endif {{ trans('app.features') }} {{ get_formated_currency($plan->cost) . trans('app.per_month') }} @if(optional($current_plan)->stripe_plan == $plan->plan_id) @if(Auth::user()->isOnGracePeriod()) {{ trans('app.resume_subscription') }} @elseif($current_plan->provider == 'stripe') {!! Form::open(['route' => ['admin.account.subscription.cancel', $current_plan], 'method' => 'delete', 'class' => 'inline']) !!} {!! Form::close() !!} @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()) {{-- @if(config('system.subscription.billing') == 'stripe') --}} @unless(\App\SystemConfig::isBillingThroughWallet())
{{ trans('messages.no_billing_info') }}
@if(\App\SystemConfig::isPaymentConfigured('stripe'))
{!! 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', 'id' => 'card-button', 'data-secret' => $intent->client_secret]) !!}
{!! Form::close() !!}
@endif @endunless
{{ trans('app.invoices') }} @include('admin.account._invoices', ['billable' => Auth::user()->shop])
@else
{{ trans('app.notice') }} {{ trans('messages.only_merchant_can_change_plan') }}
@endif
{{ trans('app.history') }} @include('admin.account._activity_logs', ['logger' => Auth::user()->shop])