@extends('admin.layout') @section('css') @endsection @section('content')

{{ __('admin.dashboard') }} v{{$settings->version}}

{{ number_format($total_subscriptions) }}

{{ __('admin.subscriptions') }}

{{ Helper::amountFormatDecimal($total_raised_funds) }}

{{ __('admin.earnings_net') }} ({{__('users.admin')}})

{{ number_format($totalUsers) }}

{{ __('general.members') }}

{{ number_format($total_posts) }}

{{ __('general.posts') }}
{{ Helper::amountFormatDecimal($total_funds) }}
{{ __('general.total_revenue') }}
{{ Helper::amountFormatDecimal($total_paid_funds) }}
{{ __('general.paid_to_creators') }}
{{ Helper::amountFormatDecimal($totalPaidlastMonth) }}
{{ __('general.paid_last_month') }}
{{ Helper::amountFormatDecimal($stat_revenue_today) }} {!! Helper::percentageIncreaseDecreaseAdmin($stat_revenue_today, $stat_revenue_yesterday) !!}
{{ __('general.revenue_today') }}
{{ Helper::amountFormatDecimal($stat_revenue_week) }} {!! Helper::percentageIncreaseDecreaseAdmin($stat_revenue_week, $stat_revenue_last_week) !!}
{{ __('general.revenue_week') }}
{{ Helper::amountFormatDecimal($stat_revenue_month) }} {!! Helper::percentageIncreaseDecreaseAdmin($stat_revenue_month, $stat_revenue_last_month) !!}
{{ __('general.revenue_month') }}
{{ trans('general.earnings') }}
{{ __('general.subscriptions_the_month') }}
{{ __('admin.latest_members') }}
@foreach ($users as $user)
{{ $user->name ?: $user->username }} {{ $user->status == 'active' ? __('general.active') : ($user->status == 'pending' ? __('general.pending') : __('admin.suspended')) }}
{{ '@'.$user->username }} / {{ Helper::formatDate($user->date) }}
@endforeach @if ($users->count() == 0) {{ __('admin.no_result') }} @endif
@if ($users->count() != 0) @endif
{{ __('admin.recent_subscriptions') }}
@foreach ($subscriptions as $subscription)
@if (! isset($subscription->subscriber->username)) {{ __('general.no_available') }} @else {{$subscription->subscriber->name}} @endif {{__('general.subscribed_to')}} @if (! isset($subscription->creator->username)) {{ __('general.no_available') }} @else {{$subscription->creator->name}} @endif
{{ Helper::formatDate($subscription->created_at) }}
@endforeach @if ($subscriptions->count() == 0) {{ __('admin.no_result') }} @endif
@if ($subscriptions->count() != 0) @endif
@endsection @section('javascript') @include('admin.charts') @endsection