@extends('admin.layouts.admin_layout') @section('content') @push('css') @endpush {{-- Page title row --}}

Welcome to {{ $siteSetting->site_name }}

{{-- First row: stat cards (shown per permission) --}}
@if(APAuthHelp::can('site_users.view'))

Today's Users

{{ number_format($totalTodaysUsers) }}

Registered today

@endif @if(APAuthHelp::can('payments.view'))

Total Revenue

{{ $siteSetting->default_currency_code ?? 'USD' }} {{ number_format($totalRevenue, 0) }}

Completed payments

@endif @if(APAuthHelp::can('site_users.view'))

Active Users

{{ number_format($totalActiveUsers) }}

Active accounts

@endif @if(APAuthHelp::can('jobs.view'))

Active Jobs

{{ number_format($totalActiveJobs) }}

Live listings

@endif
{{-- Second row: Business Performance + New Users charts (per permission) --}} @if(APAuthHelp::can('payments.view') || APAuthHelp::can('site_users.view'))
@if(APAuthHelp::can('payments.view'))

Revenue Overview

Company Payments Users Payments
@endif @if(APAuthHelp::can('site_users.view'))

New Users / Registrations (Last 12 Months)

@endif
@endif {{-- Third row: Active Companies (companies.view) --}} @if(APAuthHelp::can('companies.view'))

Active Companies

See All Companies
    @foreach($activeCompanies as $company)
  • {!! $company->printCompanyImage(36, 36) !!}
    {{ $company->name }} ({{ $company->email }}) · {{ $company->getLocation() }}
  • @endforeach
@endif {{-- Fourth row: Recent Users + Recent Jobs (per permission) --}} @if(APAuthHelp::can('site_users.view') || APAuthHelp::can('jobs.view'))
@if(APAuthHelp::can('site_users.view'))

Recent Registered Users

See All
    @foreach($recentUsers as $recentUser)
  • {!! $recentUser->printUserImage(36, 36) !!}
    {{ $recentUser->name }} ({{ $recentUser->email }}) · {{ $recentUser->getLocation() }}
  • @endforeach
@endif @if(APAuthHelp::can('jobs.view'))

Recent Jobs

See All
    @foreach($recentJobs as $recentJob)
  • @php $jobCompany = $recentJob->getCompany(); @endphp
    @if($jobCompany) {!! $jobCompany->printCompanyImage(36, 36) !!} @else @endif
    {{ \Illuminate\Support\Str::limit($recentJob->title, 50) }} · {{ $recentJob->getCompany('name') }} · {{ $recentJob->getLocation() }}
  • @endforeach
@endif
@endif {{-- Quick nav (links shown per permission) --}} @if(APAuthHelp::can('jobs.view') || APAuthHelp::can('companies.view') || APAuthHelp::can('site_users.view') || APAuthHelp::can('payments.view') || APAuthHelp::can('cms.view') || APAuthHelp::can('blog.manage') || APAuthHelp::can('seo.manage') || APAuthHelp::can('faq.view') || APAuthHelp::can('testimonials.view') || APAuthHelp::can('packages.manage') || APAuthHelp::can('countries.manage') || APAuthHelp::can('states.manage') || APAuthHelp::can('cities.manage') || APAuthHelp::can('site_settings.manage'))
@endif @endsection @push('scripts') @endpush