<div class="mx-auto max-w-7xl"><div class="mb-6"><h2 class="font-display text-2xl font-extrabold">Practitioner Verification</h2><p class="mt-2 text-sm text-slate-500">Review registration details and control eligibility for TibaLeta dispatch.</p></div><div class="overflow-hidden rounded-2xl border border-slate-100 bg-white shadow-card"><div class="overflow-x-auto"><table class="data-table w-full min-w-[900px]"><thead><tr class="border-b border-slate-100 bg-slate-50"><th class="px-5 py-3 text-left">Practitioner</th><th class="px-5 py-3 text-left">Profession</th><th class="px-5 py-3 text-left">Registration</th><th class="px-5 py-3 text-left">Status</th><th class="px-5 py-3 text-left">Availability</th><th class="px-5 py-3 text-right">Action</th></tr></thead><tbody><?php foreach($rows as $r): ?><tr class="border-b border-slate-50"><td class="px-5 py-4"><div class="font-semibold text-navy"><?= esc($r['full_name']) ?></div><div class="mt-1 text-[11px] text-slate-400"><?= esc($r['email']) ?></div></td><td class="px-5 py-4"><?= esc($r['profession']) ?></td><td class="px-5 py-4"><div><?= esc($r['registration_number'] ?: 'Not supplied') ?></div><div class="mt-1 text-[11px] text-slate-400"><?= esc($r['professional_body'] ?: '') ?></div></td><td class="px-5 py-4"><span class="rounded-full px-2.5 py-1 text-[10px] font-bold <?= $r['verification_status']==='verified'?'bg-emerald-50 text-emerald-700':'bg-amber-50 text-amber-700' ?>"><?= esc(ucwords(str_replace('_',' ',$r['verification_status']))) ?></span></td><td class="px-5 py-4"><?= $r['is_online']?'<span class="text-emerald-600">Online</span>':'<span class="text-slate-400">Offline</span>' ?></td><td class="px-5 py-4 text-right"><?php if($r['verification_status']!=='verified'): ?><form action="/admin/practitioners/<?= $r['id'] ?>/approve" method="post" class="inline"><?= csrf_field() ?><button class="rounded-lg bg-teal-600 px-3 py-2 text-xs font-bold text-white">Verify</button></form><?php else: ?><span class="text-xs font-semibold text-emerald-600">Verified ✓</span><?php endif; ?></td></tr><?php endforeach; ?></tbody></table></div></div></div>
