
<!--App Information-->
<div class="modal fade" id="shop_basics" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog modal-center modal-md" 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">
  <center><img src="../../<?php echo $getApp['comp_logo']; ?>"></center>
<div class="col-md-12"><label>Shop Favicon</label><input type="file" name="selImg" class="form-control mb-2"  accept=".png"></div>
<input type="hidden" name="existImage" value="<?php echo $getApp['comp_logo']; ?>">
<div class="col-md-12"><input type="text" name="comp_name" class="form-control mb-2" placeholder="Comp. Name" value="<?php echo $getApp['comp_name']; ?>"></div>
<div class="col-md-12"><input type="email" name="comp_email" class="form-control mb-2" required placeholder="Comp Email" value="<?php echo $getApp['comp_email']; ?>"></div>
<div class="col-md-12"><input type="text" name="comp_phone" class="form-control mb-2" required placeholder="Comp Phone Numbers" value="<?php echo $getApp['comp_phone']; ?>"></div>
<div class="col-md-12"><textarea name="comp_address" class="form-control mb-2" required placeholder="Office Address" maxlength="65"><?php echo $getApp['comp_addr']; ?></textarea></div>

<div class="col-md-12"><input type="text" name="comp_motto" placeholder="motto" class="form-control mb-2" value="<?php echo $getApp['comp_motto']; ?>"></div>

<div class="col-md-12"><textarea name="comp_about" class="form-control mb-2" required placeholder="About Business -> descr" maxlength="160"><?php echo $getApp['about_']; ?></textarea></div>

<div class="col-md-12"><input type="text" name="comp_web_title" placeholder="Web Title" class="form-control mb-2" required value="<?php echo $getApp['web_title']; ?>"></div>

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


<!--Registration-->
<div class="modal fade" id="Register" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog" role="document">
<div class="modal-content"><div class="modal-header bg-secondary text-white"><h5 class="modal-title " id="exampleModalLabel">#Customer Registration</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body"><p class="text-danger text-center"><i class="fa fa-info-circle"></i> Ensure Customer Does not Previously Exist</p><form action="" method="POST"><div class="row"><div class="form-group col-md-12"><input type="text" name="eqName" class="form-control" required placeholder="Full Name"></div><div class="form-group col-md-6"><input type="text" name="eqPhone" class="form-control" required placeholder="Phone Number" maxlength="11" minlength="11" autocomplete="off"></div>
<div class="form-group col-md-6"><input type="text" name="eqEmail" class="form-control"  placeholder="Email"></div><div class="form-group col-md-6"><select class="form-control" required name="prog_type" >
<option value="">--Customer Type-</option> <?php   foreach(mysqli_query($dbconn,"SELECT * FROM category") as $crs){echo '<option value='.$crs['id'].'>'.$crs['type'].'</option>';}?></select></div>
<div class="form-group col-md-6"><select class="form-control" required name="eqSex">
  <option value="">--Sex-</option>  <option value="M">Male</option> <option value="F">Female</option> </select></div>


