@php use App\Domains\Entity\EntityStats; $wordModels = EntityStats::word(); $imageModels = EntityStats::image(); $team = Auth::user()->getAttribute('team'); $teamManager = Auth::user()->getAttribute('teamManager'); @endphp @if ($team && $team?->allow_seats > 0)

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} {{ __('Active Workspace:') }}

{{ $teamManager?->name . ' ' . $teamManager?->surname }} @lang('Team Manager')

@lang("You have the Team plan which has a remaining balance of :word words and :image images. You can contact your team manager if you need more credits.", ['word' => $wordModels->totalCredits(), 'image' => $imageModels->totalCredits()])

@showCredit($wordModels)
{{ __('Words') }}

@lang('You can contact your team manager if you need more credits.')

@else

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} {{ __('Upgrade') }}

@if (Auth::user()->activePlan() !== null) {{ __('You have currently') }} {{ getSubscriptionName() }} {{ __('plan.') }} {{ __('Will refill automatically in') }} {{ getSubscriptionDaysLeft() }} {{ __('Days.') }} {{ checkIfTrial() === true ? __('You are in Trial time.') : '' }} @else {{ __('You have no subscription at the moment. Please select a subscription plan or a token pack.') }} @endif

@showCredit($wordModels)
{{ __('Words') }}

@lang('Upgrade your plan') @lang('to be able to generate more content.')

@if (getSubscriptionStatus()) {{ __('Cancel My Plan') }} @endif
@endif @push('script') @endpush