<!doctype html>
<html lang="en"  class="w-[640px]">
   <head>
   <?php echo view('user/layout/head');?>
   </head>
   <body class="section-overflow">
      <!--banner start -->
      <section class="banner-bg overall-bg ">
         <div class="container">
         <?php echo view('user/layout/header');?>
         </div>
         <section class="dash-wrap coin-wrap">
            <div class="container">
               <div class="row">
                  <div class="col-12">
                  <?php 
               $this->db = db_connect();
               $session = session();
               $information= $this->db->query("SELECT * from notification_table where uusersid='".$session->get('uusersid')."' order by id desc")->getResult();
               if($information)
               {
               
               foreach($information as $row)
               {
               ?>
            <div class="trade-record">
               <div class="record-sub-heading d-flex align-items-center">
                  <iconify-icon icon="simple-icons:binance" class="text-primary me-2"></iconify-icon>
                  <h3 class="text-white fw-normal"><?php echo $row->created_date;?></h3>
               </div>
               <div class="trade-record-content d-flex text-white" style="padding:10px;justify-content:flex-start !important;">
                  <p class="mt-5 text-start"><?php echo $row->message;?></p>
               </div>
            </div>
            <?php } } else { ?>
            <div class="trade-record">
               <div class="record-sub-heading d-flex align-items-center" style="justify-content:center">
                  <h3 class="text-white fw-normal">No notifications available</h3>
               </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>
