<div class="mx-auto max-w-7xl"><div class="mb-6"><h2 class="font-display text-2xl font-extrabold">Credential Review</h2><p class="mt-2 text-sm text-slate-500">Review submitted professional credentials before enabling or maintaining dispatch eligibility.</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">Credential</th><th class="px-5 py-3 text-left">Issuer</th><th class="px-5 py-3 text-left">Expires</th><th class="px-5 py-3 text-left">Status</th><th class="px-5 py-3 text-right">Review</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"><?= esc($r['practitioner_name']) ?></div><div class="mt-1 text-[11px] text-slate-400"><?= esc($r['profession']) ?></div></td><td class="px-5 py-4"><div><?= esc($r['credential_type']) ?></div><div class="mt-1 text-[11px] text-slate-400"><?= esc($r['credential_number'] ?: '') ?></div></td><td class="px-5 py-4"><?= esc($r['issuer'] ?: '—') ?></td><td class="px-5 py-4"><?= esc($r['expires_at'] ?: '—') ?></td><td class="px-5 py-4"><span class="rounded-full bg-slate-100 px-2.5 py-1 text-[10px] font-bold"><?= esc(ucfirst($r['status'])) ?></span></td><td class="px-5 py-4 text-right"><?php if($r['status']==='pending'): ?><div class="flex justify-end gap-2"><form action="/admin/credentials/<?= $r['id'] ?>/verified" method="post"><?= csrf_field() ?><button class="rounded-lg bg-teal-600 px-3 py-2 text-xs font-bold text-white">Verify</button></form><form action="/admin/credentials/<?= $r['id'] ?>/rejected" method="post"><?= csrf_field() ?><button class="rounded-lg border border-rose-200 px-3 py-2 text-xs font-bold text-rose-600">Reject</button></form></div><?php else: ?><span class="text-xs text-slate-400">Reviewed</span><?php endif; ?></td></tr><?php endforeach; ?></tbody></table></div></div></div>
