<?php $pageTitle='Provider Dashboard';require __DIR__.'/../lib/bootstrap.php';require_login(array('provider'));$p=db_one('SELECT * FROM provider_profiles WHERE user_id=?',array(user()['id']));$leads=db_one("SELECT COUNT(*) c FROM quote_requests WHERE status='open'");require __DIR__.'/../blocks/app-header.php';require __DIR__.'/../blocks/dashboard-open.php';?><div class="dash-head"><div><div class="eyebrow">PROVIDER WORKSPACE</div><h1><?=e(user()['name'])?></h1></div><a class="orange-btn" href="<?=url('provider/rates.php')?>">Publish rate</a></div><div class="grid grid-4"><div class="card"><div class="metric"><?=e($p?$p['verification_status']:'pending')?></div><div class="metric-label">Verification</div></div><div class="card"><div class="metric"><?=e($leads?$leads['c']:0)?></div><div class="metric-label">Open opportunities</div></div><div class="card"><div class="metric">0</div><div class="metric-label">Quotes sent</div></div><div class="card"><div class="metric">—</div><div class="metric-label">Response rate</div></div></div><?php require __DIR__.'/../blocks/dashboard-close.php';require __DIR__.'/../blocks/app-footer.php';?>