@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 --}}
@unless($userAnnouncements->isEmpty())

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

{{ __('locale.buttons.close') }}

    @foreach($userAnnouncements as $announcement) @if($announcement->pivot->read_at === null)
  • {{ $announcement->title }}
    {{ $announcement->created_at->diffForHumans() }}

    {!! $announcement->description !!}

  • @endif @endforeach
@endunless

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

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

@can('sms_quick_send') @endcan @can('sms_campaign_builder') @endcan @can('sms_bulk_messages') @endcan @can('view_contact_group') @endcan

{{ __('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()) {{ __('locale.labels.packages') }} @endif

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

@php $campaigns = \App\Models\Campaigns::where('user_id', Auth::user()->id); $totalCamp = $campaigns->count(); $deliveredCamp = $campaigns->where('status', '!=', \App\Models\Campaigns::STATUS_DONE)->count(); @endphp {{ $deliveredCamp }} / {{ $totalCamp }}

{{ str_plural(__('locale.menu.Campaigns')) }}

{{ $deliveredCount }} / {{ $total_sms_sent }}

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

{{ $undeliveredCount }} / {{ $total_sms_sent }}

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

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

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

@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

{{ \App\Models\Invoices::where('user_id', Auth::user()->id)->where('status', \App\Models\Invoices::STATUS_UNPAID)->orWhere('status', \App\Models\Invoices::STATUS_PENDING)->count() }} / {{ \App\Models\Invoices::where('user_id', Auth::user()->id)->count() }}

{{ str_plural(__('locale.menu.Invoices')) }}

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

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

@canany(['quick_send', 'sms_campaign_builder', 'sms_bulk_messages'])

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.plain_sms')]) }}

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.unicode_sms')]) }}

@endcanany @canany(['voice_campaign_builder', 'voice_quick_send', 'voice_bulk_messages'])

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.voice_sms')]) }}

@endcanany @canany(['mms_campaign_builder', 'mms_quick_send', 'mms_bulk_messages'])

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.mms_sms')]) }}

@endcanany @canany(['whatsapp_campaign_builder', 'whatsapp_quick_send', 'whatsapp_bulk_messages'])

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.whatsapp_sms')]) }}

@endcanany @canany(['viber_campaign_builder', 'viber_quick_send', 'viber_bulk_messages'])

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.viber_sms')]) }}

@endcanany @canany(['otp_campaign_builder', 'otp_quick_send', 'otp_bulk_messages'])

{{ __('locale.labels.sms_statistics', ['sms_type' => __('locale.labels.otp_sms')]) }}

@endcanany
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection