<?php 
	$header_file=APPPATH.'views/include/header.php';
	require($header_file);
	$sidenav_file=APPPATH.'views/include/sidenav.php';
	require($sidenav_file);	?>
   
    <!-- 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">Branch </h3>
            <div class="row breadcrumbs-top d-inline-block">
              <div class="breadcrumb-wrapper col-12">
                <ol class="breadcrumb">
                  <li class="breadcrumb-item"><a href="#">Home</a>
                  </li>
                  <li class="breadcrumb-item"><a href="#">Branch</a>
                  </li>
                  <li class="breadcrumb-item active">Branch Update
                  </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">Supplier Update</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>
				<?php foreach($supplier as $data)
				
				foreach($userdata as $udata)
				?>
				<div class="card-content collapse show">
					<div class="card-body">
						<form class="form" enctype="multipart/form-data" autocomplete="off" action="<?php echo site_url('Master/outletUpdate');?>" method="post">
							<div class="row justify-content-md-center">
							    <div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1"> Username</label>
											<input type="text" class="form-control" id="username" name="username" value="<?php echo $udata->username; ?>" >
										</div>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Customer Name</label>
											<input type="text" class="form-control" id="sname" name="sname" value="<?php echo $data->outlet; ?>" required placeholder="Customer Name">
											<input type="hidden" class="form-control" id="address_id" name="address_id" value="<?php echo $data->address_id ; ?>" >
											<input type="hidden" class="form-control" id="user_id" name="user_id" value="<?php echo $udata->user_id  ; ?>" >
											<input type="hidden" class="form-control" id="user_type" name="user_type" value="<?php echo $data->user_type  ; ?>" >
											<input type="hidden" class="form-control" id="user_group" name="user_group" value="<?php echo $data->user_group  ; ?>" >
											
											
											
											<input type="hidden" class="form-control" id="sub_mod_id" name="sub_mod_id" value="<?php //echo $submod_id; ?>" >
										</div>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1"> Code</label>
											<input type="text" class="form-control" id="bcode" name="bcode" value="<?php echo $data->code; ?>" >
										</div>
									</div>
								</div>
								
							
								
							</div>
							<div class="row justify-content-md-center">
							    <div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Description</label>
											<input type="text" class="form-control" id="description" name="description" value="<?php echo $data->description; ?>" placeholder="Description">
										</div>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Phone No</label>
											<input type="text" class="form-control" id="phone_no" name="phone_no" value="<?php echo $data->phone_no; ?>" placeholder="Phone No">
										</div>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Email ID</label>
											<input type="text" class="form-control" id="email_id" name="email_id" value="<?php echo $data->email_id; ?>" placeholder="Email ID">
										</div>
									</div>
								</div>
							</div>
							<div class="row justify-content-md-center">
							    <div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Title</label>
											<input type="text" class="form-control" id="title" name="title" value="<?php echo $data->title; ?>"  placeholder="Title">
										</div>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">GSTIN No</label>
											<input type="text" class="form-control" id="gstin_no" name="gstin_no" value="<?php echo $data->gstin_no; ?>" placeholder="GSTIN No">
										</div>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-body">
										<div class="form-group">
											<label for="eventInput1">Address</label>
											<input type="text" class="form-control" id="address1" name="address1" value="<?php echo $data->address1; ?>" placeholder="Address">
										</div>
									</div>
								</div>
								
								
							</div>
							
							
							
						
							<div class="form-actions text-center">
								<button type="reset" class="btn btn-warning mr-1">
									<i class="ft-x"></i> Cancel
								</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>
    <?php //require('include/theme_customizer.php');?>

   <?php 
  $footer_file=APPPATH.'views/include/footer.php';
	require($footer_file);
	?>
	<script type="text/javascript">
		$(function () {
			$('#branch').multiselect({
				includeSelectAllOption: true
			});
		});
	</script>
	<script>
		$("#branch").change(function(){
			   //var branch = $('#branch option:selected').text();
			var branch = $("#branch option:selected").map(function () {
			return $(this).text();
			}).get().join(',');
			//alert(branch);
			$('#branch_name').val(branch);
		});
	</script>
	<script>
	    $("input[name='rgst_msme']").click(function() {
			if($('#ryes').is(':checked'))
			{
				$('#mrgst_no').show();
			}
			else
			{
				$('#mrgst_no').hide();
			}
		});
	</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>