File: /var/www/vhost/disk-apps/agile-selling-wpb/resources/views/print_invoice/print_invoice.blade.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>IGT Invoice</title>
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5,shrink-to-fit=no" />
<style type="text/css">
body { font: normal 11px Arial; color: #111; margin: 0; padding: 0;}
h1, h2, h3, h4, h5, h6, p { margin: 0;}
.aPrint { font-size: 30px;
padding: 10px;
text-align: center;
display: table;
width: calc(100% - 20px);
background-color: #e1e1e1;
color: #111;
text-decoration: none;
margin: 0 0 20px;}
.dvWrap { width: 220px; margin: 0 auto; padding: 0; display: flex; flex-direction: column;}
header { border-bottom: solid 5px #111; padding-bottom: 10px; margin-bottom: 10px;}
header img { width: 120px; height: auto; display: table; margin: 0 auto 10px;}
header h3 { border-top: solid 5px #111; padding: 10px 0; font-size: 20px; text-align: center;}
header h3 span { font-weight: normal; }
header .pLoc { text-align: center; padding-bottom: 10px; }
header .pBill { border-bottom: solid 5px #111; padding-bottom: 10px; margin-bottom: 10px;}
main { }
main table { font-size: 10px; }
main .tdName { font-weight: bold;}
main .tdCost { font-weight: bold; text-align:right;}
main .tdDesc { padding: 5px 0 10px;}
footer { border-top: solid 5px #111; margin: 10px 0 0 0; padding: 10px 0 0 0;}
footer h3 { border-top: solid 5px #111; padding-top: 10px;}
footer p { margin: 0 0 20px; text-align: justify;}
footer img { width: 80px; height: auto; margin: 0 auto 5px; display: table;}
footer span { display: table; width: 100%; text-align: center; font-size: 16px;}
footer table { margin: 0 0 10px;}
footer table tr td:last-child { text-align: right;}
@media print {
@page {
/*size: 58mm;
margin: 0;*/
}
a.aPrint { display: none;}
.dvWrap { width: 58mm;}
}
</style>
</head>
<body>
<div class="dvWrap">
<header>
<a href="javascript:print();" class="aPrint">Print</a>
<img src={{ asset('img/igt_black.png') }} />
@if ($city_db == 'miami-db')
<p class="pLoc"><b>Miami Location</b><br />5260 NW 167th Street Miami, FL 33014<br />(305)828-2323<br />sales@igt-glasshardware.com</p>
@elseif($city_db == 'orlando-db')
<p class="pLoc"><b>Orlando Location</b><br />1700 35th Street Orlando, FL 32839<br />(305)828-2323<br />sales@igt-glasshardware.com</p>
@else
<p class="pLoc"><b>West Palm Beach Location</b><br />8460 Belvedere Rd West Palm Beach, FL 33411<br />(305)828-2323<br />sales@igt-glasshardware.com</p>
@endif
<h3>Invoice <span>#{{explode("/", $order->bo_invoice)[0]}}</span></h3>
<p class="pBill"><b>Bill To:</b><br />{{$order->client->first_name}} - {{$order->client->document}}<br />{{$order->address->direction}} {{$order->address->city_id}}</p>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Sales Rep.</th>
<th>Carrier</th>
<th>PO#</th>
</tr>
<tr>
<td>{{$order->admin->first_name}} {{$order->admin->last_name}}</td>
<td>{{$order->boShippingType->name}}</td>
<td>{{$order->bo_purchase_order}}</td>
</tr>
</table>
</header>
<main>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
@foreach($order->orderProducts as $order_product)
<tr>
<td class="tdName">{{$order_product->products->plu}}</td>
<td>{{$order_product->quantity}} @ {{$order_product->price}}</td>
<td class="tdCost">${{$order_product->price * $order_product->quantity}}</td>
</tr>
<tr>
<td colspan="3" class="tdDesc">{{$order_product->products->name}}</td>
</tr>
@endforeach
</table>
</main>
<footer>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>Subtotal</td>
<td>${{$order->subtotal}}</td>
</tr>
<tr>
<td>Freight</td>
@if($order->cost_delivery == 0)
<td>${{$order->cost_delivery}}.00</td>
@else
<td>${{$order->cost_delivery}}</td>
@endif
</tr>
<tr>
<td>Sales Tax</td>
<td>${{$order->tax}}</td>
</tr>
<tr>
<td>Total</td>
<td>${{$order->total_price}}</td>
</tr>
</table>
<h3>Return Policy:</h3>
<p>All returns/exchanges must be made within the 30 days of the original purchase date and products must be on the original packaging. After 30 days we will not accept any returns. Brass, Oil Rubbed Bronze and Matte Black finishes are final sale with no exceptions. There are NO refunds, only store credit will be applied.</p>
<img src="data:image/svg+xml;base64,{{ base64_encode($codigoQR) }}" alt="" />
<span>#{{explode("/", $order->bo_invoice)[0]}}</span>
</footer>
</div>
</body>
</html>