<?php

/* ==========================
   ABOUT VILLAGE
========================== */

$about = mysqli_query($conn,"
SELECT *
FROM village_about
WHERE village_id='$village_id'
LIMIT 1
");

$data = mysqli_fetch_assoc($about);

?>

<div class="about-section">

<h2 class="section-title">
<?php echo $data['title'] ?? 'About Village'; ?>
</h2>

<div class="about-box">

<div class="about-image">

<?php if(!empty($data['image'])){ ?>

<img src="/digital_panchayat/uploads/villages/<?php echo $data['image']; ?>" alt="village">

<?php } ?>

</div>

<div class="about-text">

<?php echo nl2br($data['description'] ?? 'Village information will appear here'); ?>

</div>

</div>

</div>