<?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">Chef </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="#">Chef</a>
                  </li>
                  <li class="breadcrumb-item active">Advance Order List
                  </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">Advance Order 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">

					
						<div class="table-responsive">
                            <table class="table table-striped table-bordered zero-configuration">
                                <thead>
                                    <tr>
                                        <th>Sl.No</th>   
										<th>Order No</th>
										<th>Order Date</th>
										<!--<th>Customer Name</th>-->
										<!--<th>Customer Mobile</th>-->
										<th>Delivey Date</th>
										<th>Delivey Time</th>
										<th>Food Ready</th>
										<th>Prepared By</th>
										<th>View</th>
                                    </tr>
                                </thead>
                                <tbody>
								 <?php
									$count =1;
									foreach($Advance_details as $search)
								{
								     if($search->invoice_date =="0")
    								    {
    								        $invo_date = 0;
    								    }  else {
    								        $invo_date = date('d-m-Y', strtotime($search->invoice_date));
    								    }
    									
    									$bill_date = date('d-m-Y', strtotime($search->bill_date));
    									$delivary_date = date('d-m-Y', strtotime($search->delivery_date));
								?>
                                    <tr>
                                        <td><?php echo $count ?></td>  
										<td><?php echo $search->bill_no ?></td>
										<td><?php echo $bill_date ?></td>
										<!--<td><?php echo $search->cust_name ?></td>-->
										<!--<td><?php echo $search->cust_phone ?></td>-->
										 <td><?php echo $delivary_date ?></td> 
										 <td><?php echo $search->delivery_time ?></td>
										<?php if($search->food_ready =='no')
										{ ?>
										<td class="text-danger">NO</td>
										<?php } else { ?>
										    <td class="text-success">YES</td>
										<?php } ?>
										<td><?php echo $search->prepared_by ?></td>
										<td>
										    <a href="<?php echo site_url('Sales_reports/viewadvancereceipt/').$search->bid. "/".$search->branch ?>" target="_blank"><button class="btn btn-sm btn-rounded btn-outline-success">View</button></a>
										</td>
                                    </tr>
                                    
                                   <?php
								  $count++;
								}
							  
							?>
							
                                </tbody>
                               
                            </table>
                        </div>

					</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);
	?>
  

  </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>