@php use App\Library\Tool; @endphp @extends('layouts/contentLayoutMaster') @section('title', __('locale.menu.Dashboard')) @section('vendor-style') {{-- vendor css files --}} @endsection @section('page-style') {{-- Page css files --}} @endsection @section('content') {{-- Dashboard Analytics Start --}}
@if(Auth::user()->customer->activeSubscription() != null)

{{ Auth::user()->customer->listsCount() != null ? Tool::format_number(Auth::user()->customer->listsCount()): 0 }}

{{ __('locale.contacts.contact_groups') }}

@else

0

{{ __('locale.contacts.contact_groups') }}

@endif
@if(Auth::user()->customer->activeSubscription() != null)

{{ Auth::user()->customer->subscriberCounts() != null ? Tool::format_number(Auth::user()->customer->subscriberCounts()) : 0 }}

{{ __('locale.menu.Contacts') }}

@else

0

{{ __('locale.menu.Contacts') }}

@endif

{{ Auth::user()->customer->blacklistCounts() }}

{{ __('locale.menu.Blacklist') }}

{{ Auth::user()->customer->smsTemplateCounts() }}

{{ __('locale.permission.sms_template') }}

{{ \App\Helpers\Helper::greetingMessage()}}

{{ __('locale.description.dashboard', ['brandname' => config('app.name')]) }}

{{ __('locale.labels.current_plan') }}

@if(Auth::user()->customer->activeSubscription() == null)

{{ __('locale.subscription.no_active_subscription') }}

@else

{!! __('locale.subscription.you_are_currently_subscribed_to_plan', [ 'plan' => auth()->user()->customer->subscription->plan->name, 'price' => Tool::format_price(auth()->user()->customer->subscription->plan->price, auth()->user()->customer->subscription->plan->currency->format), 'remain' => Tool::formatHumanTime(auth()->user()->customer->subscription->current_period_ends_at), 'end_at' => Tool::customerDateTime(auth()->user()->customer->subscription->current_period_ends_at) ]) !!}

@endif {{ __('locale.labels.more_info') }}
@if(Auth::user()->customer->activeSubscription() != null)

{{ __('locale.labels.sms_reports') }}

{{ __('locale.contacts.contact_groups') }}

{{ __('locale.labels.total') }}

@if(Auth::user()->customer->maxLists() != null) {{ (Auth::user()->customer->maxLists() == '∞' ) ? __('locale.labels.unlimited') : Tool::format_number(Auth::user()->customer->listsCount())}}

@else 0 @endif

{{ __('locale.labels.remaining') }}

@if(Auth::user()->customer->maxLists() == '∞') {{ __('locale.labels.unlimited') }} @else @if(Auth::user()->customer->maxLists() > Auth::user()->customer->listsCount()) {{ Tool::format_number(Auth::user()->customer->maxLists() - Auth::user()->customer->listsCount()) }} @else 0 @endif @endif

{{ __('locale.plans.max_contact') }}

{{ __('locale.labels.total') }}

{{ (Auth::user()->customer->maxSubscribers() == '∞') ? __('locale.labels.unlimited') : Tool::format_number(Auth::user()->customer->subscriberCounts()) }}

{{ __('locale.labels.remaining') }}

@if(Auth::user()->customer->maxSubscribers() == '∞') {{ __('locale.labels.unlimited') }} @else @if(Auth::user()->customer->maxSubscribers() > Auth::user()->customer->subscriberCounts()) {{ Tool::format_number(Auth::user()->customer->maxSubscribers() - Auth::user()->customer->subscriberCounts()) }} @else 0 @endif @endif

@endif

{{ __('locale.labels.outgoing_sms_history_of_current_month') }}

{{ __('locale.labels.incoming_sms_history_of_current_month') }}

@can('developers')

{{ __('locale.labels.api_sms_history_of_current_month') }}

@endcan
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @if(Auth::user()->customer->activeSubscription() == null) @else @endif @endsection