<?php $pageTitle='Admin Control Center';require __DIR__.'/../lib/bootstrap.php';require_login(array('admin'));$metrics=array('users'=>db_one('SELECT COUNT(*) c FROM users'),'providers'=>db_one("SELECT COUNT(*) c FROM users WHERE role='provider'"),'requests'=>db_one("SELECT COUNT(*) c FROM quote_requests WHERE status='open'"),'pending'=>db_one("SELECT COUNT(*) c FROM rate_quotes WHERE status='pending'"));require __DIR__.'/../blocks/app-header.php';require __DIR__.'/../blocks/dashboard-open.php';?><div class="dash-head"><div><div class="eyebrow">SYSTEM OVERVIEW</div><h1>Administrative control center</h1></div><a class="orange-btn" href="<?=url('operations/queue.php')?>">Review rates</a></div><div class="grid grid-4"><div class="card"><div class="metric"><?=e($metrics['users']?$metrics['users']['c']:0)?></div><div class="metric-label">All users</div></div><div class="card"><div class="metric"><?=e($metrics['providers']?$metrics['providers']['c']:0)?></div><div class="metric-label">Provider accounts</div></div><div class="card"><div class="metric"><?=e($metrics['requests']?$metrics['requests']['c']:0)?></div><div class="metric-label">Open quote requests</div></div><div class="card"><div class="metric"><?=e($metrics['pending']?$metrics['pending']['c']:0)?></div><div class="metric-label">Rates awaiting validation</div></div></div><div class="grid grid-3" style="margin-top:20px"><div class="card"><h3>Requests & trackers</h3><p class="muted">See business demand, watched corridors, target rates and upcoming requirements.</p></div><div class="card"><h3>Market operations</h3><p class="muted">Monitor source freshness, failed scraper runs, anomalous rates and validation workload.</p></div><div class="card"><h3>Provider marketplace</h3><p class="muted">Review verification, listings, responses, rankings and provider performance.</p></div></div><?php require __DIR__.'/../blocks/dashboard-close.php';require __DIR__.'/../blocks/app-footer.php';?>