hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
wjcvelqp
/
public_html
/
vc
/
Upload FileeE
HOME
<?php require_once __DIR__ . '/includes/bootstrap.php'; $id=(int)($_GET['id']??0);$row=null; try{ $st=db()->prepare("SELECT p.*, st.name AS state_name, lg.name AS lga_name, u.full_name AS proposer FROM development_projects p LEFT JOIN states st ON st.id=p.state_id LEFT JOIN local_governments lg ON lg.id=p.lga_id LEFT JOIN users u ON u.id=p.user_id WHERE p.id=? LIMIT 1"); $st->execute([$id]);$row=$st->fetch()?:null; if($row && !in_array($row['status'],['approved','ongoing','completed'],true) && !(auth_check()&&((int)$row['user_id']===auth_id()||is_admin()))){ $row=null; } }catch(Throwable $e){} if(!$row){flash('error','Project not found.');redirect('development-projects.php');} $page_title=$row['title'].' — '.VC_APP_NAME;$nav='projects'; include __DIR__.'/includes/header.php'; ?> <div class="page"><div class="container"> <div class="breadcrumb"><a href="<?= e(url('development-projects.php')) ?>">Projects</a> / <?= e($row['title']) ?></div> <div class="detail"> <h1><?= e($row['title']) ?></h1> <p class="muted"><span class="chip"><?= e($row['status']) ?></span> · <?= e($row['category']??'') ?> · <?= e($row['state_name']??'') ?><?= $row['lga_name']?' / '.e($row['lga_name']):'' ?></p> <div style="white-space:pre-wrap"><?= e($row['description']) ?></div> <?php if($row['expected_impact']):?><h3>Expected impact</h3><div style="white-space:pre-wrap"><?= e($row['expected_impact']) ?></div><?php endif;?> <?php if($row['estimated_budget']):?><p><strong>Estimated budget:</strong> <?= money_ngn($row['estimated_budget']) ?></p><?php endif;?> <?php if($row['organization']):?><p><strong>Organization:</strong> <?= e($row['organization']) ?></p><?php endif;?> <p class="muted">Proposed by <?= e($row['proposer']??'Member') ?> · <?= e(format_date($row['created_at'])) ?></p> <p class="muted">This page does not claim funding has been received unless independently verified.</p> </div></div></div> <?php include __DIR__.'/includes/footer.php'; ?>