@extends('layouts.core.backend', [ 'menu' => 'dashboard', ]) @section('title', trans('messages.dashboard')) @section('head') @endsection @section('content') @if (config('custom.japan') && !empty(trans('messages.dashboard.notice')))

{!! trans('messages.dashboard.notice') !!}

@endif

{{ trans('messages.backend_dashboard_hello', ['name' => Auth::user()->admin->displayName()]) }}

{{ trans('messages.backend_dashboard_welcome') }}

@include('admin.notifications._top', ['notifications' => $notifications])

people_outline {{ trans('messages.customers_growth') }}

@include('admin.customers._growth_chart')

assignment_turned_in {{ trans('messages.plans_chart') }}

@include('admin.plans._pie_chart')

assignment_turned_in {{ trans('messages.recent_subscriptions') }}

people_outline {{ trans('messages.recent_customers') }}

restore {{ trans('messages.activities') }}

@if (\Auth::user()->admin->getLogs()->count() == 0)
history_toggle_off {{ trans('messages.no_activity_logs') }}
@else
@foreach (\Auth::user()->admin->getLogs()->take(20)->get() as $log)
history
{{ $log->created_at->timezone($currentTimezone)->diffForHumans() }}

{!! $log->message() !!}

@endforeach
@endif

running_with_errors {{ trans('messages.resources_statistics') }}

{{ trans('messages.resources_statistics_intro') }}

  • people_outline {{ trans('messages.customers') }}
    {{ Auth::user()->admin->getAllCustomers()->count() }}
  • assignment_turned_in {{ trans('messages.subscriptions') }}
    {{ Auth::user()->admin->getAllSubscriptions()->count() }}
  • assignment_turned_in {{ trans('messages.plans') }}
    {{ Auth::user()->admin->getAllPlans()->count() }}
  • contact_mail {{ trans('messages.lists') }}
    {{ Auth::user()->admin->getAllLists()->count() }}
  • people_outline {{ trans('messages.subscribers') }}
    {{ number_with_delimiter($subscribersCount) }}
  • manage_accounts {{ trans('messages.admins') }}
    {{ Auth::user()->admin->getAllAdmins()->count() }}
  • people {{ trans('messages.admin_groups') }}
    {{ Auth::user()->admin->getAllAdminGroups()->count() }}
  • dns {{ trans('messages.sending_servers') }}
    {{ Auth::user()->admin->getAllSendingServers()->count() }}
  • public {{ trans('messages.sending_domains') }}
    {{ $sendingDomainsCount }}
  • forward_to_inbox {{ trans('messages.campaigns') }}
    {{ Auth::user()->admin->getAllCampaigns()->count() }}
  • schedule {{ trans('messages.automations') }}
    {{ number_with_delimiter($automationsCount) }}
@endsection