<div class="col-md-6 mb-2">
<select onchange="toggleLGA(this);" name="pcountry" id="state" class="form-control" required>
              <option value="" selected="selected">- Select State-</option>
              <option value="Abia">Abia</option>
              <option value="Adamawa">Adamawa</option>
              <option value="AkwaIbom">AkwaIbom</option>
              <option value="Anambra">Anambra</option>
              <option value="Bauchi">Bauchi</option>
              <option value="Bayelsa">Bayelsa</option>
              <option value="Benue">Benue</option>
              <option value="Borno">Borno</option>
              <option value="Cross River">Cross River</option>
              <option value="Delta">Delta</option>
              <option value="Ebonyi">Ebonyi</option>
              <option value="Edo">Edo</option>
              <option value="Ekiti">Ekiti</option>
              <option value="Enugu">Enugu</option>
              <option value="FCT">FCT</option>
              <option value="Gombe">Gombe</option>
              <option value="Imo">Imo</option>
              <option value="Jigawa">Jigawa</option>
              <option value="Kaduna">Kaduna</option>
              <option value="Kano">Kano</option>
              <option value="Katsina">Katsina</option>
              <option value="Kebbi">Kebbi</option>
              <option value="Kogi">Kogi</option>
              <option value="Kwara">Kwara</option>
              <option value="Lagos">Lagos</option>
              <option value="Nasarawa">Nasarawa</option>
              <option value="Niger">Niger</option>
              <option value="Ogun">Ogun</option>
              <option value="Ondo">Ondo</option>
              <option value="Osun">Osun</option>
              <option value="Oyo">Oyo</option>
              <option value="Plateau">Plateau</option>
              <option value="Rivers">Rivers</option>
              <option value="Sokoto">Sokoto</option>
              <option value="Taraba">Taraba</option>
              <option value="Yobe">Yobe</option>
              <option value="Zamfara">Zamafara</option>
            </select>
          </div>

          <div class="col-md-6 mb-2">
           
            <select name="pstate" id="lga" class="form-control select-lga" required>
            </select>
          </div>









<div class="form-group col-md-12"><textarea class="form-control" name="eqAddress" placeholder="Address"></textarea></div><div class="form-group col-md-12">
<input type="submit" name="postReg" value="Add Customer" class="form-control btn btn-secondary">
</div></div></form>    </div><div class="modal-footer"><button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button></div></div></div></div>


<!--Add Size-->
<div class="modal fade" id="addSize" 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">#Add New Size</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"><div class="row"><div class="form-group col-md-12"><input type="text" name="Newsize" class="form-control" required placeholder="New Size"></div><div class="form-group col-md-12"><input type="submit" name="addSize" value="Add" class="form-control btn btn-secondary"></div></div></form></div></div></div></div><!--END-->

<!--NEW COLOUR-->
<div class="modal fade" id="addColour" 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">#Add New Product Colour</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"><div class="row"><div class="form-group col-md-12"><input type="text" name="NewColour" class="form-control" required placeholder="New Colour"></div><div class="form-group col-md-12"><input type="submit" name="addColour" value="Add" class="form-control btn btn-secondary">
</div></div></form></div></div></div></div>
<!--END-->

<!--ADD BRAND-->
<div class="modal fade" id="addbrand" 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">#Add a Category</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">
<p class="text-danger text-center">category is the classifications of your Product e.g. Fridge, Wood, Wine. etc.</p><form action="" method="POST" enctype="multipart/form-data"><div class="row"><div class="form-group col-md-12"><input type="text" name="brandName" class="form-control" required placeholder="category Name"></div>

<div class="form-group col-md-12"><input type="file" name="imgcategory" class="form-control" required placeholder="category Name"></div>


  <div class="form-group col-md-12"><input type="submit" name="addBrand" value="Add" class="form-control btn btn-secondary"></div></div></form></div></div></div></div>
<!--END-->


<!--Add Customer category-->
<div class="modal fade" id="cus_category" 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">#Customer Category</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">
<p class="text-danger text-center">Type of Customer. e.g. Cooperatives etc.</p><form action="" method="POST" enctype="multipart/form-data"><div class="row"><div class="form-group col-md-12"><input type="text" name="cuscategory" class="form-control" required placeholder="Customer category Name"></div><div class="form-group col-md-12"><input type="submit" name="add_cus_category" value="Add" class="form-control btn btn-secondary"></div></div></form></div></div></div></div>
<!--END-->


<!--ADD Company-->
<div class="modal fade" id="addCompany" 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 small" id="exampleModalLabel">#Company/Supplier</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">
<p class="text-danger text-center">Company Name like Thermocool, Samsung,Vostro etc.</p><form action="" method="POST" enctype="multipart/form-data"><div class="row"><div class="form-group col-md-12"><input type="text" name="compName" class="form-control" required placeholder="Company Name"></div>

