@include('admin.partials.header') @include('admin.partials.sidebar') @include('admin.partials.topbar') @php $typeMeta = [ 'job' => ['label' => 'Jobs', 'icon' => 'work'], 'rent' => ['label' => 'Rent', 'icon' => 'apartment'], 'hostel' => ['label' => 'Hostels', 'icon' => 'bed'], 'service' => ['label' => 'Services', 'icon' => 'construction'], ]; @endphp

Dashboard Overview

Welcome back, {{ auth()->user()?->name ?? 'Admin' }}

Live marketplace snapshot for {{ $generatedAt->format('d M Y, h:i A') }}.

@foreach ($kpis as $key => $kpi)
{{ $kpi['icon'] }}
{{ $kpi['badge']['label'] }}

{{ $kpi['label'] }}

{{ is_numeric($kpi['value']) ? number_format((float) $kpi['value']) : $kpi['value'] }}

@endforeach

Marketplace Categories

@foreach ($categories as $category)
{{ $category['icon'] }}

{{ number_format((int) $category['count']) }}

{{ $category['label'] }}

{{ $category['title'] }}

{{ $category['note'] }}

@endforeach

Revenue Trend

Completed payments
@foreach ($revenueTrend as $index => $month)
@if ($loop->last) {{ $month['label'] }}: Rs {{ number_format($month['total'], 0) }} @endif
@endforeach
@foreach ($revenueTrend as $month) {{ $month['label'] }} @endforeach

User Acquisition

Last 30 days
Providers {{ number_format((int) $acquisitionTrend['providers']) }}
Customers {{ number_format((int) $acquisitionTrend['customers']) }}

Total Joined

{{ number_format((int) $acquisitionTrend['total']) }}

Providers

{{ $acquisitionTrend['provider_percent'] }}%

Customers

{{ $acquisitionTrend['customer_percent'] }}%

Recent Activity

@forelse ($recentActivities as $activity)
{{ $activity->action === 'delete' ? 'delete' : ($activity->action === 'create' ? 'add' : 'history') }}

{{ Str::headline($activity->module).' '.Str::headline($activity->action) }}

{{ $activity->description ?: ucfirst($activity->user_type).' activity recorded.' }}

{{ $activity->created_at?->diffForHumans() }}

@empty
history

No activity yet

Important admin, provider, and customer actions will appear here.

@endforelse

Pending Moderation

View All
@forelse ($pendingModeration as $listing) @php $meta = $typeMeta[$listing->listing_type] ?? ['label' => ucfirst($listing->listing_type), 'icon' => 'inventory_2']; $providerName = $listing->provider_business_name ?: ($listing->provider_name ?: 'Unknown provider'); @endphp @empty @endforelse
Listing / Provider Category Date Submitted Action
{{ $meta['icon'] }}

{{ $listing->title }}

by {{ $providerName }}

{{ $meta['label'] }} {{ \Illuminate\Support\Carbon::parse($listing->created_at)->format('d M Y, h:i A') }}
No pending listings. The queue is clear.
@include('admin.partials.footer')