<!doctype html>
<html lang="en"  class="w-[640px]">
   <head>
   <?php echo view('user/layout/head');?>
   </head>
   <style>
      .img
      {
      width : 80%;
      height:200px;
      /* border:1px solid #fff;
      border-radius:0px; */
      }
      .test
      {
      margin-left : 20px;
      }
      .reg-page {
	/* background: rgb(0, 0, 0); */
	padding: 0px 25px;
	border-radius: 20px;
	border: 1px solid #fff;
}
   </style>
   <body class="section-overflow">
      <!--banner start -->
      <section class="banner-bg overall-bg ">
         <div class="container">
         <header class="pt-3 pb-3">
               <div class="row">
                  <div class="col-1">
                     <div class="back-arrow">
                        <a href="<?php echo base_url();?>/news">
                           <iconify-icon icon="bi:arrow-left-circle-fill"></iconify-icon>
                        </a>
                     </div>
                  </div>
                  <div class="col-8">
                     <div class="title title-top py-2">
                        <h2 class="text-primary aleo">Announcement Details</h2>
                     </div>
                  </div>
                  <div class="col-3">
                     <div class="common-icon d-flex align-items-center justify-content-end">
                        <div class="wallet-icon header-icon me-2">
                           <a href="<?php echo base_url();?>/user/asset" class="text-decoration-none ">
                              <iconify-icon icon="ph:wallet-bold"></iconify-icon>
                           </a>
                        </div>
                        <div class="header-icon">
                           <a href="<?php echo base_url();?>/news" class="text-decoration-none">
                              <iconify-icon icon="mdi:notifications-none"></iconify-icon>
                           </a>
                        </div>
                     </div>
                  </div>
               </div>
            </header>
         
         </div>
         <section class="dash-wrap coin-wrap">
            <div class="container">
               <div class="row">
                  <div class="col-12">
                  <?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 } ?>
               <!---banner end---->
            </div>
                     
                     <!---banner end---->
                  </div>
               </div>
            </div>
         </section>
         <!--footer start -->
         <?php echo view('user/layout/footer');?>
         <!--footer end -->
      </section>
  
      <?php echo view('user/layout/footer-script');?>
      <script>
         AOS.init({
         });
      </script>
   </body>
</html>
