@extends('layouts.popup.small') @section('title') addchart {{ trans("messages.used_quota") }} @endsection @section('content') @if (\Auth::user()->customer && !\Auth::user()->customer->getCurrentActiveSubscription())

{!! trans('messages.not_have_any_plan_notification', [ 'link' => action('SubscriptionController@index'), ]) !!}

@else @php $subscription = \Auth::user()->customer->getCurrentActiveSubscription(); @endphp
{{ trans('messages.sending_quota') }}
{{ number_with_delimiter($subscription->getCreditsUsedDuringPlanCycle('send')) }}/{{ ($subscription->getCreditsLimit('send') == -1) ? '∞' : number_with_delimiter($subscription->getCreditsLimit('send')) }}    {{ number_to_percentage($subscription->getCreditsUsedPercentageDuringPlanCycle('send')) }}
{{ trans('messages.list') }}
{{ number_with_delimiter(Auth::user()->customer->listsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxLists()) }}    {{ Auth::user()->customer->displayListsUsage() }}
{{ trans('messages.campaign') }}
{{ number_with_delimiter(Auth::user()->customer->campaignsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxCampaigns()) }}    {{ Auth::user()->customer->displayCampaignsUsage() }}
{{ trans('messages.subscriber') }}
{{ number_with_delimiter(Auth::user()->customer->readCache('SubscriberCount')) }}/{{ number_with_delimiter(Auth::user()->customer->maxSubscribers()) }}    {{ Auth::user()->customer->displaySubscribersUsage() }}
{{ trans('messages.automation') }}
{{ number_with_delimiter(Auth::user()->customer->automationsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxAutomations()) }}    {{ Auth::user()->customer->displayAutomationsUsage() }}
{{ trans('messages.total_upload_size') }}
{{ number_with_delimiter(round(Auth::user()->customer->totalUploadSize(),2)) }}/{{ number_with_delimiter(Auth::user()->customer->maxTotalUploadSize()) }} (MB)    {{ Auth::user()->customer->totalUploadSizeUsage() }}%
@if (Auth::user()->customer->useOwnSendingServer())
{{ trans('messages.sending_server') }}
{{ number_with_delimiter(Auth::user()->customer->sendingServersCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxSendingServers()) }}    {{ Auth::user()->customer->displaySendingServersUsage() }}
@endif @if (Auth::user()->customer->can("create", new Acelle\Model\SendingDomain()))
{{ trans('messages.sending_domain') }}
{{ number_with_delimiter(Auth::user()->customer->sendingDomainsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxSendingDomains()) }}    {{ Auth::user()->customer->displaySendingDomainsUsage() }}
@endif @if (Auth::user()->customer->can("create", new Acelle\Model\EmailVerificationServer()))
{{ trans('messages.email_verification_server') }}
{{ number_with_delimiter(Auth::user()->customer->emailVerificationServersCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxEmailVerificationServers()) }}    {{ Auth::user()->customer->displayEmailVerificationServersUsage() }}
@endif
@endif @endsection