@extends('layouts.popup.small') @section('content')

multiline_chart {{ trans("messages.used_quota") }}

@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
{{ number_with_delimiter($subscription->getCreditsUsedDuringPlanCycle('send')) }}/{{ ($subscription->getCreditsLimit('send') == -1) ? '∞' : number_with_delimiter($subscription->getCreditsLimit('send'), $precision = 0) }}    {{ number_to_percentage($subscription->getCreditsUsedPercentageDuringPlanCycle('send')) }}
{{ number_with_delimiter(Auth::user()->customer->listsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxLists()) }}    {{ Auth::user()->customer->displayListsUsage() }}
{{ number_with_delimiter(Auth::user()->customer->campaignsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxCampaigns()) }}    {{ Auth::user()->customer->displayCampaignsUsage() }}
{{ number_with_delimiter(Auth::user()->customer->readCache('SubscriberCount')) }}/{{ number_with_delimiter(Auth::user()->customer->maxSubscribers()) }}    {{ Auth::user()->customer->displaySubscribersUsage() }}
{{ number_with_delimiter(Auth::user()->customer->automationsCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxAutomations()) }}    {{ Auth::user()->customer->displayAutomationsUsage() }}
{{ 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())
{{ 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()))
{{ 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()))
{{ number_with_delimiter(Auth::user()->customer->emailVerificationServersCount()) }}/{{ number_with_delimiter(Auth::user()->customer->maxEmailVerificationServers()) }}    {{ Auth::user()->customer->displayEmailVerificationServersUsage() }}
@endif
@endif @endsection