@extends('layouts.cp') @section('title', 'Dashboard') @section('content') {{-- Header with refresh --}}

Welcome back, {{ auth()->user()->first_name }}.

Last refreshed: just now

{{-- User Stats --}}

Web Administrasi — Users

Total Users

{{ $userStats['total'] }}

all registered users

Active Users

{{ $userStats['active'] }}

currently active

Inactive Users

{{ $userStats['inactive'] }}

deactivated accounts

{{-- Role Stats --}}

Roles — Web Administrasi

Total Roles

{{ $cpStats['total_roles'] }}

all roles

Active Roles

{{ $cpStats['active_roles'] }}

currently active

Inactive Roles

{{ $cpStats['inactive_roles'] }}

deactivated

{{-- CP Stats --}}

Control Panel

Web Menus

{{ $cpStats['web_menus'] }}

click for details →

Active OTP Bypass

{{ $cpStats['active_bypass'] }}

Error Logs

{{ $cpStats['error_logs'] }}

CP Roles

{{ $cpStats['cp_roles'] }}

{{-- Manual Sync --}}

Manual Sync to Main App

Push latest data from CP to the main app.

Roles

cp:sync-roles

Menus

cp:sync-menus

Approval Flows

cp:sync-approval-flows

Sync All

all at once
{{-- Menu Detail Modal --}} @endsection