<div class="form-group col-md-12"><input type="file" name="imgcategory" class="form-control" required placeholder="category Name"></div>

  <div class="form-group col-md-12"><input type="submit" name="addCompany" value="Add" class="form-control btn btn-secondary"></div></div></form></div></div></div></div>
<!--END-->


<!--Add Pay Route-->
<div class="modal fade" id="addPayRoute" 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 small" id="exampleModalLabel">#Pay Route</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">
<p class="text-danger text-center">Payment Options</p><form action="" method="POST"><div class="row"><div class="form-group col-md-12"><input type="text" name="compName" class="form-control" required placeholder="e.g Moniepoint" max="10" minlength="3"></div>

<div class="form-group col-md-12"><label>Outlet</label><select name="itemBranch" class="form-control col-md-12"  style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM branch where status=1 ORDER BY shrt_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['shrt_name'].'</option>'; }?></select></div>

  <div class="form-group col-md-12"><input type="submit" name="addRoute" value="Add" class="form-control btn btn-secondary"></div></div></form></div></div></div></div>
<!--END-->

<!--ADD NEW BRANCH-->
<div class="modal fade" id="addbranch" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog modal-center modal-md" role="document"><div class="modal-content"><div class="modal-header bg-primary text-white"><h5 class="modal-title small" id="exampleModalLabel">#Add a Branch</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">
<?php echo '<div class="row">
<div class="col-md-6 mb-2"><label>Branch Name</label><input type="text" name="shtName" class="form-control" required></div>
<div class="col-md-6"><label>Phone Number</label><input type="text" name="phNumb" class="form-control mb-2" required></div>
<div class="col-md-12"><label>Receipt Address</label><input type="text" name="adrs" class="form-control mb-2" required></div>  
<div class="col-md-12"><label>Receipt Name</label><input type="text" name="RcptName" class="form-control mb-2" required></div> 
<div class="col-md-12"><label>Email & Website</label><input type="email" name="eml" class="form-control mb-2"></div> 
 <div class="col-md-12"><label>Motto</label><input type="text" name="motto" class="form-control mb-2"></div> 
 <div class="col-md-12"><input type="file" accept=".jpg" name="getImage" class="form-control mb-2" required></div> 
</div>';?>
   <div class="form-group col-md-12"><input type="submit" name="add_new_branch" value="Add Branch" class="form-control btn btn-secondary"></div></div></form>
</div></div></div></div>

<!--END-->

<!--ADD Company-->
<div class="modal fade" id="addProduct" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog modal-center" role="document">
<div class="modal-content"><div class="modal-header bg-secondary text-white"><h5 class="modal-title" id="exampleModalLabel">#Add Product</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">
<p class="text-danger text-center">ADD THE VARIOUS PRODUCTS YOUR SELL</p><form action="" method="POST"><div class="row"><div class="form-group col-md-8"><input type="text" name="prodname" class="form-control" required placeholder="Product Name e.g. LK100 or 3.75KVA"></div>
<div class="form-group col-md-4"><input type="text" name="cost" class="form-control" required placeholder="cost" onkeypress="return isNumberKey(event)"></div>
  <div class="form-group col-md-6"><select class="form-control" required name="company"><?php 
  for($i=0;$i<count($company);$i++){echo '<option value='.$i.'>'.$company[$i].'</option>';
  }?></select></div><div class="form-group col-md-6"><select class="form-control" required name="brand">
<option value="">--Category--</option> <?php for($i=0;$i<count($brand);$i++){echo '<option value='.$i.'>'.$brand[$i].'</option>';}?></select></div><div class="form-group col-md-6"><select class="form-control" required name="size"><option value="">--Sized By-</option> <?php for($i=0;$i<count($sized_by);$i++){echo '<option value='.$i.'>'.$sized_by[$i].'</option>';}?></select></div><div class="form-group col-md-6"><select class="form-control" required name="color"><option value="">--Colour--</option> <?php 
  for($i=0;$i<count($colored_by);$i++){echo '<option value='.$i.'>'.$colored_by[$i].'</option>';
  }?></select></div>
