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

{{ __('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()])

@formatNumberShort($wordModels->checkIfThereUnlimited() ? __('Unlimited') : $wordModels->totalCredits()) @if (!$wordModels->checkIfThereUnlimited()) @endif {{ __('Words') }}

@else

@lang('Your Plan')

@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 @if ($setting->feature_ai_image) {{ __('Total') }} @formatNumber($wordModels->checkIfThereUnlimited() ? __('Unlimited') : $wordModels->totalCredits()) {{ __('word and') }} @formatNumber($imageModels->checkIfThereUnlimited() ? __('Unlimited') : $imageModels->totalCredits()) {{ __('image tokens left.') }} @else {{ __('Total') }} @formatNumber($wordModels->checkIfThereUnlimited() ? __('Unlimited') : $wordModels->totalCredits()) {{ __('tokens left.') }} @endif

@formatNumberShort($wordModels->checkIfThereUnlimited() ? __('Unlimited') : $wordModels->totalCredits()) @if (!$wordModels->checkIfThereUnlimited()) @endif {{ __('Words') }}

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