@extends('layouts.app') @section('page-header') @endsection @section('content') @if ($type == 'Regular License' || $type == '')

{{ __('Extended License is required in order to have access to these features') }}

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

{{ __('Total Referral Earnings') }}

{{ number_format((float)$total['referral_earnings'][0]['data'], 2) }}

{{ __('Total Referral Payouts') }}

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

{{ __('Revenue Source') }}

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

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

{{ __('Total Subscribers') }}
{{ number_format($total['total_subscribers'] ) }}

{{ __('Latest Transactions') }}

{{ __('Plan') }}
{{ __('Price') }}
{{ __('Gateway') }}
{{ __('Status') }}
{{ __('Date') }}
@foreach ($latest_transactions 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

{{ __('Cost per AI Model') }} (USD)

{{ __('Revenue per Plan') }}

{{ __('Plan') }}
{{ __('Plan Price') }}
# {{ __('of Purchases') }}
{{ __('Total Revenue') }}
@foreach ($transactions as $data)

{{ $data->plan_name }}

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

@if ($data->frequency == 'prepaid') @foreach ($prepaid as $plan) @if ($plan->plan_name == $data->plan_name) {!! config('payment.default_system_currency_symbol') !!} {{ $plan->price }} @endif @endforeach @else @foreach ($subscription as $plan) @if ($plan->plan_name == $data->plan_name) {!! config('payment.default_system_currency_symbol') !!} {{ $plan->price }} @endif @endforeach @endif

{{ $data->quantity }}

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

@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 @endsection @section('js') @endsection