<?php $pageTitle='Business Dashboard';require __DIR__.'/../lib/bootstrap.php';require_login(array('business'));require __DIR__.'/../blocks/app-header.php';require __DIR__.'/../blocks/dashboard-open.php';$uid=user()['id'];$alerts=db_one('SELECT COUNT(*) c FROM rate_alerts WHERE user_id=? AND active=1',array($uid));$requests=db_one('SELECT COUNT(*) c FROM quote_requests WHERE user_id=?',array($uid));?><div class="dash-head"><div><div class="eyebrow">BUSINESS WORKSPACE</div><h1>Good to see you, <?=e(user()['name'])?>.</h1></div><a class="orange-btn" href="<?=url('business/requests.php')?>">Request quotes</a></div><div class="grid grid-4"><div class="card"><div class="metric"><?=e($alerts?$alerts['c']:0)?></div><div class="metric-label">Active alerts</div></div><div class="card"><div class="metric"><?=e($requests?$requests['c']:0)?></div><div class="metric-label">Quote requests</div></div><div class="card"><div class="metric">0.00</div><div class="metric-label">Estimated savings</div></div><div class="card"><div class="metric">—</div><div class="metric-label">Next planned purchase</div></div></div><div class="grid grid-3" style="margin-top:20px"><div class="card"><h3>Watch your markets</h3><p class="muted">Set target rates and receive email, SMS or WhatsApp alerts.</p><a href="<?=url('business/watchlist.php')?>"><strong>Manage alerts →</strong></a></div><div class="card"><h3>Request commercial quotes</h3><p class="muted">Send one structured request to eligible verified providers.</p><a href="<?=url('business/requests.php')?>"><strong>Open requests →</strong></a></div><div class="card"><h3>Plan recurring FX needs</h3><p class="muted">Record future supplier payments and monitor timing against your targets.</p><a href="<?=url('business/planner.php')?>"><strong>Open planner →</strong></a></div></div><?php require __DIR__.'/../blocks/dashboard-close.php';require __DIR__.'/../blocks/app-footer.php';?>