@extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

Platform Control Center

Monitor performance, approvals, and system health

@include('admin.components.stat_card', [ 'label' => 'Healthcare Workers', 'value' => $stats['nurses_total'] ?? 0, 'delta' => '+' . ($stats['nurses_delta_week'] ?? 0) . '% vs last week', 'sparkline' => $trends['nurses'] ?? [1,2,3,2,4,3,5], 'color' => '[#1D5BBF]', 'icon' => 'fa-solid fa-user-nurse' ]) @include('admin.components.stat_card', [ 'label' => 'Active Employers', 'value' => $stats['employers_active'] ?? 0, 'delta' => '+' . ($stats['employers_delta_month'] ?? 0) . '% vs last month', 'sparkline' => $trends['employers'] ?? [2,3,3,4,5,6,5], 'color' => '[#27B1A2]', 'icon' => 'fa-solid fa-briefcase' ]) @include('admin.components.stat_card', [ 'label' => 'Open Jobs', 'value' => $stats['jobs_open'] ?? 0, 'delta' => ($stats['jobs_delta'] ?? 0) . '% change this week', 'sparkline' => $trends['jobs'] ?? [3,2,4,3,5,4,6], 'color' => 'purple-500', 'icon' => 'fa-solid fa-briefcase' ]) @include('admin.components.stat_card', [ 'label' => 'Open Reports', 'value' => $stats['reports_open'] ?? 0, 'delta' => 'Safety & quality issues', 'sparkline' => $trends['reports'] ?? [0,1,0,0,2,1,0], 'color' => 'red-500', 'icon' => 'fa-solid fa-flag' ])

System Health

Errors, queues, and reports

@include('admin.dashboard._system_health', ['systemHealth' => $systemHealth])

Jobs Activity

Recent job postings & trends

@include('admin.dashboard._chart_summary', ['chartData' => $chartData])

Quick Actions

Common administrative tasks

@include('admin.dashboard._quick_actions', ['pendingCounts' => $pendingCounts ?? []])
@include('admin.components.activity_feed', ['items' => $recentActivity ?? []])

Pending Employers

Awaiting approval

@include('admin.dashboard._pending_employers', ['pendingEmployers' => $pendingEmployers])
@php $jobsPendingLink = \Illuminate\Support\Facades\Route::has('admin.jobs.pending') ? route('admin.jobs.pending') : route('admin.jobs.index'); @endphp

Jobs Queue

Pending approval

@include('admin.dashboard._jobs_queue', ['jobsQueue' => $jobsQueue])

Open Reports

Safety & quality issues

@include('admin.dashboard._open_reports', ['openReports' => $openReports])
@endsection