main
parent
1452a3a093
commit
c27a11836a
|
@ -21,7 +21,7 @@ if ($invoiceInfo['tenure'] > 1) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="container my-5">
|
<div class="container my-5">
|
||||||
<div class="invoice-box">
|
<div class="invoice-box" id="invoice-box">
|
||||||
<h2 class="text-center fw-bold" style="color: #374151;">Invoice</h2><hr>
|
<h2 class="text-center fw-bold" style="color: #374151;">Invoice</h2><hr>
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<div class="w-100">
|
<div class="w-100">
|
||||||
|
@ -96,9 +96,12 @@ if ($invoiceInfo['tenure'] > 1) {
|
||||||
<p class="text-muted mt-3"><strong>Admin Note:</strong> <?= $invoiceInfo['adminNote'] ?></p>
|
<p class="text-muted mt-3"><strong>Admin Note:</strong> <?= $invoiceInfo['adminNote'] ?></p>
|
||||||
|
|
||||||
<!-- Print Button -->
|
<!-- Print Button -->
|
||||||
|
<div class="d-flex gap-1">
|
||||||
|
<button onclick="downloadPDF()" class="btn text-white btn-print w-100" style="background-color: #374151;">Download Invoice</button>
|
||||||
<button onclick="window.print()" class="btn text-white btn-print w-100" style="background-color: #374151;">Print Invoice</button>
|
<button onclick="window.print()" class="btn text-white btn-print w-100" style="background-color: #374151;">Print Invoice</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<script src="/assets/js/html2pdf.bundle.min.js"></script>
|
<script src="/assets/js/html2pdf.bundle.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function downloadPDF() {
|
function downloadPDF() {
|
||||||
|
|
Loading…
Reference in New Issue