<div class="col-md-12"><textarea class="form-control" placeholder="Product Description" name="item_desc" maxlength="160" minlength="10" ></textarea></div>

<div class="col-md-12 mt-2"><textarea class="form-control content" rows="5" placeholder="Product Details" name="item_details" maxlength="160" minlength="10" required></textarea></div>


  <div class="form-group col-md-12"><input type="submit" name="addProduct" value="Add Product" class="form-control btn btn-secondary"></div></div></form></div></div></div></div>
<!--END-->

<!--Load Item--> 
<div id="loadItem" class="modal fade" role="dialog"><div class="modal-dialog modal-md"><div class="modal-content"><div class="modal-header bg-secondary"><h4 class="modal-title  text-white small"><strong><span class="bg-primary text-white">#</span> LOAD ITEM/PRODUCT</strong></h4></div><div class="modal-body"><form action="" method="POST"><div class="row"> <p id="showProdInfo"></p><div class="form-group col-md-12"><label>Item</label><select name="itemName" class="form-control col-md-12 myselect_" id="getInfo" style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM products where tm_status=1 ORDER BY item_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['item_name'].'-'.$sized_by[$rows['size']].' '.$colored_by[$rows['color']].','.$brand[$rows['brand']].' by <b>'.$company[$rows['company']].'</b></option>'; }?></select></div><div class="form-group col-md-12"><label>Quantity</label><input type="number" name="qty" class="form-control"></div><div class="form-group col-md-12"><button type="submit" name="stockUp" class="form-control btn btn-secondary">Load Store</button></div></div></form></div><div class="modal-footer"></div></div></div></div>
<!--END-->

<!--Distribute Stocks-->
<div id="distribute" class="modal fade" role="dialog"><div class="modal-dialog modal-md"><div class="modal-content"><div class="modal-header bg-secondary"><h4 class="modal-title  text-white small"><strong><span class="bg-primary text-white">#</span> Supply Stocks</strong></h4></div><div class="modal-body"><form action="" method="POST"><input type="hidden" name="real_value" class="show_my_stk_bal"><div class="row"> <p class="text-center"><strong>Quantity Left: <span class="text-danger show_my_stk_bal"></span></strong></p>  <div class="form-group col-md-12"><label>Item</label><select name="itemName" class="form-control col-md-12 myselect_" id="showStkBal" style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM products where tm_status=1 ORDER BY item_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['item_name'].'-'.$sized_by[$rows['size']].' '.$colored_by[$rows['color']].','.$brand[$rows['brand']].' by <b>'.$company[$rows['company']].'</b></option>'; }?></select></div><div class="col-md-12"><div class="row" id="showInput"><div class="form-group col-md-4"><label>Quantity</label><input type="number" name="qty" class="form-control"></div>
  <div class="form-group col-md-8"><label>Supply to</label><select name="itemBranch" class="form-control col-md-12"  style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM branch where status=1 ORDER BY shrt_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['shrt_name'].'</option>'; }?></select></div></div></div><div class="form-group col-md-12"><button type="submit" name="supply_stock" class="form-control btn btn-secondary">LOAD WHAREHOUSE</button></div></div></form></div><div class="modal-footer"></div></div></div></div>
<!--end-->

<!--Buy Item-->
<div id="addPurchase" class="modal fade" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header bg-primary"><h4 class="modal-title  text-white">PRODUCT SALES</h4></div><div class="modal-body"> 


</div>
<div class="modal-footer"><button type="button" class="btn btn-danger"data-bs-dismiss="modal">Close</button></div></div></div></div>



