@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_price == $plan->plan_id) @endif @if (optional($current_plan)->name == $plan->name) @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())
{{ trans('app.billing') }} @unless (\App\Models\SystemConfig::isBillingThroughWallet()) @if (\App\Models\SystemConfig::isPaymentConfigured('stripe')) {{-- When Strip is configured for billing --}} @if (isset($billable) && $billable->stripe_id && $billable->pm_last_four) @include('admin.account._creditcard_view', ['billable' => $billable])

@else {{-- Show notich if card info not added yet --}}
{{ trans('messages.no_billing_info') }}
@include('admin.account._card_update') @endif @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])