	<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="assets/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="assets/css/main.css" rel="stylesheet" type="text/css">
	<link href="assets/css/my-custom-styles.css" rel="stylesheet" type="text/css">
		<!-- MAIN CONTENT WRAPPER -->
		<div id="main-content-wrapper" >

			<!-- main -->
			<div class="content">
				<div class="main-header">
					<h2>Purchase Order Form</h2>
					<em>Print or Download Purchase Order Form</em>
				</div>
				<div class="main-content">
					<!-- INVOICE -->
					<div class="invoice">
						<!-- invoice header -->
						<div class="invoice-header">
							<div class="row">
								<div class="col-lg-3 col-print-3">
									<img src="assets/img/kingadmin-logo.png" alt="KingAdmin Logo" />
								</div>
								
								<div class="col-lg-9 col-print-9">
									<ul class="list-inline">
										<li>Invoice #: <strong><?php echo $data['Billno'];?></strong></li>
										<li>Invoice Date: <strong><?php 
											$date=$data['ViewPurchase']->bil_date; 
											$date1=explode('-',$date);
											$year=$date1[0]; 
											$month=$date1[1];
											$dat=$date1[2];  
											echo $todates=$dat.'-'.$month.'-'.$year; 
											?></strong></li>
										<?php /* <li>Total Amount: <strong>$12,221</strong></li> */ ?>
									</ul>
								</div>
							</div>
						</div>
						<!-- end invoice header -->
						<!-- invoice address -->
						<div class="invoice-from-to">
							<div class="row">
								<div class="col-sm-6 col-print-6">
									<span>Purchase Order From:</span>
									<address>
										<p class="name"></p><br>
										<br>
										<br>
										, </br>
										PH:, </br>
										Mail:</br>
									</address>
								</div>
								<div class="col-sm-6 col-print-6">
									<span>Purchase Request to</span>
									<p class="name">{{$data['ViewPurchase']->cst_name}}.</p>
									<address>
										{{$data['ViewPurchase']->cst_address}}<br>
    					{{$data['ViewPurchase']->cst_city}}<br>
    					{{$data['ViewPurchase']->cst_state}},<br>
						{{$data['ViewPurchase']->cst_country}}<br />
						<!--
										<div class="contact">
											<p><span>Email:</span> email@example.com</p>
											<p><span>Phone:</span> (1800) 888 - 4321</p>
											<p><span>Fax:</span> (1800) 888 - 4322</p>
										</div>
						-->
									</address>
								</div>
							</div>
						</div>
						<!-- end invoice address -->

						<!-- invoice item table -->
						<div class="table-responsive">
							<table class="table invoice-table">
								<thead>
									<tr>
										<td><strong>SL No.</strong></td>
										<td><strong>Item</strong></td>
										<td class="text-center"><strong>Quantity</strong></td>
										<td class="text-right"><strong>Note</strong></td>
									</tr>		
								</thead>
								<tbody>
								
								<?php $slno=0;?>
    							@foreach ($data['ViewPurchaseItem'] as $Item) 
									<tr>
										<td><?php echo $slno+=1;?></td>
										<td>{{$Item->itm_name}}</td>
										<td class="text-center">{{$Item->bit_qty}}</td>
										<td>{{$Item->bit_disctype}}</td>
									</tr>
								@endforeach 						
								
								</tbody>
							</table>
						</div>
						<!-- end invoice item table -->
						
						<!-- invoice footer -->
						<div class="invoice-footer">
							<div class="row">
								<div class="col-sm-12 col-print-12 left-col">
									<blockquote class="invoice-notes">
										<strong>Notes:</strong>
										<p><?php echo $data['ViewPurchase']->bil_note; ?></p>
									</blockquote>
								</div>
							</div>
						</div>
						<!-- end invoice footer -->
						<!-- invoice action buttons -->
						<div class="invoice-buttons">
				<button class="btn btn-default print-btn"><i class="fa fa-print"></i> Print</button>
				<!-- <a href="#" class="btn btn-custom-primary"><i class="fa fa-arrow-right"></i> Download</a> -->
						</div>
						<!-- end invoice action buttons -->
					</div>
					<!-- INVOICE -->
				</div>
			</div>
			<!-- /main -->	
<!-- Javascript -->
<script src="assets/js/jquery/jquery-2.1.0.min.js"></script>
<script src="assets/js/bootstrap/bootstrap.js"></script>
<script src="assets/js/plugins/modernizr/modernizr.js"></script>
<script src="assets/js/plugins/bootstrap-tour/bootstrap-tour.custom.js"></script>
<script src="assets/js/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="assets/js/king-common.js"></script>
<script src="assets/js/king-page.js"></script>