<!doctype html>
<html lang="en" translate="no" class="w-[640px] mx-auto md:w-full">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>News Details</title>
<?php echo view('user/layout/head');?>
</head>
<style>
.img
  {
    width : 80%;
    height:200px;
    /* border:1px solid #fff;
    border-radius:0px; */
  }
  .test
  {
    margin-left : 20px;
    
  }
</style>
<body class="reg-overflow">

<section class="dash-banner-bg banner-bg">
<div class="container">
<!---header start---->
<?php echo view('user/layout/header');?>
<!---header end---->

<!---banner start---->

<div class="row">
  <div class="col-lg-12">



<div class="reward-wrap">
  <div class="title text-center py-1">
    <div class="row">
    <div class="col-lg-3 test">
        <a href="<?php echo base_url();?>/news"  class="btn btn-primary" style="border-radius:20px">back</a>
     </div>
    <div class="col-lg-7">
    <h2 class="text-primary ">Announcement Details</h2>
    </div>
   
   
    </div>
  </div>

  <?php 

if($news)
{

    $date = date('M d, Y',strtotime($news->news_date));

?>

  <div class="reg-page mt-3">
    <!--<div class="mt-5 text-center">
     <img src="<?php echo base_url();?>/assets/images/news/<?php echo $news->news_image;?>" class="img">
    </div>-->
    <div class="mt-5">
        <h3 class="text-white text-start text-uppercase"><?php echo $news->news_header;?></h3><h5 class="text-start text-white-50"><?php echo $date ;?></h5>
    </div>
    <div class="mt-5 mb-5">
        <h6 class="text-white text-justify"><?php echo ucfirst($news->news_content);?></h6>
    </div>
  </div>

  <?php } ?>



</div>
     

      
<!---banner end---->


</div>


</div>
</div>


<?php echo view('user/layout/footer');?>


</div>
</section>
<?php echo view('user/layout/footer-script');?>
</body>
</html>
