91 lines
3.0 KiB
PHP
91 lines
3.0 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Report PDF</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f4f4f4;
|
|
margin: 0;
|
|
padding: 20px;
|
|
}
|
|
.page {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background-color: #fff;
|
|
border: 2px solid #000;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
align-items: flex-start; /* Align items to the start of the flex container */
|
|
}
|
|
.logo {
|
|
margin-right: 20px; /* Add some space between the logo and details */
|
|
}
|
|
.company-details {
|
|
text-align: center;
|
|
flex: 1; /* Allow the details to expand and take available space */
|
|
}
|
|
img.logo-img {
|
|
max-width: 200px;
|
|
height: auto;
|
|
}
|
|
.section {
|
|
margin-bottom: 20px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 2px solid #000;
|
|
}
|
|
.section-header {
|
|
font-weight: bold;
|
|
font-size: 24px;
|
|
margin-bottom: 15px;
|
|
color: #333;
|
|
}
|
|
.section-content {
|
|
font-size: 16px;
|
|
color: #666;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page">
|
|
<div class="logo">
|
|
<img src="https://images.rawpixel.com/image_800/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvczkzLXBtLTI3NTcuanBn.jpg" alt="Company Logo" class="logo-img">
|
|
</div>
|
|
<div class="company-details">
|
|
<div class="section-header">Company Details</div>
|
|
<div class="section-content">
|
|
<!-- Replace this with company details -->
|
|
<p><?= $data->title ?></p>
|
|
<p><?= $data->address ?></p>
|
|
<p><?= $data->postal_code ?></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section">
|
|
<div class="section-header">Donation Receipt</div>
|
|
<div class="section-content">
|
|
<!-- Replace this with customer details -->
|
|
<p>Receipt No: <?=$data->receipt_number?></p>
|
|
<p>Donor Name: <?=$data->customer_name?></p>
|
|
<p>Amount: <?=$data->amount?></p>
|
|
<p>Contact Number: <?=$data->mobile_no?></p>
|
|
<p>PAN No: <?=$data->pan_no?></p>
|
|
<p>Donation Date: <?=$data->receipt_date?></p>
|
|
<!-- Add other customer details here -->
|
|
</div>
|
|
</div>
|
|
<div class="section">
|
|
<div class="section-header">Company Contact Details</div>
|
|
<div class="section-content">
|
|
<!-- Replace this with company contact details -->
|
|
<p>Email: contact@company.com</p>
|
|
<p>Phone: +9876543210</p>
|
|
<!-- Add other contact details here -->
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|