<?php
   require_once("header.php");
   require_once("menu.php");
   $databaseService = new DatabaseService();
   $con = $databaseService->getConnection();
?>
<style>
   th {
   width: 20%;
   }
</style>
<div id="layoutSidenav_content">
<main class="mt-4">
   <div class="container-fluid">
      <div class="card mb-4">
         <div class="card-header">
            <i class="fas fa-border-style"></i>  &nbsp;Home Page Information

                                    
                                    
            
         </div>
         <div class="card-body">
            <div class="table-responsive">
               <h6>Top Banner Section</h6>
               <table class="table table-bordered" width="100%" cellspacing="0">
                <?php 
                                   $ex = $obj->get_home_top_banner();
								   $row1 = mysqli_fetch_array($ex);
                                    ?>
                  
                  <tr>
                     <th>Top Banner Image</th>
                     <td><img src="<?php echo $row1['banner_img'];?>" height="auto" width="300px"></td>
                  </tr>
				  <tr>
                     <th>Top Banner Main Text</th>
                     <td><?php echo $row1['banner_main_text'];?></td>
                  </tr>
                   <tr>
                     <th>Top Banner Animated Text</th>
                     <td><?php echo $row1['banner_animated_text'];?></td>
                  </tr>
				  <tr>
                     <th>Top Banner Text</th>
                     <td><?php echo $row1['banner_text'];?></td>
                  </tr>
				  <tr>
                     <th>Banner Button Link</th>
                     <td><?php echo $row1['banner_link'];?></td>
                  </tr>
                  
               </table>
			   <a href="add_home.php" class="btn btn-primary btn-sm float-right add_right">Edit Home Data</a>
                                    
            </div>

         </div>
      </div>
   </div>
</main>
<?php require_once("footer.php");?>