<?php require('include/header.php');?>

   <?php require('include/sidenav.php');?>

   
    <!-- BEGIN: Content-->
    <div class="app-content content">
      <div class="content-overlay"></div>
      <div class="content-wrapper">
        <div class="content-header row">
          <div class="content-header-left col-md-12 col-12 mb-2 breadcrumb-new">
            <h3 class="content-header-title mb-0 d-inline-block">User Access</h3>
            <div class="row breadcrumbs-top d-inline-block">
              <div class="breadcrumb-wrapper col-12">
                <ol class="breadcrumb">
                  <li class="breadcrumb-item"><a href="index-2.html">Home</a>
                  </li>
                  <li class="breadcrumb-item"><a href="#">User</a>
                  </li>
                  <li class="breadcrumb-item active">User Access
                  </li>
                </ol>
              </div>
            </div>
          </div>
          
        </div>
        <div class="content-body"><!-- Basic form layout section start -->
<section id="basic-form-layouts">
	
	<div class="row justify-content-md-center">
		<div class="col-md-12">
			<div class="card">
				<div class="card-header">
					<h4 class="card-title" id="basic-layout-form-center">Product Indent Access</h4>
					<a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
					<div class="heading-elements">
						<ul class="list-inline mb-0">
							<li><a data-action="collapse"><i class="ft-minus"></i></a></li>
							<li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
							<li><a data-action="expand"><i class="ft-maximize"></i></a></li>
							<li><a data-action="close"><i class="ft-x"></i></a></li>
						</ul>
					</div>
				</div>
				<div class="card-content collapse show">
					<div class="card-body">
						<form class="form" action="<?php echo site_url('User/updatePrIndent'); ?>" method="POST" autocomplete="off">
							<div class="row justify-content-md-center">
								<div class="col-md-6">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Indent User</label>
											<select name="branch_id" id="branch_id" class="select2 form-control" >
												<option value="">Select Username</option>
												<?php  foreach($username as $row)
													{
														echo '<option value="'.$row->branch_id.'">'.$row->username.'</option>';
													} 
												?>
											</select>
										</div>
									</div>
								</div>
								<div class="col-md-6">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Kitchen</label>
											<select name="branch_name" id="branch_name" class="select2 form-control" >
												<option value="">Select Kitchen</option>
												<?php  foreach($username as $row)
													{
														echo '<option value="'.$row->user_id.'">'.$row->username.'</option>';
													} 
												?>
											</select>
										</div>
									</div>
								</div>
							</div>
							<div class="row justify-content-md-center">
								<div class="col-md-6">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Category</label>
											<select name="cat_id" id="cat_id" class=" form-control" >
												<option value="">Select Category</option>
												<?php  foreach($category as $crow)
													{
												?>
													<option value="<?php echo $crow->pr_cat_id ?>"><?php echo $crow->pr_cat_name ?></option>
												<?php
													} 
												?>
											</select>
										</div>
									</div>
								</div>
								<div class="col-md-6">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Product</label>
											<select name="pname[]" id="pname" class="form-control select2" multiple="multiple">
												<option value="0">Select Product</option>
												<?php  foreach($recipe as $rcrow)
													{
												?>
													<option value="<?php echo $rcrow->recipe_no ?>" class="<?php echo $rcrow->pr_cat_id ?>" ><?php echo $rcrow->rname ?></option>
												<?php
													} 
												?>
											</select>
										</div>
									</div>
								</div>
							</div>
							
							<div class="form-actions text-right">
								<button type="reset" class="btn btn-warning mr-1">
									<i class="ft-x"></i> Reset
								</button>
								<button type="submit" class="btn btn-primary">
									<i class="la la-check-square-o"></i> Save
								</button>
							</div>
						</form>	

					</div>
				</div>
			</div>
		</div>
	</div>

</section>
<!-- // Basic form layout section end -->
        </div>
      </div>
    </div>
    <!-- END: Content-->


   <?php //require('include/theme_customizer.php');?>

   <?php require('include/footer.php');?>
   
   <script src="https://code.jquery.com/jquery-latest.min.js"></script>
    <script src="https://www.jqueryscript.net/demo/Simple-jQuery-Plugin-For-Chained-Selects-Chained/jquery.chained.js?v=0.9.4"></script>
   <script>
		$(document).ready(function() {
			$("#pname").chained("#cat_id");
		});
	</script>
 </body>
  <!-- END: Body-->

<!-- Mirrored from pixinvent.com/modern-admin-clean-bootstrap-4-dashboard-html-template/html/ltr/vertical-modern-menu-template/form-layout-basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Apr 2020 09:38:02 GMT -->
</html>