@if (Auth::user()->isSubscribed() && !Auth::user()->shop->hide_trial_notice) @php $subscription = Auth::user()->getCurrentPlan(); @endphp @if (Auth::user()->isOnTrial())
{{ trans('app.notice') }} {{ trans('messages.trial_ends_at', ['ends' => \Carbon\Carbon::now()->diffInDays($subscription->trial_ends_at)]) }}
@elseif(Auth::user()->isOnGracePeriod())
{{ trans('app.notice') }} {{ trans('messages.resume_subscription', ['ends' => \Carbon\Carbon::now()->diffInDays($subscription->ends_at)]) }} @if (Auth::user()->isMerchant()) {{ trans('app.resume_subscription') }} @endif
@elseif($subscription && $subscription->provider == 'wallet' && $subscription->active())
{{ trans('app.notice') }} {!! trans('messages.next_billing_date', ['date' => $subscription->ends_at->toRfc7231String()]) !!} @if (Auth::user()->isMerchant()) {{ trans('packages.wallet.deposit_fund') }} @endif
@elseif(Auth::user()->isOnGenericTrial())
{{ trans('app.notice') }} {{ trans('messages.generic_trial_ends_at', ['ends' => \Carbon\Carbon::now()->diffInDays(Auth::user()->shop->trial_ends_at)]) }} @unless (Request::is('admin/account/billing')) {{ trans('app.choose_plan') }} @endunless
@endif @elseif(Auth::user()->hasExpiredPlan())
{{ trans('app.notice') }} {{ trans('messages.trial_expired') }} @unless (Request::is('admin/account/billing')) {{ trans('app.choose_plan') }} @endunless
@endif