donation/app/Views/invoice_pdf_template_o.php
bitbucket 1b89482e5b ss
2024-02-17 10:32:29 +05:30

305 lines
8.0 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Donation Receipt</title>
<style>
:root {
--primary: #0000ff;
--secondary: #3d3d3d;
--white: #fff;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Lato', sans-serif;
}
body{
background: var(--secondary);
padding: 50px;
color: var(--secondary);
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.bold{
font-weight: 900;
}
.light{
font-weight: 100;
}
.wrapper{
background: var(--white);
padding: 30px;
}
.invoice_wrapper{
/* border: 3px solid var(--primary);*/
border: 3px solid #000000;
width: 900px;
max-width: 100%;
}
.invoice_wrapper .header .logo_invoice_wrap,
.invoice_wrapper .header .bill_total_wrap{
display: flex;
justify-content: space-between;
padding: 13px;
}
.invoice_wrapper .header .logo_sec{
display: flex;
align-items: center;
}
.invoice_wrapper .header .logo_sec .title_wrap{
/* margin-left: 5px; */
text-align: center;
position: relative;
bottom: 20px;
}
.invoice_wrapper .header .logo_sec .title_wrap .title{
text-transform: uppercase;
font-size: 18px;
/* color: var(--primary);*/
color: #000000;
}
.invoice_wrapper .header .logo_sec .title_wrap .sub_title{
font-size: 12px;
}
.invoice_wrapper .header .invoice_sec,
.invoice_wrapper .header .bill_total_wrap .total_wrap{
text-align: right;
position: relative;
bottom: 90px;
}
.invoice_wrapper .header .invoice_sec .invoice{
font-size: 28px;
/* color: var(--primary);*/
color: #000000;
}
.invoice_wrapper .header .invoice_sec .invoice_no,
.invoice_wrapper .header .invoice_sec .date{
display: flex;
width: 100%;
}
.invoice_wrapper .header .invoice_sec .invoice_no span:first-child,
.invoice_wrapper .header .invoice_sec .date span:first-child{
width: 70px;
text-align: left;
}
.invoice_wrapper .header .invoice_sec .invoice_no span:last-child,
.invoice_wrapper .header .invoice_sec .date span:last-child{
width: calc(100% - 70px);
}
.invoice_wrapper .header .bill_total_wrap .total_wrap .price,
.invoice_wrapper .header .bill_total_wrap .bill_sec .name{
/* color: var(--primary);*/
color: #000000;
font-size: 20px;
}
.invoice_wrapper .body .main_table .table_header{
background: var(--primary);
}
.invoice_wrapper .body .main_table .table_header .row{
color: var(--white);
font-size: 18px;
border-bottom: 0px;
}
.invoice_wrapper .body .main_table .row{
display: flex;
border-bottom: 1px solid var(--secondary);
}
.invoice_wrapper .body .main_table .row .col{
padding: 10px;
}
.invoice_wrapper .body .main_table .row .col_no{width: 5%;}
.invoice_wrapper .body .main_table .row .col_des{width: 45%;}
.invoice_wrapper .body .main_table .row .col_price{width: 20%; text-align: center;}
.invoice_wrapper .body .main_table .row .col_qty{width: 10%; text-align: center;}
.invoice_wrapper .body .main_table .row .col_total{width: 20%; text-align: right;}
.invoice_wrapper .body .paymethod_grandtotal_wrap{
display: flex;
justify-content: space-between;
padding: 5px 0px 15px;
align-items: flex-end;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .paymethod_sec{
padding-left: 20px;
position: relative;
bottom: 50px;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .grandtotal_sec{
width: 30%;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .grandtotal_sec p{
display: flex;
width: 100%;
padding-bottom: 5px;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .grandtotal_sec p span{
padding: 0 10px;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .grandtotal_sec p span:first-child{
width: 60%;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .grandtotal_sec p span:last-child{
width: 40%;
text-align: right;
}
.invoice_wrapper .body .paymethod_grandtotal_wrap .grandtotal_sec p:last-child span{
background: var(--primary);
padding: 10px;
color: #fff;
}
.invoice_wrapper .footer{
padding: 10px;
}
.invoice_wrapper .footer > p{
/* color: var(--primary);*/
color: #000000;
text-decoration: underline;
font-size: 18px;
padding-bottom: 5px;
}
.invoice_wrapper .footer .terms .tc{
font-size: 16px;
}
.total_wrap{
text-align: right;
position: relative;
bottom: 90px;
right: 20px
}
.images{
position: relative;
top: 20px;
left: 20px
}
</style>
</head>
<body>
<div class="wrapper">
<div class="invoice_wrapper">
<div class="header">
<div class="logo_invoice_wrap">
<div class="logo_sec">
<img class="images" src="<?= $baseurl ?>" height="50" width="50" >
<div class="title_wrap">
<p class="title bold"><?= $data->title ?></p>
<p class="sub_title">Email : <?= $data->org_email ?></p>
<p class="sub_title">PAN No : <?= $data->org_pan ?></p>
<p class="sub_title">Register N0 :<?= $data->org_reg_no ?></p>
<p class="sub_title"><?= $data->org_address ?>, <?= $data->org_city ?>,</p>
<p class="sub_title"><?= $data->org_state ?> ,<?= $data->org_zip ?>. MobileNo : <?= $data->org_mobile ?></p>
</div>
</div>
</div>
<div class="bill_total_wrap" style="position: relative;top: -32px;">
<div class="bill_sec">
<p class="bold name"><?=$data->customer_name?></p>
<span>
Mobile No : <?=$data->customer_mobile?><br>
PAN No : <?=$data->cust_pan_no?><br>
Address :<?=$data->address?><br>
</span>
</div>
<div class="invoice_sec">
<!-- <p class="invoice bold">RECEIPT</p> -->
<p class="invoice_no">
<span class="bold">Receipt :</span>
<span>#<?=$data->receipt_number?></span>
</p>
<p class="date">
<span class="bold">Date :</span>
<span><?=date("d-m-Y", strtotime($data->receipt_date));?></span>
</p>
<p class="date">
<span class="bold">Recipt Type :</span>
<span><?=$data->receipt_header?></span>
</p>
</div>
</div>
</div>
<div class="body">
<div class="paymethod_grandtotal_wrap">
<div class="paymethod_sec">
<p class="bold">Payment Method</p>
<p> <?=$data->payment_mode?></p>
</div>
<div class="total_wrap">
<p>Donated Amount</p>
<p class="bold price"><?= $currency ?>. <?=$data->amount?> /-</p>
</div>
</div>
<div class="paymethod_grandtotal_wrap" style="position: relative;top: 20px;">
<div class="total_wrap">
<div class="logo_invoice_wrap">
<div class="logo_sec">
<img class="images" src="<?= base_url()."public/uploads/".$data->signature ?>" height="50" width="50" style="position: relative; left: -13px;top: 4px;" >
</div>
</div>
<p class="bold">signature</p>
</div>
</div>
</div>
<div class="footer" style="position: relative;bottom: 60px;">
<p>Received with thanks from <?= $data->customer_name ?> , PAN <?= $data->cust_pan_no ?>, a sum of <?= $data->amount ?> , towards <?= $data->cause_name ?>.</p>
<p class="bold">Receipt Note:</p>
<div class="terms">
<p><?= $data->notes ?></p>
</div>
</div>
</div>
</div>
</body>
</html>