<!--VIEW PRODUCT STOCK HISTORY-->
<div class="modal fade" id="viewProdStats" 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">#Product Stocking</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"><div class="row"><div class="form-group col-md-12">
<select class="form-control" name="viewProd">
<?php foreach(QueryDB("SELECT * FROM products ORDER BY item_name ASC")as $prd){
echo '<option value="'.$prd['id'].'">'.$prd['item_name'].'</option>';
}?></select></div><div class="form-group col-md-12"><input type="submit" name="addSize" value="Add" class="form-control btn btn-secondary"></div></div></form></div></div></div></div>


<!--View Customer-->
<div class="modal fade" id="view_cust_set" 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">#Customer View</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="manage_reg" method="POST"><div class="form-group col-md-12"><select class="form-control" name="eqCourse"><option value="">--Cust. Type-</option> <?php   foreach(QueryDB("SELECT * FROM category") as $crs){?><option value="<?php echo $crs['id'];  ?>"    ><?php echo ($crs['type']);  ?></option><?php } ?></select></div><div class="form-group col-md-12"><select class="form-control"  name="month" ><option value="">--choose Month-</option> <?php   for($i=1;$i<13;$i++){?><option value="<?php echo $i;  ?>"    ><?php echo monthName($i);  ?></option><?php } ?></select></div><div class="form-group col-md-12"><input type="text" name="year" placeholder="year" maxlength="4" minlength="4" class="form-control"></div><input type="submit" name="sendFilter" value="Filter" class="form-control btn btn-warning col-md-12"></div></form></div></div></div></div>












<div class="modal fade" id="fInventory" 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">#Filter Payment</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="?view_setItem" method="POST"><div class="form-group col-md-12"><label>FROM</label>
<input type="date" required name="from" class="form-control"></div><div class="form-group col-md-12"><label>TO</label><input required type="date" name="to" class="form-control"></div>
<input type="submit" name="sendFilterInv" value="Filter" class="form-control btn btn-warning col-md-12"></form></div></div></div></div>

<!--Filter Payment Sales-->
<div class="modal fade" id="fInventory_sales" 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">#Filter Payment</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="?view_setItem" method="POST"><div class="form-group col-md-12"><label>FROM</label>
<input type="date" required name="from" class="form-control"></div><div class="form-group col-md-12"><label>TO</label><input required type="date" name="to" class="form-control"></div>
<input type="submit" name="sendFilterInv_sales" value="Filter" class="form-control btn btn-warning col-md-12"></form></div></div></div></div>

<!--SALES HISTORY-->
<div class="modal fade" id="filterSalesHistory" 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" >#Filter Sales History</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="?salesHistory" method="POST"><div class="form-group col-md-12"><label>FROM</label><input type="date" required name="from" class="form-control"></div><div class="form-group col-md-12"><label>TO</label><input required type="date" name="to" class="form-control"></div>
<div class="form-group col-md-12"><label>Branch</label><select name="itemBranch" class="form-control col-md-12"  style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM branch where status=1 ORDER BY shrt_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['shrt_name'].'</option>'; }?></select></div>
  <input type="submit" name="filterSalesHistory" value="Filter" class="form-control btn btn-warning col-md-12"></form></div></div></div></div>
<!--END-->


<!--SALES HISTORY-->
<div class="modal fade" id="filterSalesHistoryBranch" 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 small" id="exampleModalLabel" >#Filter Sales History</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="?salesHistory" method="POST"><div class="form-group col-md-12"><label>FROM</label><input type="date" required name="from" class="form-control"></div><div class="form-group col-md-12"><label>TO</label><input required type="date" name="to" class="form-control"></div><input type="submit" name="filterSalesHistory" value="Filter" class="form-control btn btn-warning col-md-12"></form></div></div></div></div>
<!--END-->



