<commit_before><?php //echo '<pre>';print_r($orders_list);exit; ?>
<div class="wrapper"> 
  <!--header part start here -->
  <div class="jain_container">
			
		<body >
		<div class="container">
			<div class="row">
				<section class="content">
      <div class="row">
        <div class="col-xs-12">
			<div class="box">
        
            <!-- /.box-header -->
            <div class="box-body">
			<?php if($this->session->flashdata('successmsg')): ?>
						<div class="alt_cus"><div class="alert_msg animated slideInUp btn_suc"> <?php echo $this->session->flashdata('successmsg');?>&nbsp; <i class="fa fa-check text-success ico_bac" aria-hidden="true"></i></div></div>

			<?php endif; ?>
			<?php if($this->session->flashdata('permissionerror')): ?>
							<div class="alt_cus"><div class="alert_msg animated slideInUp btn_war"> <?php echo $this->session->flashdata('permissionerror');?>&nbsp; <i class="fa fa-check  text-warning ico_bac" aria-hidden="true"></i></div></div>

			<?php endif; ?>
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Order Id</th>
                  <th>Item Name</th>
                  <th>Amount</th>
                  <th>Date</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
                </thead>
                <tbody>
				<?php 
				//echo '<pre>';print_r($orders_list);exit;
				
				foreach ($orders_lists as $orders){ ?>
                <tr>
                  <td><?php echo $orders['order_item_id'] ?></td>
                  <td><?php echo $orders['item_name'] ?> </td>
                  <td><?php echo $orders['total_price'] ?></td>
                  <td><?php echo Date('d-M-Y',strtotime(htmlentities($orders['create_at'])));?></td>
                 <td>
				  <?php if($orders['order_status']==1 && $orders['status_packing']=='' && $orders['status_road']=='' && $orders['status_deliverd']==''){
					echo "Order Confirmation";  
				  }else if($orders['order_status']==1 && $orders['status_packing']==2 && $orders['status_road']=='' && $orders['status_deliverd']==''){
					  echo "Packing Order";
				  }else if($orders['order_status']==1 && $orders['status_packing']==2 && $orders['status_road']==3 && $orders['status_deliverd']==''){
					  echo "Order on Road";
				  }else if($orders['order_status']==1 && $orders['status_packing']==2 && $orders['status_road']==3 && $orders['status_deliverd']==4){
					  echo "Delivered";
				  }else{
					 echo "returned"; 
				  }
				  ?>
				
				  </td>
				  <td>
				  <a href="<?php echo base_url('customer/orederdetails/'.base64_encode($orders['order_item_id'])); ?>">view</a>
				  </td>
                </tr>
                <?php } ?>
              
                </tbody>
                <tfoot>
                <tr>
                <th>Order Id</th>
                  <th>Item Name</th>
                  <th>Amount</th>
                  <th>Date</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
                </tfoot>
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          </div>
          </section>
		  </div>
<script>
  $(function () {
    $('#example1').DataTable({
      "paging": true,
      "lengthChange": true,
      "searching": true,
      "ordering": true,
      "info": true,
      "autoWidth": false
    });
  });
</script>
			</div>
		</div>
	</div>
	</div>
	<div class="clearfix"></div>

	




		

<script type="text/javascript" src="<?php echo base_url(); ?>assets/home/js/common.js"></script> 
<script type="text/javascript" src="<?php echo base_url(); ?>assets/home/js/owl.carousel.min.js"></script> 

<!-- the overlay element --> 

<script src="<?php echo base_url(); ?>assets/home/js/classie.js"></script> 
<script src="<?php echo base_url(); ?>assets/home/js/modalEffects.js"></script> 

 <commit_msg>order details page error purpose<commit_after><?php //echo '<pre>';print_r($orders_list);exit; ?>
<div class="wrapper"> 
  <!--header part start here -->
  <div class="jain_container">
			
		<body >
		<div class="container">
			<div class="row">
				<section class="content">
      <div class="row">
        <div class="col-xs-12">
			<div class="box">
        
            <!-- /.box-header -->
            <div class="box-body">
			<?php if($this->session->flashdata('successmsg')): ?>
						<div class="alt_cus"><div class="alert_msg animated slideInUp btn_suc"> <?php echo $this->session->flashdata('successmsg');?>&nbsp; <i class="fa fa-check text-success ico_bac" aria-hidden="true"></i></div></div>

			<?php endif; ?>
			<?php if($this->session->flashdata('permissionerror')): ?>
							<div class="alt_cus"><div class="alert_msg animated slideInUp btn_war"> <?php echo $this->session->flashdata('permissionerror');?>&nbsp; <i class="fa fa-check  text-warning ico_bac" aria-hidden="true"></i></div></div>

			<?php endif; ?>
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Order Id</th>
                  <th>Item Name</th>
                  <th>Amount</th>
                  <th>Date</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
                </thead>
                <tbody>
				<?php 
				//echo '<pre>';print_r($orders_list);exit;
				
				foreach ($orders_lists as $orders){ ?>
                <tr>
                  <td><?php echo $orders['order_item_id'] ?></td>
                  <td><?php echo $orders['item_name'] ?> </td>
                  <td><?php echo $orders['total_price'] ?></td>
                  <td><?php echo Date('d-M-Y',strtotime(htmlentities($orders['create_at'])));?></td>
                 <td>
				  <?php if($orders['order_status']==1 && $orders['status_packing']=='' && $orders['status_road']=='' && $orders['status_deliverd']==''){
					echo "Order confirmed ";  
				  }else if($orders['order_status']==1 && $orders['status_packing']==2 && $orders['status_road']=='' && $orders['status_deliverd']==''){
					  echo "Packing Order";
				  }else if($orders['order_status']==1 && $orders['status_packing']==2 && $orders['status_road']==3 && $orders['status_deliverd']==''){
					  echo "Order on Road";
				  }else if($orders['order_status']==1 && $orders['status_packing']==2 && $orders['status_road']==3 && $orders['status_deliverd']==4){
					  echo "Delivered";
				  }else{
					 echo "returned"; 
				  }
				  ?>
				
				  </td>
				  <td>
				  <a href="<?php echo base_url('customer/orederdetails/'.base64_encode($orders['order_item_id'])); ?>">view</a>
				  </td>
                </tr>
                <?php } ?>
              
                </tbody>
                <tfoot>
                <tr>
                <th>Order Id</th>
                  <th>Item Name</th>
                  <th>Amount</th>
                  <th>Date</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
                </tfoot>
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          </div>
          </section>
		  </div>
<script>
  $(function () {
    $('#example1').DataTable({
      "paging": true,
      "lengthChange": true,
      "searching": true,
      "ordering": true,
      "info": true,
      "autoWidth": false
    });
  });
</script>
			</div>
		</div>
	</div>
	</div>
	<div class="clearfix"></div>

	




		

<script type="text/javascript" src="<?php echo base_url(); ?>assets/home/js/common.js"></script> 
<script type="text/javascript" src="<?php echo base_url(); ?>assets/home/js/owl.carousel.min.js"></script> 

<!-- the overlay element --> 

<script src="<?php echo base_url(); ?>assets/home/js/classie.js"></script> 
<script src="<?php echo base_url(); ?>assets/home/js/modalEffects.js"></script> 

 
{'fraction_non_alphanumeric': 0.20741671904462602, 'fraction_numerical': 0.004022627278441232, 'mean_word_length': 2.0957198443579768, 'pattern_counts': {'":': 12, '<': 243, '<?xml version=': 0, '>': 259, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4424225', 'n_tokens_mistral': 2814, 'n_tokens_neox': 2481, 'n_words': 442}