133 lines
5.6 KiB
PHP
133 lines
5.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Donation Receipt</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
border: 3px solid #ccc;
|
|
border-radius: 5px;
|
|
}
|
|
.header {
|
|
font-size: x-large;
|
|
}
|
|
.logo {
|
|
max-width: 70px;
|
|
}
|
|
.company-details {
|
|
margin-bottom: 20px;
|
|
max-width: 150px;
|
|
}
|
|
.heading {
|
|
text-align: center;
|
|
margin-top: -32px;
|
|
}
|
|
/* .text, .heading {
|
|
margin-bottom: 30px;
|
|
} */
|
|
/* .heading p {
|
|
font-size: 20px;
|
|
} */
|
|
.body {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.same-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: left;
|
|
text-align:left;
|
|
}
|
|
.same-line2 {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: left;
|
|
text-align:right;
|
|
}
|
|
.signature {
|
|
width: 150px;
|
|
}
|
|
.img{
|
|
width: 70px;
|
|
height: 70px;
|
|
margin-bottom: 25px;
|
|
}
|
|
.sub-add {
|
|
font-size: 9px;
|
|
text-align: right;
|
|
}
|
|
.underline {
|
|
text-decoration-line: underline;
|
|
text-decoration-style: solid;
|
|
}
|
|
/* .text {
|
|
padding: 20px;
|
|
} */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<table style=" width: 100%; height: 115px;border: none;">
|
|
<tbody>
|
|
<tr style="height: 25px;">
|
|
<td style="width: 20%; height: 25px; text-align: center;border: none;"> <img src="<?= $baseurl ?>" alt="Your Organization Logo" style="width: 100%;"></td>
|
|
<td style="width: 80%; height: 20px;border: none;">
|
|
<h3 style="text-align: right;text-decoration: underline"><strong><?= $data->title ?></strong></h3>
|
|
<p class="sub-add" style="padding-left: 80px; text-align: right;"><?= $data->org_address ?> <?= $data->org_city ? ",".$data->org_city :""; ?> <?= $data->org_state ? ",".$data->org_state :""; ?> <?= $data->org_zip ? ",".$data->org_zip.".":""; ?><br>
|
|
<?= $data->org_mobile ? "Mobile No: ".$data->org_mobile.", ":""; ?> <?= $data->org_email ? "Email: ".$data->org_email.", <br>":""; ?>
|
|
<?= $data->org_pan ? "PAN No: ".$data->org_pan.", ":""; ?> <?= $data->org_reg_no ? "Register No: ".$data->org_reg_no:""; ?></p>
|
|
</td>
|
|
</tr>
|
|
<tr style="height: 18px;">
|
|
<td style="width: 100%; height: 18px;border: none;border-top: 1px solid #ccc;" colspan="2">
|
|
<h4 style="text-align: center;"><strong><?=$data->receipt_header?></strong></h4>
|
|
</td>
|
|
</tr>
|
|
<tr style="height: 18px;">
|
|
<td style="width: 50% !important; height: 18px; text-align: left;border: none;"><strong>Receipt Number:</strong> <?=$data->receipt_number?></td>
|
|
<td style="width: 49% !important; height: 18px; text-align: right;border: none;"><strong>Date:</strong> <?=date("d-m-Y", strtotime($data->receipt_date));?></td>
|
|
</tr>
|
|
<tr style="height: 18px;">
|
|
<td style="width: 100%; height: 18px; text-align: justify;border: none;padding:30px;" colspan="2"><p>Received with thanks from <b><?= $data->customer_name . ($data->cust_org_name ? ' (' . $data->cust_org_name . ')' : '') ?></b><?php if($data->cust_pan_no) { echo ', PAN <b>'.$data->cust_pan_no.'</b>'; } ?>,<br> a sum of <b><?= $currency ?> <?= $currency_in_words ? $currency_in_words.' Only' :'' ?></b> (<?= $currency ?>.<?= $data->amount ?>), <br> towards <b><?= $data->cause_name ?></b>.</td>
|
|
</tr>
|
|
<tr style="height: 18px;">
|
|
<td style="width: 30.5118%; height: 18px;border: none;"><strong>Collected by:</strong> <?= $staff_name ?></td>
|
|
<td style="width: 69.4882%; height: 18px;text-align: right;border: none;"> <?php if($signature && file_exists(ROOTPATH."public/uploads/".$signature)) { ?><img src="<?= base_url()."public/uploads/".$signature ?>" width="100px" alt="Signature"><?php }else { echo "Signature"; } ?></td>
|
|
<tr>
|
|
</tr><td style="width: 30.5118%; height: 18px;"></td></tr>
|
|
<tr>
|
|
<td style="border: none;padding:5px;border-top: 1px solid #ccc;" colspan="2"></td>
|
|
</tr>
|
|
<?php if($eightyG != "") { ?>
|
|
<tr style="height: 0px; padding:0px;">
|
|
<td style="width: 30.5118%;border: none; font-size: 9px;"><strong>80G Registration No:</strong> <?= $eightyG ?></td>
|
|
<td style="width: 69.4882%;border: none; font-size: 9px;text-align: right;"> <?php if($eightyGVaildUpto) { ?> <strong>Valid Upto: </strong> <?= date("d-m-Y", strtotime($eightyGVaildUpto)) ?><?php } ?></td>
|
|
<tr>
|
|
<?php } ?>
|
|
<?php if($twelveAA != "") { ?>
|
|
<tr style="height: 0px; padding:0px;">
|
|
<td style="width: 30.5118%;border: none; font-size: 9px;"><strong>12AA Registration No:</strong> <?= $twelveAA ?></td>
|
|
<td style="width: 69.4882%;border: none; font-size: 9px; text-align: right;"> <?php if($twelveAAVaildUpto) { ?> <strong>Valid Upto: </strong> <?= date("d-m-Y", strtotime($twelveAAVaildUpto)) ?><?php } ?></td>
|
|
<tr>
|
|
<?php } ?>
|
|
<?php if($Notes != "") { ?>
|
|
<tr style="height: 0px; padding:1px;">
|
|
<td style="width: 100%; text-align: center;border: none;font-size: 9px; " colspan="2">
|
|
<strong>Note:</strong> <?= $Notes ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|