hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
wjcvelqp
/
public_html
/
vc
/
Upload FileeE
HOME
<?php require_once __DIR__ . '/includes/bootstrap.php'; $states=[]; try{ $states=db()->query('SELECT s.*, (SELECT COUNT(*) FROM local_governments lg WHERE lg.state_id=s.id) AS lga_count FROM states s ORDER BY s.name')->fetchAll(); }catch(Throwable $e){} $page_title='Location directory — '.VC_APP_NAME;$nav='communities'; include __DIR__.'/includes/header.php'; ?> <div class="page"><div class="container"> <div class="page-header"><h1>States & locations</h1> <p class="muted">Nigeria’s 36 states and the FCT. Expand LGAs and communities via seed/import scripts.</p></div> <div class="grid grid-2 grid-3"> <?php foreach($states as $s):?> <article class="card"><div class="card-body"> <h3><?= e($s['name']) ?></h3> <div class="meta"><?= (int)$s['lga_count'] ?> LGA(s) in database</div> <a href="<?= e(url('communities.php?state_id='.(int)$s['id'])) ?>">View communities →</a> </div></article> <?php endforeach;?> </div></div></div> <?php include __DIR__.'/includes/footer.php'; ?>