@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())
@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