<?php
   require_once("header.php");
   require_once("menu.php");
   
?>
<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;Video Section

                                   
                                        <a  href="add_video.php" class="btn btn-primary btn-sm float-right add_right">EDIT INFORMATION</a>
                                       
                                
            
         </div>
         <div class="card-body">
            <div class="table-responsive">
                  <?php
                  $ex = $obj->view_video_section();
                  while($row=mysqli_fetch_array($ex))
                  {
                  ?>
               <table class="table table-bordered" width="100%" cellspacing="0">
                  <tr>
                     <th>Video</th>
                     <td>
					   <video  class="vidak"  controls="true" muted defaultmuted playsinline style="width: 50%;">
									<source src="<?php echo $row['home_video'];?>" type="video/mp4">
					   </video>
					 </td>
                  </tr>
                  <tr>
                     <th>Video Description</th>
                     <td> 
						<?php echo $row['home_video_text'];?>
					 </td>
                  </tr>
                 
                  
                  <?php } ?>
               </table>
            </div>

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