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

{{ __("What's New Today") }}

{{ now()->format('d M, Y H:i A'); }}
@if (App\Services\HelperService::extensionSaaS())

{{ number_format($today['revenue']) }}

{{ __('Revenue') }}
@endif

{{ number_format($today['new_users']) }}

{{ __('New Users') }}
@if (App\Services\HelperService::extensionSaaS())

{{ number_format($today['subscribers']) }}

{{ __('Subscribers') }}
@endif @if (App\Services\HelperService::extensionSaaS())

{{ number_format($today['transactions']) }}

{{ __('Transactions') }}
@endif

{{ number_format($today['tickets']) }}

{{ __('Tickets') }}

{{ number_format($today['online_users']) }}

{{ __('Online Users') }}

{{config('app.name')}} {{ __('has the latest version installed') }}

{{ __('Version') }} {{config('app.version')}}

{{ number_format($today['tokens_used']) }}

{{ __('Tokens Credits Used') }}

{{ number_format($today['media_used']) }}

{{ __('Media Credits Used') }}

{{ number_format($today['contents']) }}

{{ __('Content Created') }}
@if (App\Services\HelperService::extensionSaaS())

{{ __('Finance Metrics') }}

{{ __('Total Earnings') }}

{{ __('Total Revenue') }}

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

{{ __('Lifetime') }} {{ __('earnings') }}
{{ __('Total Spending') }}

${{ number_format((float)$total['total_spending'], 3) }}

{{ __('Estimated') }} {{ __('AI service costs') }}
{{ __('Total Active Subscribers') }}
{{ number_format($total['total_subscribers']) }}
{{ __('Referral Earnings') }}
{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total['referral_earnings'][0]['data'], 2) }}
{{ __('Referral Payouts') }}
{!! config('payment.default_system_currency_symbol') !!}{{ number_format((float)$total['referral_payouts'][0]['data'], 2) }}

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

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

${{ number_format((float)$total_monthly['spending_current_month'], 3) }}

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

{{ __('Current Month Report') }} {{ __('Current Year Report') }}
{{ __('Current Year') }}
{{ __('New Subscribers') }} ({{ __(date('M')) }})
{{ number_format($total_data_monthly['new_subscribers_current_month']) }}

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

{{ __('New Transactions') }} ({{ __(date('M')) }})
{{ number_format($total_data_monthly['transactions_current_month']) }}

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

{{ __('Gift Cards Redeemed') }} ({{ __(date('M')) }})
{{ number_format($total_data_monthly['gift_current_month']) }}

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

{{ __('Applied Gift Funds') }} ({{ __(date('M')) }})
{{ number_format($total_data_monthly['gift_usage_current_month']) }}

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

{{ __('Revenue Source') }}

{{ __('AI Cost Breakdown') }} (USD)

{{ __('Non-Subscribers vs Subscribers') }}

@endif
@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

{{ __('Pending Approvals') }}

{{ __('Plan') }}
{{ __('User') }}
{{ __('Price') }}
{{ __('Gateway') }}
{{ __('Status') }}
@foreach ($approvals as $data)

{{ $data->plan_name }}

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

{{ $data->name }}

{{ ucfirst($data->email) }}

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

{{ $data->gateway }}

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

@endforeach
@endif

{{ __('User Metrics') }}

{{ __('Total Users') }}

{{ number_format($total['total_users']) }}

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

{{ __('Total Subscribers') }}

{{ number_format($total['total_subscribers']) }}

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

{{ __('Total Referred') }}

{{ number_format($total['total_referred']) }}

@endif

{{ __('Online Users') }}

{{ $users_online }}

{{ __('Visitors Today') }}

{{ $users_today }}

{{ __('Top Visitor Countries') }}

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

    {{ __('Google Maps is Disabled') }}

    @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

    {{ __('User Traffic') }}

    @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

    {{ __('Total Registered Users') }} ({{__('FY')}} {{ date('Y') }})

    {{ __('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

    {{ __('Platform Metrics') }}

    {{ __('Input Tokens Used') }} ({{ __(date('M')) }})

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

    {{ __('Last Month') }} {{ number_format($total_data_monthly['input_tokens_past_month']) }}
    {{ __('Total') }} ({{ date('Y') }}) {{ number_format($total_data_yearly['input_tokens_generated']) }}

    {{ __('Output Tokens Used') }} ({{ __(date('M')) }})

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

    {{ __('Last Month') }} {{ number_format($total_data_monthly['output_tokens_past_month']) }}
    {{ __('Total') }} ({{ date('Y') }}) {{ number_format($total_data_yearly['output_tokens_generated']) }}

    {{ __('Images Generated') }} ({{ __(date('M')) }})

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

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

    {{ __('Words Generated') }}

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

    {{ __('Tokens Usage') }} ({{__('FY')}} {{ date('Y') }})

    {{ __('Support Tickets Created') }} ({{ __(date('M')) }})

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

    {{ __('Last Month') }} {{ number_format($total_data_monthly['support_tickets_past_month']) }}
    {{ __('Total') }} ({{ date('Y') }}) {{ number_format($total_data_yearly['support_tickets_generated']) }}

    {{ __('Contents Created') }} ({{ __(date('M')) }})

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

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

    {{ __('Chat Messages Created') }} ({{ __(date('M')) }})

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

    {{ __('Last Month') }} {{ number_format($total_data_monthly['chats_past_month']) }}
    {{ __('Total') }} ({{ date('Y') }}) {{ number_format($total_data_yearly['chats_generated']) }}

    {{ __('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') }}

    {{ __('Recent Activities') }}

    @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