<?php 
error_reporting(0);
//print_r($_GET);
date_default_timezone_set('Asia/Kolkata');
$time=date('H:i a');

$id=$_GET['rc'];
$from=$_GET['from'];
$to=$_GET['to'];
$kg=$_GET['kg'];
$brfrom=$_GET['brfrom'];
$brto=$_GET['brto'];
$date=$_GET['date'];
$parcel=$_GET['no_par'];
$total=$_GET['tot'];
$type=$_GET['type'];
$vpp=$_GET['vpp'];
$cc_status=$_GET['ccstatus'];
$gst=$_GET['gstno'];
$mob=$_GET['mob'];
$to_mobile=$_GET['to_mobile'];

	include '../Admin_config/connection.php';

 $sql= "SELECT `mobNo` FROM `sc_branch` WHERE `branch_name`='$brto'";
	$result=mysqli_query($conn,$sql);
	$count=mysqli_num_rows($result);



	
			$row = mysqli_fetch_assoc($result);
			$frm_mob=$row['mobNo'];

$test = explode("_",$type);
//	print_r($test);
?>

<!DOCTYPE html>
<html>
<head>
	<style type="text/css">
	@import url("https://fonts.googleapis.com/css?family=Open+Sans");
	@import url("https://fonts.googleapis.com/css?family=Hind");

		*{
			font-size: 8px;
			font-family: "Open Sans", sans-serif;
			margin: auto;
		}
		
		/*table,th,td*/
		/*{*/
		/*    border: 1px solid;*/
		/*}*/
		
		
		table {
		  border-collapse: collapse;
		}
		.color{
			color: #ff0000;
		}
		.center{
			text-align: center;
		}
		.title{
			text-align: center;
			text-transform: uppercase;
			font-weight: bold;
		}
		table .no_border{
			border: none;
		}
		table .border_bt{
			border-bottom:1px solid #1976D2;
		}
		.info{
			color: #000000;
			font-weight: bold;
		}
		.rupee{
			font-family: "Hind", sans-serif;
		}
	</style>
</head>
<body> 
	<table style="width: 100%; height: 100vh;">
		<tr>
			<td colspan="1" rowspan="6" class="center"><img src="sunshine_banner.png" style="width: 85%; visibility:hidden;"></td>
			<td colspan="2" rowspan="3" class="center" style="visibility: hidden;">CONSIGNER'S COPY</td>
			<td colspan="2" rowspan="1" class="no_border" style="padding-left: 20px;"><span class="info" style="visibility: hidden;">Date: </span><span class="info"><?php echo "      ".date("d-m-Y", strtotime($date));?></span></td>
			
		</tr>
		<tr>
		    <td colspan="2" rowspan="1" class="no_border" style="padding-left: 20px;"><span class="info" style="visibility: hidden;">Time: </span><span class="info"><?php echo "      ".$time;?></span></td>
		</tr>
		<tr>
			
			<td colspan="2" rowspan="1" class="no_border" style="padding-left: 20px;"><span class="info" style="visibility: hidden;">Phone: 9371047555</span></td>
		</tr>
		<tr>
			<td colspan="2" rowspan="3" class="center">&nbsp;<span class="info" style="visibility: hidden;">Receipt No:<br><br><br> </span><span class="info"><?php 
			echo $id; ?></span></td>
			<td colspan="2" rowspan="1" class="no_border" style="padding-left: 20px;"><span class="info" style="visibility: hidden;">To: </span><span class="info">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $brto;?></span></td>
		</tr>
		<tr>
			<td colspan="2" rowspan="1" class="no_border" style="padding-left: 20px;"><span class="info" style="visibility: hidden;">From: <?php echo $brfrom;?></span></td>
		</tr>
		<tr>
			<td colspan="2" rowspan="1" class="no_border" style="padding-left: 20px;"><span class="info" style="visibility: hidden;">GST: 27ADKFS6251Q1Z8</span></td>
		</tr>
		<tr class="title" border="1">
			<td colspan="2" style="visibility: hidden;">Sender</td>
			<td colspan="3" style="visibility: hidden;">Receiver</td>
		</tr>
		<tr>
			<td colspan="2" class="no_border" ><span class="info" style="visibility: hidden; ">Name: </span><span class="info" style="padding-left:30px; font-size: 12px;"><?php echo $from;?></span></td>
			<td colspan="3" class="no_border" ><span class="info" style="visibility: hidden; ">Name: </span><span class="info" style="padding-left:30px; font-size: 12px;"><?php echo $to;?></span></td>
		</tr>
		<tr>
			<td colspan="2" class="no_border" ><span class="info" style="visibility: hidden;">GST: </span><span class="info" style="padding-left:40px;"><?php echo $gst;?></span></td>
			<td colspan="3" class="no_border" ><span class="info" style="visibility: hidden;">GST: </span><span class="info" style="padding-left:40px;"></span></td>
		</tr>
		<tr>
			<td colspan="2" class="no_border" ><span class="info" style="visibility: hidden;">Mobile No: </span><span class="info" style="padding-left:20px;"><?php echo $mob;?></span></td>
			<td colspan="3" class="no_border" ><span class="info" style="visibility: hidden;">Mobile No: </span><span class="info" style="padding-left:20px;"><?php echo $to_mobile;?></span></td>
		</tr>
		<tr>
			<td colspan="6"></td>
		</tr>
		<tr class="center">
			<td style="visibility: hidden;">Particulars</td>
			<td style="visibility: hidden;">VPP Amount</td>
			<td style="visibility: hidden;">No of Parcels</td>
			<td style="visibility: hidden;">Weight(KG)</td>
			<td style="visibility: hidden;">Charges</td>
		</tr>
		<tr class="center">
			<td><span class="info" ><?php echo end(explode("_",$type));?></span></td>
			<td><span class="info" style="font-size: 12px;" ><?php echo $vpp;?></span></td>
			<td><span class="info" ><?php echo $parcel;?></span></td>
			<td><span class="info" ><?php echo $kg;?> KG</span></td>
			<td><span class="info" ><?php echo $cc_status;?></span></td>
		</tr>
		<tr class="center">
		    <td><span class="info" style="visibility: hidden;"><?php echo end(explode("_",$type));?></span></td>
			<td><span class="info" style="visibility: hidden;"><?php echo $vpp;?></span></td>
			<td><span class="info" style="visibility: hidden;"><?php echo $parcel;?></span></td>
			<td><span class="info" style="visibility: hidden;"><?php echo $kg;?> KG</span></td>
			<td><span class="info" style="visibility: hidden;">ToPay</span></td>
		</tr>
		<tr class="center">
		    <td><span class="info" style="visibility: hidden;"><?php echo end(explode("_",$type));?></span></td>
			<td><span class="info" style="visibility: hidden;"><?php echo $vpp;?></span></td>
			<td><span class="info" style="visibility: hidden;"><?php echo $parcel;?></span></td>
			<td><span class="info" style="visibility: hidden;"><?php echo $kg;?> KG</span></td>
			<td><span class="info" style="visibility: hidden;">ToPay</span></td>
		</tr>
		<tr></tr>
		<tr></tr>
		<tr>
			<td colspan="5" class="no_border" style="visibility: hidden;">Deliver to:</td>
		</tr>
		<tr>
			<td colspan="5"  align="center" style="border-bottom: none;border-left: none;border-bottom: right; visibility:hidden;" >This is System Genrated Recipt</td>
		</tr>
	</table>

	
</body>
</html>

