<style>
	.form-group{
		width:50%;
		float:left; 
		margin:0;
	}
	.d_label_cls{
		float: left;
		width:50%;
		text-align: left;
		margin: 2px 10px;
		display: inline;
	}
	.div_cls{
		float: left;
		text-align: right;
		margin: 2px 10px;
		display: inline;
	}
	.d_label_l_cls{
		float: left;
		width:16%;
		text-align: left;
		margin: 2px 10px;
		display: inline;
	}
	.div_l_cls{
		float: left;
		text-align: right;
		margin: 2px 10px;
		display: inline;
	}
	.div_l_cls input{
		width: 228px;
	}
</style>
<link rel="stylesheet" href="<?php echo base_url();?>public_html/admin_assets/plugins/jQuery_print/normalize.min.css">

<div class="col-lg-10 col-lg-offset-1">
	<div class="col-md-12">
		<a class="col-md-2 pull-right btn btn-danger" id="print_btn">Print</a></br></br></br>
	</div>
	<div class="col-lg-12" id="ele1">
			<section class="panel">
				<header class="panel-heading" style="min-height:120px">
					<div Style="width:50%;display: inline;"> <span>Date : <?php if(isset($lul_data['lul_date'])){ echo $lul_data['lul_date'];}?> </span> </div>
					
					<div Style="width:50%;display: inline;float:right"><span style="margin-left: 190px;">Tocken No : <?php if(isset($lul_data['lul_token_no'])){ echo $lul_data['lul_token_no'];} ?></span></div>

					<div Style="width:100%;">
						<h4 class="text-center"><i class="fa fa-truck truck_icon"></i><br/> <b>ETC Cargo Limited - AUTHORIZATION  <?php echo $lul_data['lul_type'];?> Details </b></h4>
					</div>
				</header>
				<div class="clear"></div>
				<div class="panel-body">
					<div class="col-lg-12">
						<div class="form-group ">
							<label class="d_label_cls">Customer Name</label>
							<div class="div_cls">
								<?php echo $lul_data['cl_name']; ?>
							</div>
						</div>

						<div class="form-group ">
							<label class="d_label_cls">W/Bridge Ticket No</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_W_Bridge_Ticket_No']; ?>
							</div>
						</div>
						<div class="form-group ">
							<label class="d_label_cls">Truck No</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_truck_no'];?>
							</div>
						</div>
						<div class="form-group ">
							<label class="d_label_cls ">Trailer No</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_trailer_no'];?>
							</div>
						</div>

						

						<div class="form-group ">
							<label class="d_label_cls ">No of Bags</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_no_of_bag'];?>
							</div>
						</div>
						<div class="form-group ">
							<label class="d_label_cls ">Tons</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_ton'];?>
							</div>
						</div>


						<div class="form-group ">
							<label class="d_label_cls">Driver Name</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_driver_name'];?>
							</div>
						</div>
						<div class="form-group ">
							<label class="d_label_cls ">Driver Ph</label>
							<div class="div_cls">
								<?php echo $lul_data['lul_driver_ph_no'];?>
							</div>
						</div>


						<div class="form-group ">
							<label class="d_label_cls">Transporter</label>
							<div class="div_cls">
								<?php echo $lul_data['tl_name'];?>
							</div>
						</div>

						<div class="form-group ">
							<label class="d_label_cls ">Authorised By</label>
							<div class="div_cls">
								<?php echo $lul_data['authorize_name'];?>
							</div>
						</div>

						
						<div class="form-group ">
							<label class="d_label_cls">Commodity</label>
							<div class="div_cls">
								<?php echo $lul_data['com_name']; ?>
							</div>
						</div>

						<div class="form-group ">
							<label class="d_label_cls">Desigination</label>
							<div class="div_cls">
								<?php
									if($this->user['panel_type']=='1'){
										echo "Entry Officer";
									}else if($this->user['panel_type']=='2'){
										echo "Authorizing Officer";
									}elseif($this->user['panel_type']=='3'){
										echo "Despatch Officer";
									}elseif($this->user['panel_type']=='5'){
										echo "Vehicle slip entry Officer";
									}
									echo ' , '.$this->user['l_user_name'];
								?>
							</div>
						</div>

						<?php
							if($lul_data['lul_destination']!=''){
						?>
								<div class="div_main_cls1 " style="width:45%; padding:5px; float:left; ">
									<label class="d_label_cls" style="float: left; width:40%; text-align: left; margin: 2px 10px; display: inline;font-weight:bold;">Destination</label>
									<div class="div_cls" style="float: left; text-align: right; margin: 2px 10px; display: inline;">
										<?php echo $lul_data['lul_destination']; ?>
									</div>
								</div>
						<?php
							}
						?>


						
					</div>
					<div class="clear"></div>

					<div class="for_form">
						<div class="form-group ">
							<label class="d_label_l_cls">Unload By</label>
							<div class="div_l_cls">
								<?php echo $lul_data['lul_load_by'] ; ?>
							</div>
						</div>
						<div class="form-group ">
							<label class="d_label_l_cls">Bags Unloaded</label>
							<div class="div_l_cls">
								<?php echo $lul_data['lul_bag_loaded'] ; ?>
							</div>
							
						</div>
						<div class="form-group ">
							<label class="d_label_l_cls">Name</label>
							<div class="div_l_cls">
								<?php echo $lul_data['lul_l_name'] ; ?>
							</div>
						</div>
						<div class="form-group ">
							<div class="form-group1 " style="width:60%;">
								<label class="d_label_l_cls" style="width: 37%;">Bags(Short/Excess)</label>
								<div class="div_l_cls">
									<?php echo $lul_data['lul_bag_short'] ; ?>
								</div>
							</div>
							<div class="form-group1 " style="width:40%;">
								<label class="d_label_l_cls">KGS</label>
								<div class="div_l_cls">
									<?php echo $lul_data['lul_kgs'] ; ?>
								</div>
							</div>
						</div>
					</div>
					
				</div>
				<header class="panel-heading">
					<h4 class="text-center">  <b>Commodity Details </b> </h4>
				</header>
				<div class="panel-body">
					<section id="unseen">
						<table class="table table-bordered table-striped table-condensed col-md-12">
							<thead>
								<tr>
									<th class="col-md-3">Material Name</th>
									<th class="numeric col-md-3">Bag Weight</th>
									<th class="col-md-3">No of Bags</th>
									<th class="col-md-3">Total Weight</th>
								</tr>
							</thead>
							<tbody id="tbody_id">
								<?php
									if(isset($lul_data['lul_token_no'])){
										foreach($luml_data as $luml_rows){
									?>
											<tr>
												<td> <?php echo $luml_rows['ml_name'];?> </td>
												<td> <?php echo $luml_rows['ml_unit_kg'];?> </td>
												<td> <?php echo $luml_rows['luml_no_of_bag'];?> </td>
												<td> <?php echo $luml_rows['luml_total_weight'];?> </td>
											</tr>
								<?php
										}
									}
									?>
							</tbody>
						</table>
						
						
					</section>
				</div>

				
			</section>
	</div>
</div>

<script src="<?php echo base_url();?>public_html/admin_assets/plugins/jQuery_print/jQuery.print.js"></script>
<script type="text/javascript">
	jQuery('#ele1').print();
	$('#print_btn').click(function(){
		jQuery('#ele1').print();
	});
</script>