@extends('layouts.app') @section('title') {{__('admin.dashboard')}} -@endsection @section('content')

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

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

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

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

{{ Helper::amountFormatDecimal(auth()->user()->balance) }}

{{ __('general.balance') }} @if (auth()->user()->balance >= $settings->amount_min_withdrawal) {{ __('general.make_withdrawal') }} @endif

{{ Helper::formatNumber($subscriptionsActive) }}

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

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

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

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

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

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

{{ __('general.earnings_net_ppv') }}
{{ Helper::amountFormatDecimal($stat_revenue_today) }} {!! Helper::PercentageIncreaseDecrease($stat_revenue_today, $stat_revenue_yesterday) !!}
{{ __('general.revenue_today') }}
{{ Helper::amountFormatDecimal($stat_revenue_week) }} {!! Helper::PercentageIncreaseDecrease($stat_revenue_week, $stat_revenue_last_week) !!}
{{ __('general.revenue_week') }}
{{ Helper::amountFormatDecimal($stat_revenue_month) }} {!! Helper::PercentageIncreaseDecrease($stat_revenue_month, $stat_revenue_last_month) !!}
{{ __('general.revenue_month') }}

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

{{ __('admin.recent_subscriptions') }}
@foreach ($subscriptions as $subscription) @endforeach @if ($subscriptions->isEmpty()) @endif
{{__('general.subscriber')}} {{__('admin.date')}} {{__('admin.status')}}
@if (! isset($subscription->subscriber->username)) {{ __('general.no_available') }} @else {{$subscription->subscriber->hide_name == 'yes' ? $subscription->subscriber->username : $subscription->subscriber->name}} @endif {{Helper::formatDate($subscription->created_at)}} @if ($subscription->stripe_id == '' && strtotime($subscription->ends_at) > strtotime(now()->format('Y-m-d H:i:s')) && $subscription->cancelled == 'no' || $subscription->stripe_id != '' && $subscription->stripe_status == 'active' || $subscription->stripe_id == '' && $subscription->free == 'yes' ) {{__('general.active')}} @elseif ($subscription->stripe_id != '' && $subscription->stripe_status == 'incomplete') {{__('general.incomplete')}} @else {{__('general.cancelled')}} @endif
{{ __('users.not_subscribers') }}
@if ($subscriptions->isNotEmpty()) @endif
{{ __('general.payments_received') }}
@foreach ($transactions as $transaction) @endforeach @if ($transactions->isEmpty()) @endif
{{__('admin.date')}} {{__('admin.amount')}} {{__('admin.type')}} {{__('general.earnings')}}
{{ Helper::formatDate($transaction->created_at) }} {{ Helper::amountFormatDecimal($transaction->amount) }} {{ __('general.'.$transaction->type) }} @if (isset($transaction->gift->id) && request()->is('my/payments/received')) @endif {{ Helper::amountFormatDecimal($transaction->earning_net_user) }} @if ($transaction->percentage_applied) @endif
{{ __('general.not_payment_received') }}
@if ($transactions->isNotEmpty()) @endif
@endsection @section('javascript') @endsection