@extends('panel.layout.app') @section('title', __('Dashboard')) @section('content')
{{-- @if ($setting->liquid_license_type != 'Extended License')
You license type is {{$setting->liquid_license_type}}. You should Upgrade License to use Membership Plans of Finance feature.
@endif --}}
@if ($gatewayError == true)
{{ __('Gateway is set to use sandbox. Please set mode to development!') }}

  • {{ __('To use live settings:') }}
    • {{ __('Set mode to Production') }}
    • {{ __('Save gateway settings') }}
    • {{ __('Know that all defined products and prices will reset.') }}
  • {{ __('To use sandbox settings:') }}
    • {{ __('Set mode to Development') }}
    • {{ __('Save gateway settings') }}
    • {{ __('Know that all defined products and prices will reset.') }}
  • {{ __('Beware of that order is important. First set mode then save gateway settings.') }}
@endif

{{ __('Total sales') }}

{{-- $currencySymbol --}} @if (currencyShouldDisplayOnRight(currency()->symbol)) {{ number_format(cache('total_sales')) }} {{ currency()->symbol }} @else {{ currency()->symbol }} {{ number_format(cache('total_sales')) }} @endif {!! percentageChange(cache('sales_previous_week'), cache('sales_this_week')) !!}

{{ __('New users') }}

{{ cache('users_this_week') }} {!! percentageChange(cache('users_previous_week'), cache('users_this_week')) !!}

{{ __('Words Generated') }}

{{ cache('words_this_week') }} {!! percentageChange(cache('words_previous_week'), cache('words_this_week')) !!}

{{ __('Images Generated') }}

{{ cache('images_this_week') }} {!! percentageChange(cache('images_previous_week'), cache('images_this_week')) !!}

{{ __('Revenue') }}

{{ __('Total Sales') }}

@if (currencyShouldDisplayOnRight(currency()->symbol)) {{ number_format(cache('total_sales')) }} {{ currency()->symbol }} @else {{ currency()->symbol }} {{ number_format(cache('total_sales')) }} @endif @if (cache('sales_previous_week') != 0 and cache('sales_this_week') != 0) @php($salesChange = number_format((1 - cache('sales_previous_week') / cache('sales_this_week')) * 100)) @else @php($salesChange = 0) @endif @php(print_r($salesChange))%

{{ __('Generated Content') }}

{{ __('Top Countries') }}

@foreach (json_decode(cache('top_countries') ?? '[]') as $top_countries) @endforeach
{{ __('Country') }} {{ __('Users') }} {{ __('Popularity') }}
{{ __($top_countries->country ?? 'Not Specified') }} {{ $top_countries->total }}

{{ __('Activity') }}

@foreach ($activity as $entry) @endforeach
@if ($entry->user) {!! $entry->user->getAvatar() !!} @endif
@if ($entry->user) {{ $entry->user->fullName() }} @endif {{ __($entry->activity_type) }} @if (isset($entry->activity_title)) "{{ __($entry->activity_title) }}" @endif
{{ $entry->created_at->diffForHumans() }}
@if (isset($entry->url)) {{ __('Go') }} @endif
@if (count($activity) == 0)

{{ __('No activity logged yet.') }}

@endif

{{ __('Latest Transactions') }}

@foreach ($latestOrders as $order) @if ($order->status == 'Success') @else @endif @endforeach
{{ __('Method') }} {{ __('Status') }} {{ __('Info') }} {{ __('Plan') }} / {{ __('Words') }} / {{ __('Images') }}
{{ __($order->payment_type) }} {{ __($order->status) }} {{ __($order->status) }} {{ $order->user->fullName() }}
{{ __($order->type) }}
{{ @$order->plan->name ?? 'Archived Plan' }} /{{ @$order->plan->total_words === '-1' ? __('Unlimited') : @$order->plan->total_words ?? '-' }} /{{ @$order->plan->total_images === '-1' ? __('Unlimited') : @$order->plan->total_images ?? '-' }}
@endsection @section('script') @endsection