<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Invoice</title>

<style type="text/css">
.sbmit_black {
	width: 110px;
	height: 25px;
	float: left;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 13px;
	border-radius: 6px;
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from (          
		                         
		                  #003366), to(#00CCFF));
	background: -webkit-linear-gradient(top, #003366, #00CCFF);
	background: -moz-linear-gradient(top, #003366, #00CCFF);
	background: -ms-linear-gradient(top, #003366, #00CCFF);
	background: -o-linear-gradient(top, #003366, #00CCFF);
	background: -webkit-linear-gradient(top, #003366, #00CCFF);
	background: -moz-linear-gradient(top, #003366, #00CCFF);
	background: -ms-linear-gradient(top, #003366, #00CCFF);
	background: -webkit-linear-gradient(top, #003366, #00CCFF);
	background: -moz-linear-gradient(top, #003366, #00CCFF);
	background: -ms-linear-gradient(top, #003366, #00CCFF);
	background: -webkit-linear-gradient(top, #003366, #00CCFF);
	background: -moz-linear-gradient(top, #003366, #00CCFF);
	background: -ms-linear-gradient(top, #003366, #00CCFF);
}
</style>
<style type="text/css">
#printable {
	display: none;
}

@media print {
	#non-printable {
		display: none;
	}
	#printable {
		display: block;
	}
}

.table>tbody>tr>td {
	border-top: none;
}
</style>
<script src="js/toword.js"></script>
<script type="text/javascript">
	function NewPrint(Copies) {
		var Count = 0;
		while (Count < Copies) {
			window.print(0);
			Count++;
		}
	}
</script>
<script src="js/toword.js"></script>
<script>
	function printform() {
		//alert("yes");
		var printContent = document.getElementById('wrapper').innerHTML;
		myWin = window
				.open(
						"",
						"print_window",
						"left=0,top=0,width=0,height=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,copyhistory=0,resizable=yes");
		myWin.document
				.write('<html><head><link rel="stylesheet" href="css/bootstrap.css" type="text/css" /><title>Receipt</title></head><body><div>'
						+ printContent + '</div></body></html>');
		myWin.print();
		myWin.document.close();
	}
</script>


</head>
<body>
	<table>
		<tbody>

			<tr>
				<td><div>
						<input class="sbmit_black" value="Print" onclick="printform()"
							type="button">
					</div>
					<div>
						<a href="<?php echo site_url();?>/biltyControllers/BiltyManageInfoPendding"> <input value="Home" class="sbmit_black"
							type="button">
						</a>
					</div></td>
			</tr>
		</tbody>
	</table>
	<div
		style="margin: 0 auto; width: 850px; font-family: 'Times New Roman', Times, serif;"
		id="wrapper">
		<div style="width: 100%; float: left; border: 1px solid;">

			<div style="float: left; width: 100%;"></div>
			<?php      foreach ($single_data as $dto):
							$originalDate1 = $dto->CURRENT_DATE;
							$newDate1 = date("d-m-Y", strtotime($originalDate1)); ?>

			<div style="float: left; width: 100%;">


				<div
					style="width: 99%; float: left; color: #000; text-align: left:; padding: 1px;">



					<img src="<?php echo base_url(); ?>assets/img/nimar1.png" width="100%" height="190px; style="float:left;">

				</div>



				<div
					style="float: left; width: 100%; line-height: 20px; border-top: 1px solid;">



					<table style="width: 100%;">

						<tbody>

							<tr style="font-size: 11px;">

								<td style="padding-left: 2px; font-size: 13px;" width="50%">



									<div style="color: black;">

										<b>CONSIGNOR: <span
											style="text-transform: capitalize; color: black;"></b> </span>
									</div>


									<div style="width: 100%; float: left; color: black;">

										<b>ADDRESS: <span
											style="text-transform: capitalize; color: black;"></b>
										</samp>
									</div>


									<div style="border-bottom: 1px solid; color: black;">

										<b>GSTIN: <span
											style="text-transform: capitalize; color: black;"></b>

									</div>



									<div style="color: black;">

										<b>CONSIGNEE : <span
											style="text-transform: capitalize; color: black;"></b> </span>
									</div>


									<div style="width: 100%; float: left; color: black;">
										<b>ADDRESS: <span
											style="text-transform: capitalize; color: black;"></b>
									</div>


									<div style="color: black;">

										<b>GSTIN: <span
											style="text-transform: capitalize; color: black;"></b>

									</div>


								</td>

								<td
									style="padding-left: 2px; border-left: 1px solid; font-size: 13px;"
									width="18.8%">

									<div
										style="border-bottom: 1px solid; text-align: left; font-size: 15px; color: #000;">
										<b>Copy </b>
									</div>






									<div
										style="border-bottom: 1px solid; width: 270%; float: left; color: black;">


										<b>LR No.
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>


									</div>

									<div
										style="border-bottom: 1px solid; width: 270%; color: black;">


										<b>DATE
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>


									</div>




									<div
										style="border-bottom: 1px solid; width: 270%; color: black;">

										<b>TRUCK NO </b>

									</div>

									<div
										style="border-bottom: 1px solid; width: 270%; color: black;">

										<b>FROM
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>

									</div>

									<div style="color: black; width: 270%;">

										<b>TO
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>

									</div>




								</td>

								<td
									style="padding-left: 2px; border-left: 1px solid; font-size: 13px;"
									width="31.2%">

									



									<div
										style=" width: 100%; float: left; margin-bottom: 65px;">
										<span style="width: 50%; float: left;"> <b><?php echo $dto->invoice_no; ?>
										</b></span>
									</div>

									<div
										style="border-bottom: 1px solid; width: 100%; float: left;">




										<b><span style="text-transform: capitalize;"> </b> </span>
									</div>




									<div style="border-bottom: 1px solid;">

										<b></b>

									</div>

									<div style="border-bottom: 1px solid;">

										<b></b>

									</div>

									<div>



										<b></b>

									</div>




								</td>
									
							</tr>



						</tbody>
					</table>


				</div>

				<!--shop_name end-->
			</div>
			<!--head end-->

			<div style="width: 100%; float: left; min-height: 180px;">
				<table style="width: 100%; border-bottom: 1px solid;" border="0"
					cellpadding="0" cellspacing="0">



					<thead>
						<tr
							style="font-weight: bold; border-top: 1px solid; font-size: 13px; color: black;">


							<th width="10%" valign="bottom"
								style="border-right: 1px solid; font-size: 13px; text-align: center; border-top: 1px solid;">No.
								Of Articles
							<th width="30%" valign="bottom"
								style="border-right: 1px solid; text-align: center; border-top: 1px solid;">Description
								Of Goods(Said To Contain)</th>
							<th width="10%" valign="bottom"
								style="border-right: 1px solid; font-size: 13px; text-align: center; border-top: 1px solid;">Weight</th>
							<th width="15%" valign="bottom"
								style="border-right: 1px solid; font-size: 13px; text-align: center; border-top: 1px solid;">Rate
							</th>

							<th width="10%" valign="bottom"
								style="border-right: 1px solid; font-size: 13px; text-align: center; border-top: 1px solid;">Amount
							</th>

							<th width="20%" valign="bottom"
								style="border-right: 1px solid; font-size: 13px; text-align: center; border-top: 1px solid;">Remark
							</th>




						</tr>


					</thead>
					<tbody>


						<tr
							style="border-bottom: 1px solid; ight: 1px solid; text-align: center; font-size: 13px;">

							<td style="border-top: 1px solid; border-right: 1px solid;"><b></b></td>


							<td
								style="border-top: 1px solid; border-right: 1px solid; text-align: left; border-bottom: none; color: black;">

								<div>

									<b></b>
								</div>


								<div style="margin-top: 3px;">

									<b>LOT NO.: <span style="color: black;"></b>
								</div>
								<div style="margin-top: 3px;">

									<b>PR. NO.: <span style="color: black;"></b>
								</div>
								<div style="margin-top: 3px;">

									<b>PM : <span style="color: black;"></b>
								</div>
								<div style="margin-top: 3px;">

									<b>Quality: <span style="color: black;"></b>

								</div>




								<div style="margin-top: 3px;">


									<b>Remark: <span style="color: black;"></b>
								</div>





								<div style="margin-top: 20px;"></div>


							</td>
							<td style="border-top: 1px solid; border-right: 1px solid;"><b></b></td>
							<td style="border-top: 1px solid; border-right: 1px solid;">

								<div style="border-bottom: 1px solid;">

									<b></b>
								</div>

								<div>

									<b>Per Bales</b>
								</div>





							</td>
							<td style="border-top: 1px solid; border-right: 1px solid;"><b></b></td>

							<td style="border-top: 1px solid; border-right: 1px solid;">
								<b>Do Not Pay Lorry Freight To Lorry Owner/Driver. Please
									Deposit Only To Transporter's Bank A/C Given Below 
							</td>
							</b>



						</tr>


						<tr
							style="border-bottom: 1px solid; ight: 1px solid; text-align: center; font-size: 13px;">



							<td style="border-top: 1px solid; border-right: 1px solid;"></td>

							<td style="border-top: 1px solid; border-right: 1px solid;"></td>
							<td style="border-top: 1px solid; border-right: 1px solid;"></td>
							<td style="border-top: 1px solid; border-right: 1px solid;">






								<div style="border-bottom: 1px solid; color: black;">

									<b>Less Advance</b>
								</div>

								<div style="color: black;">

									<b>Total:-</b>
								</div> <span style="color: black;"> <b>Transporter A/c</b></span>
								</div>



							</td>

							<td style="border-top: 1px solid; border-right: 1px solid;">




								<div style="border-bottom: 1px solid;">

									<b></b>
								</div>

								<div>

									<b></b>
								</div>



							</td>

						</tr>



					</tbody>
				</table>




			</div>


			<div style="width: 100%; float: left; border-top: 1px solid;">
				<div class="col-md-12" style="padding: 0px;">
					<div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;">


					
						<div style="width: 100%; float: left;">




							<table style="width: 100%; line-height: 15px;">

								<tbody>




									<tr
										style="font-size: 13px; border-bottom: 1px solid; color: black;">

										<td style="padding-left: 2px; border-right: 1px solid;"
											valign="top" width="50%">

											<div>

												<b>BANK : CANARA Bank Khandwa Branch</b>
											</div>

											<div>

												<b>A/C. NO.: 2546285005380</b>
											</div>

											<div style="border-bottom: 1px solid;">

												<b>IFSC CODE Code.: CNRB0002546</b>
											</div>


											<div style="">


												<b> PAN. NO: AMZPM9014H</b>
											</div>




										</td>

										<td style="padding-left: 2px;" valign="top" width="50%">
											<br> <b style="font-size: 14px; color: black;">Rs.
												(In Word )- <span id="WordsAmount1" valign="top"
												style="padding-left: 2px; font-size: 15px; color: black;"></span>
										</b>

											<div>
										</td>

									</tr>



									<tr style="font-size: 13px;">


										<td style="padding-left: 2px; border-right: 1px solid;"
											valign="top" width="50%"><br>

											<div style="color: black;">GST Payble By :
												Consignor/Consignee Only</div>


											<div
												style="width: 100%; float: left; font-size: 13px; color: #000; padding: 5px 5px 0;">
												<div class="col-md-12"
													style="border-top: 1px solid #999; padding-top: 2px;">
													<br>

												
							<ul style="font-size: 12px;">

														
<li>1) Goods booked at Owner's Risk (Contents not checked).</li>
<li>2) We are not responsible for any loss of goods coused due to then, accident, riot, fire rainwater, etc. or any other damage.</li>
<li>3) Nimar Transport Service is only Commission agent</li>
</ul>



												</div>
											</div></td>

										<td style="padding-left: 2px;" valign="top" width="50%">



											<div
												style="width: 100%; float: left; font-size: 13px; text-align: center; color: #000; padding: 5px 5px 0;">
												<br> <br> <b>For - NIMAR TRANSPORTS SERVICE</b> <br>
												<br> <br> <br>This is Computer Generated
												please accepted.
											</div>


										</td>

									</tr>





								</tbody>
							</table>


							<?php endforeach; ?>

						</div>




					</div>

				</div>
			</div>










			<div class="col-md-12" style="padding: 0px;">
	
				</div>

				<script>
					var aAmount =	;
					if (!isNaN(aAmount)) {
						aAmount = parseFloat(aAmount);
						var aVarText = "Rs. " + toWords(aAmount) + " Only.";
						document.getElementById("WordsAmount1").innerHTML = aVarText;
						//document.getElementById("WordsAmount2").innerHTML = aVarText;
					}
				</script>





				<!--bill end-->
			</div>
		</div>
</body>
</html>
