<?php 
	$header_file=APPPATH.'views/include/header.php';
	require($header_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">Issue Pending List</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="#">Product Issue</a>
                  </li>
                  <li class="breadcrumb-item active">Issue Pending List
                  </li>
                </ol>
              </div>
            </div>
          </div>
        
        </div>
        <div class="content-body"><!-- Zero configuration table -->
<section id="configuration">
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <!--<div class="card-header">
                    <h4 class="card-title">Issue Closed List</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 card-dashboard">
                        <div class="table-responsive">
						    <table class="table table-striped table-bordered dataex-html5-export">
                                <thead>
                                    <tr>
                                        <th>Sl No</th>
										<th>Request No</th>
										<th>Request Date</th>
										<th>Outlet Name</th>
										<th>Order Type</th>
										<th>Status</th>
										<th>Approval Date</th>
										<th>View REQ</th>
										
									</tr>
                                </thead>
                                <tbody>
								 <?php
									$count =1;
									foreach($iss_list as $islist)
									{
								?>
                                <tr>
                                    <td><?php echo $count; ?></td>
                                    <td><?php echo $islist->pr_req_no; ?></td>
									<td><?php echo $islist->request_date; ?></td>
									<td><?php  $branchname=$islist->branchname; 
										$q6 = $this->db->query("SELECT * from user where branch_name='$branchname'");
										foreach($q6->result_array() as $r6)
											echo $r6['username'];

									?></td>
									<td><?php echo $islist->orders; ?></td>
									<?php
										if($islist->status == 'Pending') {
									?>
									<td class="pending_data"><span class="badge badge-danger"><?php echo $islist->status; ?></span></td>
									<?php
										} else {
									?>	
									<td class="success_data"><span class="badge badge-success"><?php echo $islist->status; ?></span></td>
									<?php
										}
									?>
									<td><?php echo date('d-m-Y',strtotime($islist->approval_date)); ?></td>
									<td class="uk-text-nowrap">
										<a href="<?php echo site_url('ProductRequest/prdProductView/'. $islist->request_id); ?>" class="btn btn-sm btn-info"> View</a>
									</td>
									
								</tr>
                                    
                                   <?php
								  $count++;
								}
							  
							?>
                            </table>
							
									
								
							
						</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/ Zero configuration table -->



<!--/ Language - Comma decimal place table -->

        </div>
      </div>
    </div>
    <!-- END: Content-->

   <?php //require('include/theme_customizer.php');?>
 <?php 
  $footer_file=APPPATH.'views/include/footer.php';
	require($footer_file);
	?>
	
<script>
	$('#submit3').click(function() {
		var req_remark = $('#req_remark').val();
		var req_id = $('#request_id').val();
		if(req_remark == '')
		{
			alert("Please Enter Remarks");
			return false;
		}
		else
		{
			$.ajax({
				type: "POST",
				dataType:'json',
				data : { req_id : req_id, req_remark : req_remark },
				url: "<?php echo base_url();?>index.php/ProductRequest/requestRmkissUpdate",
				success: function(dataz) { 
					setTimeout(function() {
						window.location.href = '<?php echo site_url('ProductRequest/issuePendingList');?>';
					}, 200);
				}
			});
		}
	});
</script>
<script>
	$('.param_check').each(function() { $(this).on( {'click contextmenu': function() {
		//contextmenu
		var i = $(this).data('value');
		var anchor = $("a");
		var anchorTarget = $(this).parent().find('.parmetre').val();
		var submodid = $(this).parent().find('.submod_id').val();
		var link = $(this).attr('href');
		$(this).attr("href", link + submodid +'/'+anchorTarget);

		location.reload();
	}
	})
	})
</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>