<!--LOAD History-->
<div class="modal fade" id="load_history" 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"><h6 class="modal-title small" id="exampleModalLabel" ><span class="bg-warning text-white">&nbsp;#&nbsp;</span>Filter Product Supply History</h6><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body"><form action="?view_load_hstory" method="POST">
<input type="hidden" name="prodItem" value="<?php echo @$_SESSION['sel_product'];  ?>">
  <div class="form-group col-md-12"><label>FROM</label><input type="date" required name="from" class="form-control"></div><div class="form-group col-md-12"><label>TO</label><input required type="date" name="to" class="form-control"></div>
<div class="form-group col-md-12"><label>Branch to</label><select name="itemBranch" class="form-control col-md-12"  style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM branch where status=1 ORDER BY shrt_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['shrt_name'].'</option>'; }?></select></div>
  <input type="submit" name="loadHist" value="Filter" class="form-control btn btn-warning col-md-12"></form></div></div></div></div>


<!--END-->


<!--ADD STAFF-->
<div class="modal fade" id="addStaff" 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" >#Add Staff</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"><div class="form-group col-md-12">
<input type="text" required name="username" id="username"  placeholder="username"  class="form-control"></div><div class="form-group col-md-12">
<input type="text" required name="name"   placeholder="Full Name"  class="form-control"></div><div class="form-group col-md-12">
<select name="act_type" class="form-control" required><option value="1">Attendant</option>
  <option value="3">Outlet Manager</option>
  <option value="2">General Manager</option>

</select></div>
<div class="form-group col-md-12">
<select name="gender" class="form-control" required><option value="M">Male</option><option value="F">Female</option></select></div>
<div class="form-group col-md-12"><label>Assign Branch</label><select name="itemBranch" class="form-control col-md-12"  style="width:100%;" required><option value="">-Select-</option><?php foreach(QueryDB("SELECT * FROM branch where status=1 ORDER BY shrt_name ASC  ") as $rows){echo '<option value="'.$rows['id'].'">'.$rows['shrt_name'].'</option>'; }?></select></div>
<input type="submit" name="adStf" value="Add" class="form-control btn btn-warning col-md-12"></form></div></div></div></div>

<!--Filter Product--> 
<div class="modal fade" id="filterProduct" 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" >#Filter Product</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="products" method="POST"><div class="form-group col-md-12">
<select class="form-control"  name="eqCourse"><option value="">--Loader-</option> <?php   foreach(QueryDB("SELECT * FROM login") as $crs){?>
<option value="<?php echo $crs['username'];  ?>"    ><?php echo ($crs['name']);  ?></option><?php } ?></select></div><div class="form-group col-md-12">
<input type="date" name="date" placeholder="year" maxlength="4" minlength="4" class="form-control"></div><input type="submit" name="sendFilter" value="Filter" class="form-control btn btn-warning col-md-12"></div></form></div></div></div></div>

<!--logout-->
<div class="modal fade" id="addEnquiryNN" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog" role="document">
<div class="modal-content"><div class="modal-header"><h5 class="modal-title text-danger" id="exampleModalLabel">Ready to Leave?</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">Select "Logout" below if you are ready to end your current session.</div><div class="modal-footer"><button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button><a class="btn btn-primary" href="<?php  if(isset($_SESSION['sales'])){ echo 'login';}else{
  echo '../login';
} ?>">Logout</a></div></div></div></div>

<!--Change Password-->
<div class="modal fade" id="settings" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"aria-hidden="true"><div class="modal-dialog modal-sm" role="document"><div class="modal-content"><div class="modal-header bg-dark"><h5 class="modal-title text-white" id="exampleModalLabel">#Change Password</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">
<div class="form-group"><input type="password" autocomplete="off" name="newPass" class="form-control" placeholder="New Password"></div><div class="form-group"><input type="password" name="newPass2" class="form-control" autocomplete="off" placeholder="Repeat Password"></div><input type="submit" name="changePass" class="btn btn-danger form-control" value="Change Password"></form></div><div class="modal-footer"><button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button></div></div></div></div>
