<!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>System Information</title>
      <?php echo view('user/layout/head');?>
   </head>
   <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="dash-wrap">
            <div class="title text-center py-2">
               <h2 class="text-primary ">System Information</h2>
            </div>
            <?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>
           
         </div>
            </div>
      </section>
      <?php echo view('user/layout/footer');?>
      <?php echo view('user/layout/footer-script');?>
   </body>
</html>