<?php include 'topmost.php';?>
<!DOCTYPE html><html lang="en"><head>
<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="">
<meta name="author" content="">

    <title>My Outlet</title>
    <?php  include 'toplinks.php';  ?>
</head>
<body id="page-top"><div id="wrapper"><?php  include 'menus.php';  ?>

        

<?php include 'top.php';   ?>



                <!-- End of Topbar -->

                <!-- Begin Page Content -->
                <div class="container-fluid">

                    <!-- Page Heading -->
                    <div class="d-sm-flex align-items-center justify-content-between mb-4">
<?php  include 'greet.php';  ?><?php  include 'process.php';  ?>

                       <!--  <a href="#" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i
                                class="fas fa-download fa-sm text-white-50"></i> Generate Report</a> -->
                    </div>

                    <!-- Content Row -->


<?php include 'top_stats.php'; ?>

                    

<div class="row"><div class="col-md-12">
      
<div class="card shadow mb-4">
  <div class="card-header bg-dark text-white">
<div class="row">
    <div class="col-md-10"><h6 class="m-0 font-weight-bold text-white">Way Bill Cost &amp; Restrictions</h6></div>
    <div class="col-md-2"><a class="dropdown-item" href="#" data-toggle="modal" data-target="#shop_slider"><i class="fa fa-lightbulb text-white btn btn-primary"> Add Slider</i></a></div>
</div></div></div></div><!--col-md-12-->


<?php  foreach(QueryDB("SELECT * FROM shop_slider ")as $slider){?>
<div class="col-md-4">
<div class="card shadow mb-4">
<div class="card-header bg-dark text-white"><?php  echo $slider['img_caption']; ?></div>
<div class="card-body">
<img src="../../<?php echo $slider['img_']; ?>" class="img img-thumbnail" width="100%"></div>
<div class="card-footer bg-dark text-white"><?php echo $slider['img_title'];  ?>  
<a href="?linkImg=<?php echo $slider['id']; ?>&img=<?php echo $slider['img_']; ?>" onclick="return confirm('This Slider & Its Contents will be Removed');"><i class="fa fa-trash text-danger"></i></a>
</div></div>    

</div>


<?php } ?>



  </div>
               

                </div>
                <!-- /.container-fluid -->

            </div>
            <!-- End of Main Content -->

            <!-- Footer -->
        <?php  include 'bottom_most.php'; ?>

<div class="modal fade" id="shop_slider" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog modal-center modal-sm" role="document"><div class="modal-content"><div class="modal-header bg-secondary text-white"><h5 class="modal-title " id="exampleModalLabel">#Shop Slider Upload</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">
<form action="" method="POST" enctype="multipart/form-data">
<div class="col-md-12"><input type="file" name="selImg" class="form-control" required accept=".png,.jpg"></div>
<div class="col-md-12"><textarea name="selcaption" class="form-control" required placeholder="Slider Short Title" maxlength="30"></textarea></div>
<div class="col-md-12"><textarea name="selTitle" class="form-control" required placeholder="Slider Short description" maxlength="65"></textarea></div>

<div class="form-group col-md-12 col-12 mt-3"><input type="submit" value="Load" name="send_shop_img" class="form-control btn btn-primary"></div>
</form></div></div></div></div>


</body>

</html>