body { font-family: Arial, sans-serif; margin: 0; } .header { background:#0b3b8f; color:#fff; padding:20px; } .header h1 { margin:0; font-size:32px; } .section-title { background:#0b3b8f; color:#fff; padding:6px; font-size:16px; margin-top:20px; } .table { width:100%; border-collapse:collapse; margin-top:5px; } .table th { background:#0b3b8f; color:#fff; padding:8px; } .table td { border:1px solid #ddd; padding:8px; } .footer { text-align:center; margin-top:50px; font-size:18px; color:#0b3b8f; font-weight:bold; } .watermark { position:absolute; top:40%; left:20%; opacity:0.1; width:60%; }

INVOICE

Invoice No: '.$invoice["invoice_no"].'
Invoice Date: '.$invoice["invoice_date"].'
State: '.$invoice["state_name"].'

Invoice To:

'.$invoice["customer_name"].'
'.$invoice["customer_address"].'
'.$invoice["customer_phone"].'
DESCRIPTION
'; while($row = mysqli_fetch_assoc($items)){ $html .= ' '; } $html .= '
Description Qty Cost GST % Subtotal
'.$row["item_name"].' '.$row["item_qty"].' '.$row["item_price"].' '.$row["item_gst"].'% '.$row["item_total"].'

Total: ₹ '.$invoice["grand_total"].'

PAYMENT DETAILS

Digital Get Way LLP
Account: 50200065381752
IFSC: HDFC0000349
Bank: HDFC BANK LTD

Contact Us

Phone: +91-**********
Website: www.digitalgetwayllp.com
'; $dompdf = new Dompdf(); $dompdf->loadHtml($html); $dompdf->setPaper("A4", "portrait"); $dompdf->render(); $dompdf->stream("Invoice-$invoice_id.pdf"); ?>