HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/app/application/views/admin/invoice/invoice_template_html.php
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Punjab Motors Invoice</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap" rel="stylesheet"> 
    <style>
		@media only screen and (max-width: 767px) 
		{
			table {
				width: 100% !important;
				padding: 5px !important;
				}
			table tr td
			{
				font-size:9px;
			}
			.inner-table
			{
				padding: 0px !important;
			}
			body
			{
				/*background-color: #F7EDEB;*/
			}

		}
	</style>
  </head>
  <body style="position: relative;color: #001028;font-family: 'Open Sans', sans-serif;font-size: 14px;">
  	<?php
    $bg_url="../../public/admin_assets/images/bg.png";
    ?> 
  	<!-- <table width="100%" style="width: 900px;max-width: 100%;margin: 0 auto;padding: 20px 40px;background-color: #F7EDEB;background-size: 100% auto;">  -->
  		<table width="100%" style="width: 900px;max-width: 100%;margin: 0 auto;padding: 20px 40px;background-color: #ffffff;background-size: 100% auto;"> 
  		
  		<tr>
  			<td style="vertical-align: top;">
				<table width="100%" style="border-bottom: 1px solid #ccc;margin-bottom: 15px;">
					<tr>
						<td>
							 <img src="../../public/admin_assets/images/logo_pdf.png" alt="logo"> 
							
						</td>
						
						<td style="text-align: right;vertical-align: top;">
							<h3 style="margin: 0;color: #f7cb53;"><?php echo $invoice_template_details['name']; ?></h3>
							<p style="margin:2px 0;color: #666;"><?php echo $invoice_template_details['address']; ?></p>
							<p style="margin:2px 0;color: #666;"><?php echo $invoice_template_details['phone']; ?></p>
							<!-- <p style="margin:2px 0;color: #666;">61 3 9540 8998</p> -->
							<strong>A.B.N <?php echo $invoice_template_details['abn']; ?></strong>
							<p style="margin:2px 0;color: #666;">Email : <?php echo $invoice_template_details['email']; ?></p>
						</td>
					</tr>
					<tr>
						<td colspan="2"><h1 style="margin: 0 0 9px 0;text-align: center;font-size: 18px;color: #000;">TAX INVOICE</h1></td>
					</tr>
				</table>
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<h2 style="margin:0 0 15px 0;background: #f7cb53;color: #fff;display: inline-block;padding:2px 5px;">INVOICE #<?php echo $invoice_details['invoice_no']; ?></h2>
						</td>
					</tr>
					<tr>
						<td>
							
							<p style="color:#666;margin: 2px 0;display: block;">Invoice To: <b><?php echo $invoice_details['customer_name']; ?></b></p> 
							<!-- <p style="color:#666;margin: 2px 0;display: block;"><?php echo $invoice_details['street_no'].' '.$invoice_details['street'].' '.$invoice_details['suburb'].' '.$invoice_details['post_code']; ?></p> -->
							<p style="color:#666;margin: 2px 0;display: block;">Mobile: <?php echo $invoice_details['contact_no']; ?></p>
							<p style="color:#666;margin: 2px 0;display: block;">Email: <?php echo $car['email']; ?></p>
							<p style="color:#666;margin: 2px 0;display: block;">Address: <?php echo $car['unit_no']." ".$car['street_no']." ".$car['street']."  ".$car['suburb']." ".$car['post_code']; ?></p>
						</td>
						<td style="text-align: right;vertical-align: top;">
						<p style="color:#666;margin: 2px 0;display: block;"><strong>Invoice Date :</strong><?php echo date('d/m/Y',strtotime($invoice_details['date_of_creation'])); ?></p>
						<p style="color:#666;margin: 2px 0;display: block;"><strong>Car No :</strong><?php echo $invoice_details['car_no']; ?></p>
						<p style="color:#666;margin: 2px 0;display: block;"><strong>Speedo(Km) :</strong><?php echo $invoice_details['speedo_meter']; ?></p>
						</td>
					</tr>
				</table>
				<table style="width:100%;border-collapse: collapse;margin-top: 15px;margin-bottom: 15px;" cellpadding="0" cellspacing="0" border="0">
						<thead>
							<tr>
								<th style="background: #f7cb53;padding: 7px 10px;text-align: left;" width="30%">Item Details</th>
								<th style="background: #f7cb53;padding: 7px 10px;text-align: left;text-align: right;" width="20%">Quantity</th>
								<th style="background: #f7cb53;padding: 7px 10px;text-align: left;text-align: right;" width="25%">Price</th>
								<th style="background: #f7cb53;padding: 7px 10px;text-align: right;" width="25%">Total $</th>
							</tr>
						</thead>
						<?php foreach($item_list as $key => $item) { ?>
						<tr>
							<td style="vertical-align: top;padding: 10px 10px;border-bottom: 1px solid #ddd;"><?php echo $item['item']; ?></td>
							<td style="vertical-align: top;padding: 10px 10px;border-bottom: 1px solid #ddd;text-align: right;"><?php echo $item['quantity']; ?></td>
							<td style="vertical-align: top;padding: 10px 10px;border-bottom: 1px solid #ddd;text-align: right;">$ <?php echo $item['unit_price']; ?></td>
							<td style="vertical-align: top;padding: 10px 0px 10px 10px;border-bottom: 1px solid #ddd;text-align: right;">$ <?php echo $item['total_price']; ?></td>
						</tr>
						<?php } ?>
						<tr>
							<td style="vertical-align: top;padding: 10px 10px;" colspan="2">
								<strong>Bank Details</strong>
								<p style="margin: 4px 0;"><?php echo $invoice_template_details['bank_name']; ?></p>
								<p style="margin: 4px 0;">BSB No:&nbsp;&nbsp;<?php echo $invoice_template_details['bsb']; ?></p>
								<p style="margin: 4px 0;">Account No:&nbsp;&nbsp;<?php echo $invoice_template_details['account_no']; ?></p>
								<p style="margin: 4px 0;">Payment ref:&nbsp;&nbsp;<?php echo $invoice_details['invoice_no']; ?> </p>
							</td>
							<td style="vertical-align: top;text-align: right;padding: 10px 0;"><strong>Total </strong>(INC GST)
								<table width="100%" class="inner-table">
									<tr>
										<td style="vertical-align: top;text-align: right;"><strong>Total Paid</strong></td>
									</tr>
									<tr>
										<td style="vertical-align: top;text-align: right;"><strong>Total Due</strong></td>
									</tr>
								</table>
							</td>
							<td style="vertical-align: top;text-align: right;padding: 10px 0;">$ <?php echo $invoice_details['total_amount']; ?>
								<table width="100%" class="inner-table">
									<tr>
										<td style="vertical-align: top;text-align: right;">$ <?php echo $total_payment; ?></td>
									</tr>
									<tr>
										<td style="vertical-align: top;text-align: right;">$ <?php echo $due_amout; ?></td>
									</tr>

								</table>
							</td>
							
						</tr>
						
					</table>
					
					<table width="100%" style="border-top: 1px solid #ccc;margin-bottom: 15px;">
					
					<tr>
						<td><strong>Notes  </strong>
								<p style="margin: 4px 0;"><?=( $invoice_details['notes'])?$invoice_details['notes']:'N/A' ?></p></td>
					</tr>
					</table>
					
					
					<table width="100%" style="border-top: 1px solid #ccc;margin-bottom: 15px;">
					<?php 
						if($invoice_details['is_paid'] == 0){
							$payment_status = "UNPAID";
							
						}else if($invoice_details['is_paid'] == 1){
							$payment_status = "PAID";
							
						}else if($invoice_details['is_paid'] == 2){
							$payment_status = "PARTIALLY PAID";
						}
					?>
					<tr>
						<td><h1 style="margin: 0 0 9px 0;text-align: center;font-size: 24px;font-weight:bold;color: red;"><?=$payment_status?></h1></td>
					</tr>
					</table>

					<table style="width:100%;border-collapse: collapse;margin-top: 15px;margin-bottom: 15px;" cellpadding="0" cellspacing="0" border="0" class="footer-bottom">
						<tr>
							<td>
								<p style="font-size: 17px;text-align: center;color: #666;">Other Professional services @ Punjab Motors.</p>
							</td>
						</tr>
						<tr>
							<td style="text-align: center;">
								<span style="border: 1px dashed #f7cb53;color: #f7cb53;padding: 2px 7px;margin: 5px 5px;display: inline-block;font-weight: 900;">TAXI INSURANCE</span>
								<span style="border: 1px dashed #f7cb53;color: #f7cb53;padding: 2px 7px;margin: 5px 5px;display: inline-block;font-weight: 900;">TAXI EFTPOS TERMINALS</span>
								<span style="border: 1px dashed #f7cb53;color: #f7cb53;padding: 2px 7px;margin: 5px 5px;display: inline-block;font-weight: 900;">PANEL BEATING</span>
								<span style="border: 1px dashed #f7cb53;color: #f7cb53;padding: 2px 7px;margin: 5px 5px;display: inline-block;font-weight: 900;">OVERSEAS MONEY TRANSFERS</span>
								
							</td>
						</tr>
						<tr>
							<td>
								<a href="https://pmw24.com.au" style="text-align: center;display: block;color: #000;font-size:17px;font-weight: 700;margin: 22px 0 0 0;">For more info visit our website: www.pmw24.com.au</a>
							</td>
						</tr>
					</table>
				</td>
  			</tr>
		</table>
 	 </body>
</html>