FIX_pdf design : ps
This commit is contained in:
parent
6e120559e1
commit
4bcad0de4b
@ -240,12 +240,12 @@ public function getJoinedData($where, $orderby = [])
|
||||
->join('customer_addresses as S','S.customer_address_id=invoice.shipping_address_id AND S.address_type = 2','left')
|
||||
->join('states', 'states.state_short_name = A.state AND A.country = "IN"', 'left')
|
||||
->join('countries', 'countries.country_short_name = A.country', 'left')
|
||||
->select('invoice.*,DATE_FORMAT(invoice.invoice_date, "%d/%m/%Y") AS formatted_invoice_date,DATE_FORMAT(invoice.due_date, "%d/%m/%Y") AS formatted_due_date ,CONCAT_WS(" ", C.first_name, C.last_name) as customer_name,C.mobile_no,A.address_1, A.address_2,A.postal_code,A.city, A.state,C.mobile_no as customer_mobile')
|
||||
->select('invoice.*,DATE_FORMAT(invoice.invoice_date, "%d/%m/%Y") AS formatted_invoice_date,DATE_FORMAT(invoice.due_date, "%d/%m/%Y") AS formatted_due_date ,CONCAT_WS(" ", C.first_name, C.last_name) as customer_name,C.mobile_no,C.email,A.address_1, A.address_2,A.postal_code,A.city, A.state,C.mobile_no as customer_mobile')
|
||||
->select('B.title as company_name,B.business_logo,B.terms as company_terms,B.address as company_address,B.city as company_city,B.state as company_state,B.postal_code as company_postal_code,B.email as company_email,B.mobile_no as company_mobile_no')
|
||||
->select('COALESCE(NULLIF(states.state_name, ""), A.state) AS customer_bill_state')
|
||||
->select('COALESCE(NULLIF(states.state_name, ""), S.state) AS customer_ship_state')
|
||||
->select('concat(A.address_1," ", A.address_2) as customer_bill_address,A.postal_code as customer_bill_postal_code ,A.city as customer_bill_city, countries.country_name as customer_bill_country,A.country as bcountry,A.state as bstate,A.customer_address_id as baddr_id')
|
||||
->select('concat(S.address_1," ", S.address_2) as customer_ship_address,S.postal_code as customer_ship_postal_code ,S.city as customer_ship_city, countries.country_name as customer_ship_country,S.country as scountry,S.state as sstate,S.customer_address_id as saddr_id')
|
||||
->select('concat(A.address_1," ", A.address_2) as customer_bill_address,A.postal_code as customer_bill_postal_code ,A.city as customer_bill_city, countries.country_name as customer_bill_country,A.country as bcountry,A.state as bstate,A.customer_address_id as baddr_id,A.email as bemail')
|
||||
->select('concat(S.address_1," ", S.address_2) as customer_ship_address,S.postal_code as customer_ship_postal_code ,S.city as customer_ship_city, countries.country_name as customer_ship_country,S.country as scountry,S.state as sstate,S.customer_address_id as saddr_id,S.email as semail')
|
||||
->get()
|
||||
->getResult();
|
||||
|
||||
|
||||
@ -390,7 +390,7 @@ public function getSubscriptionDetailsBySchemeName($selectedScheme, $downloadTyp
|
||||
$query = $builder->get();
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -473,7 +473,7 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
|
||||
<div class="form-row"> -->
|
||||
<div class="form-group col-md-5">
|
||||
<label for="notes">Notes</label>
|
||||
<textarea class="form-control" id="notes" name="notes" rows="3"></textarea>
|
||||
<textarea class="form-control" id="notes" name="notes" rows="3"><?= isset($invoice_details['notes']) ? $invoice_details['notes'] : '' ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
2206
app/Views/invoice_form_old_design.php
Normal file
2206
app/Views/invoice_form_old_design.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -14,9 +14,16 @@
|
||||
}
|
||||
}
|
||||
#pdfPreviewModal .modal-dialog {
|
||||
max-width: 148mm; /* A5 width */
|
||||
width: auto;
|
||||
margin: 1.75rem auto;
|
||||
width: 595px;
|
||||
height: 842px;
|
||||
top: -973px;
|
||||
left: 1018px;
|
||||
gap: 0px;
|
||||
opacity: 0px;
|
||||
|
||||
/* max-width: 148mm; /* A5 width */
|
||||
/* width: auto;
|
||||
margin: 1.75rem auto; */
|
||||
}
|
||||
#pdfPreviewModal .modal-body {
|
||||
font-family: 'Times New Roman', Times, serif;
|
||||
@ -29,8 +36,11 @@
|
||||
#printPdfButton .ri-printer-line {
|
||||
font-size: 8px;
|
||||
}
|
||||
.modal-lg, .modal-xl {
|
||||
max-width: 678px;
|
||||
.modal-lg, .modal-xl {
|
||||
Width : 595px;
|
||||
Height : 842px;
|
||||
Top : -973px;
|
||||
Left : 1018px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@ -5,52 +5,65 @@
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
@page {
|
||||
size: 148mm 210mm; /* Width Height */
|
||||
size: 148mm 210mm;
|
||||
/* Width Height */
|
||||
}
|
||||
|
||||
/* Add your CSS styles here to format the invoice for mPDF */
|
||||
td{
|
||||
td {
|
||||
/* display: flex;
|
||||
*/
|
||||
/* align-items: flex-start; */
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
font-family: 'Times New Roman', Times, sans-serif;
|
||||
|
||||
color : black !important;
|
||||
font-size: 8pt;
|
||||
/* Change this value to your desired font size */
|
||||
/* font-family: 'Times New Roman', Times, sans-serif; */
|
||||
font-family: Nunito Sans;
|
||||
font-size: 10px;
|
||||
color: black !important;
|
||||
/* font-size: 8pt; */
|
||||
}
|
||||
|
||||
|
||||
/* Style for the main table with border */
|
||||
table.main-table {
|
||||
width: 100%;
|
||||
margin-bottom: 1rem;
|
||||
/* border-collapse: collapse; */
|
||||
/* border: -0.5px solid black; */
|
||||
/* Add a border around the entire invoice */
|
||||
}
|
||||
|
||||
table.main-table th,
|
||||
table.main-table td {
|
||||
border: none;
|
||||
/* Remove borders from all cells inside the main table */
|
||||
/* padding: 8px; */
|
||||
}
|
||||
|
||||
/* Style for the table containing business details */
|
||||
/* Style for the table containing - business details */
|
||||
table.business-details-table {
|
||||
width: 100%;
|
||||
margin-left: -16px !important;
|
||||
}
|
||||
|
||||
table.business-details-table td {
|
||||
text-align: left;
|
||||
/* Style for the business color badge */
|
||||
.business-badge-container {
|
||||
background: #D9103F;
|
||||
width: 21px;
|
||||
height: 60px;
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
/* Style for the business logo and title */
|
||||
/* Style for the business logo */
|
||||
.business-logo-container {
|
||||
text-align: center;
|
||||
/* width: 50%; */
|
||||
width: 150px;
|
||||
height: 35.71px;
|
||||
top: 28px;
|
||||
left: 31px;
|
||||
gap: 0px;
|
||||
opacity: 0px;
|
||||
}
|
||||
|
||||
/* Style for the business address */
|
||||
.business-address-container {
|
||||
/* width: 50%; */
|
||||
width: 261px;
|
||||
height: 28px;
|
||||
top: 32px;
|
||||
left: 320px;
|
||||
gap: 0px;
|
||||
opacity: 0px;
|
||||
font-family: Nunito Sans;
|
||||
font-size: 10px;
|
||||
font-weight: 400;
|
||||
line-height: 13.64px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
img.business-logo {
|
||||
@ -58,222 +71,196 @@
|
||||
/* Adjust the size of the logo */
|
||||
}
|
||||
|
||||
/* Style for the business name */
|
||||
.business-name {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Style for the table containing invoice info */
|
||||
table.invoice-info-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.invoice-info-table th,
|
||||
table.invoice-info-table td {
|
||||
text-align: right;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
/* Style for the addresses table */
|
||||
/* Style for the table containing - addresses details */
|
||||
table.addresses-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.addresses-table th {
|
||||
font-family: Nunito Sans;
|
||||
font-size: 10px;
|
||||
font-weight: 400;
|
||||
line-height: 13.64px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Style for the billing and shipping addresses */
|
||||
.billing-address,
|
||||
.shipping-address {
|
||||
width: 50%;
|
||||
|
||||
/* Style for the billing addresses */
|
||||
.billing-address-container {
|
||||
width: 134px;
|
||||
height: 108px;
|
||||
top: 90px;
|
||||
left: 16px;
|
||||
gap: 0px;
|
||||
opacity: 0px;
|
||||
}
|
||||
|
||||
/* Style for the invoice-related table */
|
||||
/* Style for the shipping addresses */
|
||||
.shipping-address-container {
|
||||
width: 134px;
|
||||
height: 108px;
|
||||
top: 90px;
|
||||
left: 186px;
|
||||
gap: 0px;
|
||||
opacity: 0px;
|
||||
}
|
||||
|
||||
/* Style for the invoice information */
|
||||
.invoice-info-container {
|
||||
width: 117px;
|
||||
height: 58px;
|
||||
top: 90px;
|
||||
left: 418px;
|
||||
gap: 0px;
|
||||
opacity: 0px;
|
||||
}
|
||||
|
||||
/* Style for the table containing - invoice-related details */
|
||||
table.invoice-related-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* Style for the table containing - invoice-related details header footer */
|
||||
table.invoice-related-table th,
|
||||
table.invoice-related-table td {
|
||||
border: none;
|
||||
/* Remove borders from all cells in the invoice items table */
|
||||
padding: 8px;
|
||||
/* text-align: center; */
|
||||
/* Center-align text in cells */
|
||||
}
|
||||
|
||||
/* Style for the table containing - invoice-related details header */
|
||||
table.invoice-related-table th {
|
||||
/* background-color: #f2f2f2; */
|
||||
background-color: #D0D0CD;
|
||||
background-color: #D9103F;
|
||||
color: #FFFFFF;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Style for the business stamp and terms */
|
||||
.business-stamp,
|
||||
.terms {
|
||||
/* Style for the table containing - invoice-related details table row alternative color */
|
||||
table.invoice-related-table tr:nth-child(even) {
|
||||
background-color: #FFEAEF;
|
||||
}
|
||||
|
||||
/* Style for the table containing - summary-invoice details */
|
||||
table.summary-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Style for the table containing - summary-invoice subtotal-table details */
|
||||
table.subtotal-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* Style for the notes and terms information */
|
||||
.notes-container,
|
||||
.terms-container {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.subtotal-table {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.subtotal-table table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
/* Add a border around the subtotal table */
|
||||
}
|
||||
|
||||
.subtotal-table th,
|
||||
.subtotal-table td {
|
||||
border: none;
|
||||
/* Remove borders from cells inside the subtotal table */
|
||||
padding: 3px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.subtotal-table th {
|
||||
background-color: #f2f2f2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.subtotal-table td:last-child {
|
||||
font-weight: bold;
|
||||
/* Make the last column (total values) bold */
|
||||
}
|
||||
|
||||
td.invoice-number {
|
||||
font-size: 18px;
|
||||
/* Increase font size to your desired value */
|
||||
/* Highlight background color */
|
||||
font-weight: bold;
|
||||
/* Make the text bold */
|
||||
/* Style for the table containing - footer-table details */
|
||||
table.footer-table {
|
||||
font-family: Nunito Sans;
|
||||
font-size: 10px;
|
||||
font-weight: 400;
|
||||
line-height: 13.64px;
|
||||
color: #989898;
|
||||
}
|
||||
|
||||
/* Common Style for all */
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
|
||||
.test-works p {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="main-table">
|
||||
<!-- table containing - business details -->
|
||||
<table class="business-details-table mt-1">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<td class="business-badge-container">
|
||||
</td>
|
||||
<td class="business-logo-container">
|
||||
<img src="https://vijayabharathambooks.com/wp-content/uploads/2021/09/vijaya-bharatham-logo-8pt.png" alt="Business Logo" class="business-logo">
|
||||
</td>
|
||||
<td class="business-address-container">
|
||||
<p><?= $value->company_address . ',' . $value->company_city . ($value->company_postal_code ? " - " . $value->company_postal_code : "") ?></p>
|
||||
<p><?= $value->company_email . ' | ' . $value->company_mobile_no ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<!-- table containing - business details ends -->
|
||||
<!-- table containing - addresses details -->
|
||||
<table class="addresses-table mt-1">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="business-details-table">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<td class="business-logo-container">
|
||||
<img src="https://vijayabharathambooks.com/wp-content/uploads/2021/09/vijaya-bharatham-logo-8pt.png" alt="Business Logo" class="business-logo">
|
||||
<td class="billing-address-container" style="vertical-align: top;">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<b>BILLING TO :</b><br>
|
||||
<b><?= $value->customer_name ?></b><br>
|
||||
<?php if ($value->customer_bill_address && ($value->baddr_id !== null || $value->baddr_id !== '')) { ?>
|
||||
<?= $value->customer_bill_address ? $value->customer_bill_address . " ," : "" ?><br>
|
||||
<?= $value->customer_bill_city ? $value->customer_bill_city : "" ?> <?= $value->customer_bill_state ? $value->customer_bill_state : "" ?>
|
||||
<?= $value->customer_bill_postal_code ? " - " . $value->customer_bill_postal_code : ""; ?>
|
||||
<?= $value->customer_bill_country ? $value->customer_bill_country . "." : $value->bcountry ?><br>
|
||||
<?php } else if ($value->baddr_id === null || $value->baddr_id === '') {
|
||||
echo $value->billing_address ? '<p style="white-space: pre-line">' . $value->billing_address . '</p>' : '';
|
||||
} ?>
|
||||
<?= $value->mobile_no ? "Phone : +91" . $value->mobile_no . " ." : "" ?><br>
|
||||
<?= $value->email ? "Email : " . $value->email . " ." : "" ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="test-works">
|
||||
<p> <?= $value->company_address ?>,<br>
|
||||
<?= $value->company_city ?>,
|
||||
<?= $value->company_state ?>
|
||||
<?= $value->company_postal_code ? " - " . $value->company_postal_code : "" ?>.</p>
|
||||
<p><?= $value->company_email ?></p>
|
||||
<p ><?= $value->company_mobile_no ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td style="padding: 8px!important">
|
||||
<table class="invoice-info-table">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<th><?php echo ($value->wp_api_order_id) ? 'Order # ' . $value->invoice_number : 'Invoice # ' . $value->invoice_number; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Invoice Date : <?= $value->formatted_invoice_date ?></th>
|
||||
</tr>
|
||||
<td class="shipping-address-container" style="vertical-align: top;">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<b>SHIPPING TO :</b><br>
|
||||
<b><?= $value->customer_name ?></b><br>
|
||||
<?php if ($value->customer_ship_address && ($value->saddr_id !== null || $value->saddr_id !== '')) { ?>
|
||||
<?= $value->customer_ship_address ? $value->customer_ship_address . " ," : "" ?><br>
|
||||
<?= $value->customer_ship_city ? $value->customer_ship_city : "" ?> <?= $value->customer_ship_state ? $value->customer_bill_state : "" ?>
|
||||
<?= $value->customer_ship_postal_code ? " - " . $value->customer_ship_postal_code : ""; ?>
|
||||
<?= $value->customer_ship_country ? $value->customer_ship_country . "." : $value->scountry ?><br>
|
||||
<?php } else if ($value->saddr_id === null || $value->saddr_id === '') {
|
||||
echo $value->shipping_address ? '<p style="white-space: pre-line">' . $value->shipping_address . '</p>' : '';
|
||||
} ?>
|
||||
<?= $value->mobile_no ? "Phone : +91" . $value->mobile_no . " ." : "" ?><br>
|
||||
<?= $value->email ? "Email : " . $value->email . " ." : "" ?>
|
||||
|
||||
<?php if ($value->due_date) : ?>
|
||||
<tr>
|
||||
<th>Due Date : <?= $value->formatted_due_date ?></th>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($invoice_type === '2') : ?>
|
||||
<?php foreach ($invoiceItems as $item) : ?>
|
||||
<tr>
|
||||
<th>From Subscription : <?= date('d/m/y', strtotime($item->from_subscription)) ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>To Subscription : <?= date('d/m/y', strtotime($item->to_subscription)) ?></th>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td class="invoice-info-container" style="vertical-align: top;">
|
||||
<b>INVOICE :</b><br>
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<?php echo ($value->wp_api_order_id) ? 'Order # ' . $value->invoice_number : 'Invoice No # ' . $value->invoice_number; ?><br>
|
||||
<?php echo "Invoice Date :" . $value->formatted_invoice_date ?><br>
|
||||
<?php if ($value->due_date) : echo "Due Date :". $value->formatted_due_date ?><br><?php endif; ?>
|
||||
<?php if ($invoice_type === '2') : ?>
|
||||
<?php foreach ($invoiceItems as $item) : ?>
|
||||
From Subscription : <?= date('d/m/y', strtotime($item->from_subscription)) ?><br>
|
||||
To Subscription : <?= date('d/m/y', strtotime($item->to_subscription)) ?><br>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="addresses-table" style="margin-left: 7px;">
|
||||
<tr>
|
||||
<th class="billing-address">Billing Address</th>
|
||||
<th class="shipping-address">Shipping Address</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="billing-address">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<?= $value->customer_name ?><br>
|
||||
<?php if($value->customer_bill_address && ($value->baddr_id !== null || $value->baddr_id !== '')){ ?>
|
||||
<?= $value->customer_bill_address ? $value->customer_bill_address." ," : ""?><br>
|
||||
<?= $value->customer_bill_city ? $value->customer_bill_city : "" ?> <?= $value->customer_bill_state ? $value->customer_bill_state : "" ?>
|
||||
<?= $value->customer_bill_postal_code ? " - " . $value->customer_bill_postal_code : ""; ?>
|
||||
<?= $value->customer_bill_country ? $value->customer_bill_country . "." : $value->bcountry ?><br>
|
||||
<?php }else if ($value->baddr_id === null || $value->baddr_id === '') {
|
||||
echo $value->billing_address ? '<p style="white-space: pre-line">'.$value->billing_address.'</p>' : '';
|
||||
} ?>
|
||||
<?= $value->mobile_no ? $value->mobile_no." ." : "" ?>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td class="shipping-address">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<?= $value->customer_name ?><br>
|
||||
<?php if($value->customer_ship_address && ($value->saddr_id !== null || $value->saddr_id !== '')){ ?>
|
||||
<?= $value->customer_ship_address ? $value->customer_ship_address." ," : "" ?><br>
|
||||
<?= $value->customer_ship_city ? $value->customer_ship_city : "" ?> <?= $value->customer_ship_state ? $value->customer_bill_state : "" ?>
|
||||
<?= $value->customer_ship_postal_code ? " - " . $value->customer_ship_postal_code : ""; ?>
|
||||
<?= $value->customer_ship_country ? $value->customer_ship_country . "." : $value->scountry ?><br>
|
||||
<?php }else if ($value->saddr_id === null || $value->saddr_id === '') {
|
||||
echo $value->shipping_address ? '<p style="white-space: pre-line">'.$value->shipping_address.'</p>' : '';
|
||||
} ?>
|
||||
<?= $value->mobile_no ? $value->mobile_no." ." : "" ?>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br> <br>
|
||||
<!-- table containing - addresses details ends -->
|
||||
<!-- table containing - invoice details -->
|
||||
<table class="invoice-related-table">
|
||||
<thead >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th style="text-align: left;">Item Name</th>
|
||||
<th>Qty</th>
|
||||
<th>Rate</th>
|
||||
|
||||
<th>Total</th>
|
||||
<th>Rate(₹)</th>
|
||||
<th>Total(₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -282,106 +269,134 @@
|
||||
<tr>
|
||||
<td style="display:flex;algin-items:flex-start">
|
||||
<?= $serialNumber++; ?>
|
||||
|
||||
</td>
|
||||
|
||||
<td><span style="font-size:10pt"><?= $item->title ?></span><br>
|
||||
<span ><?php if($item->description != ''){?><span style="font-size:6pt"><?php echo $item->description ?></span><?php }?></span>
|
||||
<span><?php if ($item->description != '') { ?><span style="font-size:6pt"><?php echo $item->description ?></span><?php } ?></span>
|
||||
</td>
|
||||
<td style="align-content: flex-start;text-align: start;"><?= $item->quantity ?></td>
|
||||
<td style="align-content: flex-start;text-align: start;">₹<?= number_format($item->unit_price, 2, '.', ',') ?></td>
|
||||
|
||||
|
||||
<td style="align-content: flex-start;">₹<?= number_format($item->subtotal, 2, '.', ',') ?></td>
|
||||
<td style="align-content: flex-start;text-align: start;"><?= number_format($item->unit_price, 2, '.', ',') ?></td>
|
||||
<td style="align-content: flex-start;"><?= number_format($item->subtotal, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="subtotal-table">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<!-- table containing - invoice details ends -->
|
||||
<!-- table containing - summary details -->
|
||||
<table class="summary-table mt-1">
|
||||
<?php if (!empty($data)) : ?>
|
||||
<tr>
|
||||
<td colspan="5" align="right">Subtotal : ₹<?= number_format($value->subtotal, 2, '.', ',') ?></td>
|
||||
<td colspan="6" style="width: 60%; vertical-align: top;">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<div class="notes-container">
|
||||
<?php if (!empty($value->reason)) : ?>
|
||||
<div style="text-align: left !important;">
|
||||
<h6>Reason</h6>
|
||||
<?php echo nl2br($value->reason); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($value->notes)) : ?>
|
||||
<div style="text-align: left !important;">
|
||||
<h6>Notes</h6>
|
||||
<?php echo nl2br($value->notes); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($value->payment_note)) : ?>
|
||||
<div style="text-align: left !important;">
|
||||
<h6>Payment Notes</h6>
|
||||
<?php echo nl2br($value->payment_note); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($value->terms)) : ?>
|
||||
<pre style="font-family: 'Times New Roman', Times, sans-serif; font-size: 12px; text-align: left;">
|
||||
<?= $row->terms ?>
|
||||
</pre>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<br>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td colspan="6" style="width: 40%; vertical-align: top;">
|
||||
<table class="subtotal-table" style="margin-top:20px;">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<td align="left">Subtotal</td>
|
||||
<td><?= '₹' . number_format($value->subtotal, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($value->dis_type == "%") {
|
||||
$dis_value = ($value->subtotal * $value->discount) / 100;
|
||||
$dis_percent = '(' . $value->discount . $value->dis_type . ')';
|
||||
} else {
|
||||
$dis_value = $value->discount ? $value->discount : 0;
|
||||
$dis_percent = '';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td align="left">Discount<?= $dis_percent; ?></td>
|
||||
<td><?= $dis_value ? "₹-" . number_format($dis_value, 2, '.', ',') : "₹" . number_format(0, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php if (!empty($value->shipping_label)) : ?>
|
||||
<tr>
|
||||
<td align="left"><?= ucwords($value->shipping_label) ?></td>
|
||||
<td><?= "₹" . number_format($value->shipping_charge, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$sign = ($value->total_amount >= $value->exact_total_amount) ? '₹' : '₹-';
|
||||
$difference = abs($value->exact_total_amount - $value->total_amount);
|
||||
?>
|
||||
<td align="left">Rounding</td>
|
||||
<td><?= $sign . number_format($difference, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td align="left">Total</td>
|
||||
<td><?= "₹" . number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php if ($value->status === 'Draft') : ?>
|
||||
<tr>
|
||||
<td align="left">Balance</td>
|
||||
<td><?= "₹" . number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($value->status === 'Approved') : ?>
|
||||
<tr>
|
||||
<td align="left">Paid</td>
|
||||
<td><?= "₹" . number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if($value->dis_type == "%"){
|
||||
$dis_value = ($value->subtotal * $value->discount) / 100;
|
||||
$dis_percent = '('.$value->discount.$value->dis_type.')';
|
||||
}else{
|
||||
$dis_value = $value->discount ? $value->discount : 0;
|
||||
$dis_percent = '';
|
||||
} ?>
|
||||
<td colspan="5" align="right">Discount<?=$dis_percent;?> : <?= $dis_value ? "-₹". number_format($dis_value, 2, '.', ',') : "₹".number_format(0, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
|
||||
<!-- -->
|
||||
<?php if ($value->shipping_label != '') : ?>
|
||||
<tr>
|
||||
<td colspan="5" align="right"><?= $value->shipping_label ?> : ₹<?= number_format($value->shipping_charge, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
|
||||
<?php
|
||||
$sign = ($value->total_amount >= $value->exact_total_amount) ? '+' : '-';
|
||||
$difference = abs($value->exact_total_amount - $value->total_amount);
|
||||
?>
|
||||
|
||||
<td colspan="5" align="right"> Rounding : <?= $sign . number_format($difference, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="right">Total : ₹<?= number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php if ($value->status === 'Draft') : ?>
|
||||
<!-- Set Balance if status is draft and paid is 0 -->
|
||||
<tr>
|
||||
<td colspan="5" align="right">Balance : ₹<?= number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($value->status === 'Approved') : ?>
|
||||
<tr>
|
||||
<td colspan="5" align="right">Paid : ₹<?= number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td colspan="6" style="width: 60%; vertical-align: top;">
|
||||
<div>
|
||||
<h4>Bank Details</h4>
|
||||
<?php echo nl2br($business['terms']); ?>
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="6" style="width: 40%; vertical-align: bottom;">
|
||||
<div class="terms-container">
|
||||
<!-- <img src="<?php // echo base_url('public/uploads/default_sign_sm.png'); ?>" alt="Authorized Signatory" class="Authorized-Signatory"> -->
|
||||
<div>
|
||||
<h6 style="text-align:center;">Authorized Signatory</h6>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="business-stamp">
|
||||
|
||||
</div>
|
||||
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<div class="terms">
|
||||
|
||||
<!-- <if(!empty($value->notes)){
|
||||
<br><p style="text-align: left !important;"><b>Notes:</b> $value->notes; ?></p>
|
||||
} ?> -->
|
||||
<?php if (!empty($value->reason)) { ?>
|
||||
<br>
|
||||
<p style="text-align: left !important;"><b>Reason:</b> <?= $value->reason; ?></p>
|
||||
<?php } ?>
|
||||
<?php foreach ($invoiceTerms as $row) :
|
||||
if (!empty($row->terms)) { ?>
|
||||
<br>
|
||||
<pre style="font-family: 'Times New Roman', Times, sans-serif; font-size: 12px; text-align: left;">
|
||||
<?= $row->terms ?>
|
||||
</pre>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="" style="margin-left: 9px;margin-top: -135px;">
|
||||
<h4 style="margin-bottom: 5px;">Bank Details</h4>
|
||||
|
||||
<?php echo nl2br($business['terms']); ?>
|
||||
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<!-- ... (your existing HTML template) -->
|
||||
|
||||
<!-- Add this to the end of your HTML template -->
|
||||
|
||||
|
||||
<!-- table containing - summary details ends -->
|
||||
<!-- table containing - footer details -->
|
||||
<table class="footer-table mt-3" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<center><small>WhatsApp No: 96004 78526 | Email: vijayabharatham78@gmail.com | Website: www.vijayabharatham.org</small></center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- table containing - footer details ends -->
|
||||
<!-- <img src="https://cdn.pixabay.com/photo/2012/04/26/14/17/blue-42596_960_720.png" /> -->
|
||||
</body>
|
||||
|
||||
|
||||
388
app/Views/invoice_pdf_template_old_design.php
Normal file
388
app/Views/invoice_pdf_template_old_design.php
Normal file
@ -0,0 +1,388 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
@page {
|
||||
size: 148mm 210mm; /* Width Height */
|
||||
}
|
||||
/* Add your CSS styles here to format the invoice for mPDF */
|
||||
td{
|
||||
/* display: flex;
|
||||
*/
|
||||
/* align-items: flex-start; */
|
||||
}
|
||||
body {
|
||||
|
||||
font-family: 'Times New Roman', Times, sans-serif;
|
||||
|
||||
color : black !important;
|
||||
font-size: 8pt;
|
||||
/* Change this value to your desired font size */
|
||||
}
|
||||
|
||||
|
||||
/* Style for the main table with border */
|
||||
table.main-table {
|
||||
width: 100%;
|
||||
margin-bottom: 1rem;
|
||||
/* border-collapse: collapse; */
|
||||
/* border: -0.5px solid black; */
|
||||
/* Add a border around the entire invoice */
|
||||
}
|
||||
|
||||
table.main-table th,
|
||||
table.main-table td {
|
||||
border: none;
|
||||
/* Remove borders from all cells inside the main table */
|
||||
/* padding: 8px; */
|
||||
}
|
||||
|
||||
/* Style for the table containing business details */
|
||||
table.business-details-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.business-details-table td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Style for the business logo and title */
|
||||
.business-logo-container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img.business-logo {
|
||||
max-width: 200px;
|
||||
/* Adjust the size of the logo */
|
||||
}
|
||||
|
||||
/* Style for the business name */
|
||||
.business-name {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Style for the table containing invoice info */
|
||||
table.invoice-info-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.invoice-info-table th,
|
||||
table.invoice-info-table td {
|
||||
text-align: right;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
/* Style for the addresses table */
|
||||
table.addresses-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.addresses-table th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Style for the billing and shipping addresses */
|
||||
.billing-address,
|
||||
.shipping-address {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
/* Style for the invoice-related table */
|
||||
table.invoice-related-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.invoice-related-table th,
|
||||
table.invoice-related-table td {
|
||||
border: none;
|
||||
/* Remove borders from all cells in the invoice items table */
|
||||
padding: 8px;
|
||||
/* text-align: center; */
|
||||
/* Center-align text in cells */
|
||||
}
|
||||
|
||||
table.invoice-related-table th {
|
||||
/* background-color: #f2f2f2; */
|
||||
background-color: #D0D0CD;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Style for the business stamp and terms */
|
||||
.business-stamp,
|
||||
.terms {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.subtotal-table {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.subtotal-table table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
/* Add a border around the subtotal table */
|
||||
}
|
||||
|
||||
.subtotal-table th,
|
||||
.subtotal-table td {
|
||||
border: none;
|
||||
/* Remove borders from cells inside the subtotal table */
|
||||
padding: 3px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.subtotal-table th {
|
||||
background-color: #f2f2f2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.subtotal-table td:last-child {
|
||||
font-weight: bold;
|
||||
/* Make the last column (total values) bold */
|
||||
}
|
||||
|
||||
td.invoice-number {
|
||||
font-size: 18px;
|
||||
/* Increase font size to your desired value */
|
||||
/* Highlight background color */
|
||||
font-weight: bold;
|
||||
/* Make the text bold */
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
|
||||
.test-works p {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="main-table">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="business-details-table">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<td class="business-logo-container">
|
||||
<img src="https://vijayabharathambooks.com/wp-content/uploads/2021/09/vijaya-bharatham-logo-8pt.png" alt="Business Logo" class="business-logo">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="test-works">
|
||||
<p> <?= $value->company_address ?>,<br>
|
||||
<?= $value->company_city ?>,
|
||||
<?= $value->company_state ?>
|
||||
<?= $value->company_postal_code ? " - " . $value->company_postal_code : "" ?>.</p>
|
||||
<p><?= $value->company_email ?></p>
|
||||
<p ><?= $value->company_mobile_no ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</td>
|
||||
<td style="padding: 8px!important">
|
||||
<table class="invoice-info-table">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<th><?php echo ($value->wp_api_order_id) ? 'Order # ' . $value->invoice_number : 'Invoice # ' . $value->invoice_number; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Invoice Date : <?= $value->formatted_invoice_date ?></th>
|
||||
</tr>
|
||||
|
||||
<?php if ($value->due_date) : ?>
|
||||
<tr>
|
||||
<th>Due Date : <?= $value->formatted_due_date ?></th>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($invoice_type === '2') : ?>
|
||||
<?php foreach ($invoiceItems as $item) : ?>
|
||||
<tr>
|
||||
<th>From Subscription : <?= date('d/m/y', strtotime($item->from_subscription)) ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>To Subscription : <?= date('d/m/y', strtotime($item->to_subscription)) ?></th>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="addresses-table" style="margin-left: 7px;">
|
||||
<tr>
|
||||
<th class="billing-address">Billing Address</th>
|
||||
<th class="shipping-address">Shipping Address</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="billing-address">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<?= $value->customer_name ?><br>
|
||||
<?php if($value->customer_bill_address && ($value->baddr_id !== null || $value->baddr_id !== '')){ ?>
|
||||
<?= $value->customer_bill_address ? $value->customer_bill_address." ," : ""?><br>
|
||||
<?= $value->customer_bill_city ? $value->customer_bill_city : "" ?> <?= $value->customer_bill_state ? $value->customer_bill_state : "" ?>
|
||||
<?= $value->customer_bill_postal_code ? " - " . $value->customer_bill_postal_code : ""; ?>
|
||||
<?= $value->customer_bill_country ? $value->customer_bill_country . "." : $value->bcountry ?><br>
|
||||
<?php }else if ($value->baddr_id === null || $value->baddr_id === '') {
|
||||
echo $value->billing_address ? '<p style="white-space: pre-line">'.$value->billing_address.'</p>' : '';
|
||||
} ?>
|
||||
<?= $value->mobile_no ? $value->mobile_no." ." : "" ?>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td class="shipping-address">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<?= $value->customer_name ?><br>
|
||||
<?php if($value->customer_ship_address && ($value->saddr_id !== null || $value->saddr_id !== '')){ ?>
|
||||
<?= $value->customer_ship_address ? $value->customer_ship_address." ," : "" ?><br>
|
||||
<?= $value->customer_ship_city ? $value->customer_ship_city : "" ?> <?= $value->customer_ship_state ? $value->customer_bill_state : "" ?>
|
||||
<?= $value->customer_ship_postal_code ? " - " . $value->customer_ship_postal_code : ""; ?>
|
||||
<?= $value->customer_ship_country ? $value->customer_ship_country . "." : $value->scountry ?><br>
|
||||
<?php }else if ($value->saddr_id === null || $value->saddr_id === '') {
|
||||
echo $value->shipping_address ? '<p style="white-space: pre-line">'.$value->shipping_address.'</p>' : '';
|
||||
} ?>
|
||||
<?= $value->mobile_no ? $value->mobile_no." ." : "" ?>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br> <br>
|
||||
<table class="invoice-related-table">
|
||||
<thead >
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th style="text-align: left;">Item Name</th>
|
||||
<th>Qty</th>
|
||||
<th>Rate</th>
|
||||
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $serialNumber = 1; ?>
|
||||
<?php foreach ($invoiceItems as $item) : ?>
|
||||
<tr>
|
||||
<td style="display:flex;algin-items:flex-start">
|
||||
<?= $serialNumber++; ?>
|
||||
|
||||
</td>
|
||||
|
||||
<td><span style="font-size:10pt"><?= $item->title ?></span><br>
|
||||
<span ><?php if($item->description != ''){?><span style="font-size:6pt"><?php echo $item->description ?></span><?php }?></span>
|
||||
</td>
|
||||
<td style="align-content: flex-start;text-align: start;"><?= $item->quantity ?></td>
|
||||
<td style="align-content: flex-start;text-align: start;">₹<?= number_format($item->unit_price, 2, '.', ',') ?></td>
|
||||
|
||||
|
||||
<td style="align-content: flex-start;">₹<?= number_format($item->subtotal, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="subtotal-table">
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<tr>
|
||||
<td colspan="5" align="right">Subtotal : ₹<?= number_format($value->subtotal, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if($value->dis_type == "%"){
|
||||
$dis_value = ($value->subtotal * $value->discount) / 100;
|
||||
$dis_percent = '('.$value->discount.$value->dis_type.')';
|
||||
}else{
|
||||
$dis_value = $value->discount ? $value->discount : 0;
|
||||
$dis_percent = '';
|
||||
} ?>
|
||||
<td colspan="5" align="right">Discount<?=$dis_percent;?> : <?= $dis_value ? "-₹". number_format($dis_value, 2, '.', ',') : "₹".number_format(0, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
|
||||
<!-- -->
|
||||
<?php if ($value->shipping_label != '') : ?>
|
||||
<tr>
|
||||
<td colspan="5" align="right"><?= $value->shipping_label ?> : ₹<?= number_format($value->shipping_charge, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
|
||||
<?php
|
||||
$sign = ($value->total_amount >= $value->exact_total_amount) ? '+' : '-';
|
||||
$difference = abs($value->exact_total_amount - $value->total_amount);
|
||||
?>
|
||||
|
||||
<td colspan="5" align="right"> Rounding : <?= $sign . number_format($difference, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="right">Total : ₹<?= number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php if ($value->status === 'Draft') : ?>
|
||||
<!-- Set Balance if status is draft and paid is 0 -->
|
||||
<tr>
|
||||
<td colspan="5" align="right">Balance : ₹<?= number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($value->status === 'Approved') : ?>
|
||||
<tr>
|
||||
<td colspan="5" align="right">Paid : ₹<?= number_format($value->total_amount, 2, '.', ',') ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
||||
<div class="business-stamp">
|
||||
|
||||
</div>
|
||||
|
||||
<?php foreach ($data as $value) : ?>
|
||||
<div class="terms">
|
||||
|
||||
<!-- <if(!empty($value->notes)){
|
||||
<br><p style="text-align: left !important;"><b>Notes:</b> $value->notes; ?></p>
|
||||
} ?> -->
|
||||
<?php if (!empty($value->reason)) { ?>
|
||||
<br>
|
||||
<p style="text-align: left !important;"><b>Reason:</b> <?= $value->reason; ?></p>
|
||||
<?php } ?>
|
||||
<?php foreach ($invoiceTerms as $row) :
|
||||
if (!empty($row->terms)) { ?>
|
||||
<br>
|
||||
<pre style="font-family: 'Times New Roman', Times, sans-serif; font-size: 12px; text-align: left;">
|
||||
<?= $row->terms ?>
|
||||
</pre>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="" style="margin-left: 9px;margin-top: -135px;">
|
||||
<h4 style="margin-bottom: 5px;">Bank Details</h4>
|
||||
|
||||
<?php echo nl2br($business['terms']); ?>
|
||||
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<!-- ... (your existing HTML template) -->
|
||||
|
||||
<!-- Add this to the end of your HTML template -->
|
||||
|
||||
|
||||
<!-- <img src="https://cdn.pixabay.com/photo/2012/04/26/14/17/blue-42596_960_720.png" /> -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user