<?php $pageTitle='Market Operations';require __DIR__.'/../lib/bootstrap.php';require_login(array('operator'));$pending=db_one("SELECT COUNT(*) c FROM rate_quotes WHERE status='pending'");$stale=db_one("SELECT COUNT(*) c FROM rate_sources WHERE last_success_at < DATE_SUB(NOW(),INTERVAL 30 MINUTE) OR last_success_at IS NULL");require __DIR__.'/../blocks/app-header.php';require __DIR__.'/../blocks/dashboard-open.php';?><div class="dash-head"><div><div class="eyebrow">MARKET OPERATIONS</div><h1>Rate collection and quality control</h1></div><a class="orange-btn" href="<?=url('operations/capture.php')?>">Capture quote</a></div><div class="grid grid-4"><div class="card"><div class="metric"><?=e($pending?$pending['c']:0)?></div><div class="metric-label">Pending validation</div></div><div class="card"><div class="metric"><?=e($stale?$stale['c']:0)?></div><div class="metric-label">Sources needing attention</div></div><div class="card"><div class="metric">10</div><div class="metric-label">Priority scraper modules</div></div><div class="card"><div class="metric">15m</div><div class="metric-label">Target refresh cycle</div></div></div><?php require __DIR__.'/../blocks/dashboard-close.php';require __DIR__.'/../blocks/app-footer.php';?>