<?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 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 Request</a>
                  </li>
                  <li class="breadcrumb-item active">Issue 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-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>Issues No</th>
										<th>Issues Date</th>
										<!--<th>Issues Time</th>-->
										<th>DC No</th>
										<th>Outlet</th>
										<th>View</th>
									</tr>
                                </thead>
                                <tbody>
								<?php 
								$i=1;
								foreach($issues_list as $islist)
									{
									?>
                                <tr>
                                    <td><?php echo $i; ?></td>
									<td><?php echo $islist->pr_req_no; ?></td>
									<td><?php echo $islist->request_date; ?></td>
									<td><?php echo $islist->issue_no; ?></td>
									<td><?php echo $islist->issue_date; ?></td>
									<!--<td><?php //echo $islist->issue_time; ?></td>-->
									<td><?php echo $islist->invoice_no; ?></td>
									<td><?php echo $islist->outlet; ?></td>
									<td class="uk-text-nowrap">
									    <?php if($islist->outlet=='NB'){
									        ?>
									     <a href="<?php echo site_url('ProductRequest/issuePTaxView/'. $islist->issue_id); ?>" target="_blank" class=""> <i class='ft-eye'></i></a>
									   
									   <?php
									        
									    }else{ ?>
										<a href="<?php echo site_url('ProductRequest/issuePView/'. $islist->issue_id); ?>" target="_blank" class=""> <i class='ft-eye'></i></a>
									    <?php } ?>
									</td>
								</tr>
									<?php 
									$i++;
									} ?>     
                                 
                            </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>
	$('.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>