vb_book/app/Views/address_pdf_template.php
2024-10-29 15:37:48 +05:30

78 lines
2.7 KiB
PHP
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shipping Label Template</title>
<style>
body{
font-family:Helvetica!important;
line-height:24px;
color:#000!important;
}
.invoice {
width: 4in;
/* height: 6in; */
margin: 20px auto;
border: 1px solid #fff;
padding:15px;
box-sizing: border-box;
}
.header {
text-align: center;
background:#fff!important;
}
.business-logo {
max-width:175px;
height: auto;
width:100%;
}
.bill-details {
margin-bottom: 20px;
}
.customer-details {
margin-top: 20px;
}
.row {
clear: both;
}
</style>
</head>
<body>
<?php
foreach ($invoiceData as $value) :
?>
<div class="invoice">
<div class="bill-details">
<?= $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 : "" ?>&nbsp;<?= $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." ." : "" ?>
</div>
<div class="header">
<div style="float:left; width:80px;margin-right:10px;"><img src="https://vbp.venbait.in/wp-content/uploads/2023/05/1111.png" alt="Business Logo" class="business-logo"/></div>
<div style="text-align:left;font-size:12px;">From<br/>
<?= $value->company_name; ?><br>
<?= $value->company_address; ?><br>
<?= $value->company_city; ?> - <?= $value->company_postal_code; ?>
<?= 'Mobile : '.$value->company_mobile_no; ?>
</div>
</div>
<?php endforeach; ?>
</body>
</html>