<?php require_once __DIR__ . '/../../app/bootstrap.php'; App\Core\Auth::requireRole(['admin']); App\Core\Response::json(['ok'=>true,'stats'=>['orders'=>db_count('orders'),'products'=>db_count('products'),'vendors'=>db_count('vendors'),'customers'=>db_count('users','role="customer"')]]);
