@extends('layouts.app') @push('styles') @endpush @section('content')
@include('dashboard.update-message-dashboard') @includeIf('dashboard.update-message-module-dashboard')
@if(user()->permission('view_companies'))
@if($sidebarSuperadminPermissions['view_companies'] != 5 && $sidebarSuperadminPermissions['view_companies'] != 'none')
@endif @if($sidebarSuperadminPermissions['view_packages'] != 5 && $sidebarSuperadminPermissions['view_packages'] != 'none')
@endif
@if($sidebarSuperadminPermissions['manage_billing'] != 5 && $sidebarSuperadminPermissions['manage_billing'] != 'none')
@lang('superadmin.dashboard.earningReports')
@lang('app.total')

{{ global_currency_format($earningTotals['all_time'], $dashboardCurrencyId) }}

@lang('superadmin.dashboard.totalEarnings')

{{ global_currency_format($earningTotals['current_year'], $dashboardCurrencyId) }}

@lang('superadmin.dashboard.earningsThisYear')

{{ global_currency_format($earningTotals['current_month'], $dashboardCurrencyId) }}

@lang('superadmin.dashboard.earningsThisMonth')
@foreach($monthlyEarningsReport as $earningRow) @endforeach
@lang('app.month') @lang('superadmin.dashboard.monthlyIncome')
{{ $earningRow['label'] }} {{ global_currency_format($earningRow['total'], $dashboardCurrencyId) }}
@lang('superadmin.dashboard.subscriptionReports')

{{ $subscriptionTotals['active'] }}

@lang('superadmin.dashboard.activeSubscriptions')

{{ $subscriptionTotals['new_this_month'] }}

@lang('superadmin.dashboard.newSubscriptionsThisMonth')
@foreach($monthlySubscriptionReport as $subscriptionRow) @endforeach
@lang('app.month') @lang('superadmin.dashboard.monthlySubscriptions')
{{ $subscriptionRow['label'] }} {{ $subscriptionRow['total'] }}
@lang('superadmin.dashboard.topPayingCompanies')
@forelse($topPayingCompanies as $company) @empty @endforelse
@lang('app.name') @lang('app.amount')
@if($company->company) @else @lang('app.na') @endif {{ global_currency_format($company->total, $dashboardCurrencyId) }}
@lang('messages.noRecordFound')
@lang('superadmin.dashboard.paymentGatewayBreakdown')
@forelse($gatewayBreakdown as $gateway) @empty @endforelse
@lang('modules.payments.paymentGateway') @lang('app.amount')
{{ $gateway['gateway'] }} {{ global_currency_format($gateway['total'], $dashboardCurrencyId) }}
@lang('messages.noRecordFound')
@lang('superadmin.dashboard.upcomingRenewals')
@forelse($upcomingRenewals as $renewal) @empty @endforelse
@lang('superadmin.company') @lang('superadmin.dashboard.nextChargeDate') @lang('app.amount')
@if($renewal->company) @else @lang('app.na') @endif {{ optional($renewal->next_pay_date)->timezone(global_setting()->timezone)->translatedFormat(global_setting()->date_format) ?? '--' }} {{ global_currency_format($renewal->total, $renewal->currency_id ?? $dashboardCurrencyId) }}
@lang('messages.noRecordFound')
@lang('superadmin.dashboard.outstandingInvoices')
@forelse($outstandingInvoices as $invoice) @php $dueDate = $invoice->next_pay_date ?: $invoice->created_at; @endphp @empty @endforelse
@lang('app.company_name') @lang('superadmin.dashboard.dueDate') @lang('app.status') @lang('superadmin.dashboard.amountDue')
@if($invoice->company) @else @lang('app.na') @endif {{ $dueDate ? $dueDate->timezone(global_setting()->timezone)->translatedFormat(global_setting()->date_format) : '--' }} {{ $invoice->status ? str_replace('_', ' ', $invoice->status) : __('app.na') }} {{ global_currency_format($invoice->total ?? 0, $invoice->currency_id ?? $dashboardCurrencyId) }}
@lang('messages.noRecordFound')
@lang('superadmin.dashboard.expiringSubscriptions')
@forelse($expiringSubscriptions as $expiring) @empty @endforelse
@lang('app.company_name') @lang('app.package') @lang('superadmin.dashboard.expiryDate')
{{ optional($expiring->package)->name ?? __('app.na') }} {{ optional($expiring->licence_expire_on)->timezone(global_setting()->timezone)->translatedFormat(global_setting()->date_format) ?? '--' }}
@lang('messages.noRecordFound')
@endif
@if($sidebarSuperadminPermissions['view_companies'] != 5 && $sidebarSuperadminPermissions['view_companies'] != 'none')
@include('super-admin.dashboard.recent-registered-companies')
@include('super-admin.dashboard.top-user-count-companies')
@endif @if($sidebarSuperadminPermissions['manage_billing'] != 5 && $sidebarSuperadminPermissions['manage_billing'] != 'none')
@include('super-admin.dashboard.recent-subscriptions')
@include('super-admin.dashboard.recent-license-expired')
@endif @if($sidebarSuperadminPermissions['view_packages'] != 5 && $sidebarSuperadminPermissions['view_packages'] != 'none')
@include('super-admin.dashboard.package-company-count')
@endif @if($sidebarSuperadminPermissions['view_companies'] != 5 && $sidebarSuperadminPermissions['view_companies'] != 'none')
@include('super-admin.dashboard.charts')
@endif
@endif
@endsection @push('scripts') @endpush