@extends('layouts.app') @section('page-header') @endsection @section('content')

{{ __('Total Earnings') }}

{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total_data_monthly['income_current_month'][0]['data'], 2) }}

{{ __('Current Month Earnings') }}

{{ __('this month vs last') }}

{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total_data_monthly['income_past_month'][0]['data'], 2) }}

{{ __('Last Month Earnings') }}

{{ number_format($total_data_monthly['new_subscribers_current_month']) }}

{{ __('New Subscribers') }}

{{ __('this month vs last') }}

{{ __('Current Year') }}
{{ __('Total Earnings') }}
{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total_data_yearly['total_income'][0]['data'], 2) }}
{{ __('Referral Earnings') }}
{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total_data_yearly['referral_earnings'][0]['data'], 2) }}
{{ __('Referral Payouts') }}
{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total_data_yearly['referral_payouts'][0]['data'], 2) }}

{{ __('Words Generated') }}

{{ __('Current Month Words') }}
{{ number_format($total_data_monthly['words_current_month']) }}
{{ __('Last Month Words') }}
{{ number_format($total_data_monthly['words_past_month']) }}

{{ __('Total Transactions') }} ({{ __('Current Month') }})

{{ number_format($total_data_monthly['transactions_current_month']) }} {{ __('this month') }}

{{ __('Last Month') }} {{ number_format($total_data_monthly['transactions_past_month']) }}
{{ __('Total') }} ({{ __('Current Year') }}) {{ number_format($total_data_yearly['transactions_generated'][0]['data']) }}

{{ __('Total Documents Created') }} ({{ __('Current Month') }})

{{ number_format($total_data_monthly['contents_current_month']) }} {{ __('this month') }}

{{ __('Last Month') }} {{ number_format($total_data_monthly['contents_past_month']) }}
{{ __('Total') }} ({{ __('Current Year') }}) {{ number_format($total_data_yearly['contents_generated']) }}

{{ __('Total Images Generated') }} ({{ __('Current Month') }})

{{ number_format($total_data_monthly['images_current_month']) }} {{ __('this month') }}

{{ __('Last Month') }} {{ number_format($total_data_monthly['images_past_month']) }}
{{ __('Total') }} ({{ __('Current Year') }}) {{ number_format($total_data_yearly['images_generated']) }}

{{ __('Users vs Subscribers') }}

{{ __('Total Users') }}
{{ number_format($total_data_yearly['total_users']) }}

{{ __('User Traffic') }}

@if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
@else
{{ __('GA 4 is not configured yet') }}
@endif

{{ __('Top Countries') }}

@if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
    @else
    {{ __('GA 4 is not configured yet') }}
    @endif

    {{ __('Average Session Duration') }}

    ({{ __('Last 30 Days') }})
    @if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
    @else
    {{ __('GA 4 is not configured yet') }}
    @endif

    {{ __('Bounce Rate') }}

    ({{ __('Last 30 Days') }})
    @if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
    @else
    {{ __('GA 4 is not configured yet') }}
    @endif

    {{ __('Sessions') }}

    ({{ __('Last 30 Days') }})
    @if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
    @else
    {{ __('GA 4 is not configured yet') }}
    @endif

    {{ __('Views per Session') }}

    ({{ __('Last 30 Days') }})
    @if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
    @else
    {{ __('GA 4 is not configured yet') }}
    @endif

    {{ __('Users and Sessions') }}

    @if (!empty(config('services.google.analytics.property')) && !empty(config('services.google.analytics.credentials')))
    @else
    {{ __('GA 4 is not configured yet') }}
    @endif

    {{ __('Latest Registrations') }}

    {{ __('User') }}
    {{ __('Status') }}
    {{ __('Date') }}
    @foreach ($users as $data)
    @if ($data->profile_photo_path)
    Avatar
    {{ $data->name }}
    {{ $data->email }}
    @else
    Avatar
    {{ $data->name }}
    {{ $data->email }}
    @endif

    {{ __(ucfirst($data->status)) }}

    {{ date_format($data->created_at, 'd M Y') }}
    {{ date_format($data->created_at, 'H:i A') }}

    @endforeach
    @if (App\Services\HelperService::extensionSaaS())

    {{ __('Latest Transactions') }}

    {{ __('Plan') }}
    {{ __('Price') }}
    {{ __('Gateway') }}
    {{ __('Status') }}
    {{ __('Date') }}
    @foreach ($transaction as $data)

    {{ $data->plan_name }}

    {{ ucfirst($data->frequency) }} {{ __('Plan') }}

    {!! config('payment.default_system_currency_symbol') !!}{{ number_format($data->price) }}

    {{ $data->gateway }}

    {{ __(ucfirst($data->status)) }}

    {{ date_format($data->created_at, 'd M Y') }}
    {{ date_format($data->created_at, 'H:i A') }}

    @endforeach
    @endif
    @if (config('settings.user_support') == 'enabled')

    {{ __('Support Tickets') }}

    @foreach ($tickets as $data) @endforeach
    {{ __('Ticket ID') }} {{ __('Subject') }} {{ __('Category') }} {{ __('Status') }} {{ __('Last Updated') }}
    ticket_id ) }}">{{ $data->ticket_id }} {{ ucfirst($data->subject) }} {{ ucfirst($data->category) }} {{ __(ucfirst($data->status)) }} {{ \Carbon\Carbon::parse($data->updated_at)->diffForHumans() }} ticket_id ) }}">{{ __('View') }}
    @endif

    {{ __('Notifications') }}

    @foreach ($notifications as $notification)
    @if ($notification->data['type'] == 'new-payment') @elseif ($notification->data['type'] == 'new-user') @elseif ($notification->data['type'] == 'payout-request') @else @endif

    id) }}"> @if ($notification->data['type'] == 'new-payment') {{ __('Payment') }}: @elseif ($notification->data['type'] == 'new-user') {{ __('Registration') }}: @elseif ($notification->data['type'] == 'payout-request') {{ __('Payout') }}: @endif {{ __($notification->data['subject']) }}

    {{ __('User Info') }}: {{ __($notification->data['name']) }} | {{ __($notification->data['email']) }}

    {{ \Carbon\Carbon::parse($notification->created_at)->format('M d, Y') }}
    {{ \Carbon\Carbon::parse($notification->created_at)->format('H:i A') }}
    @endforeach
    @endsection @section('js') @endsection