File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/app/storage/views/cccf94cc5733e07c6f92427c1fd018df
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style> @page { margin-top: 0; } table { font-size: 15px; } body { font-family: "Helvetica", "Arial", sans-serif; /*font-size: 15px;*/ font-size: 15px; margin: 0; padding: 0; } address { font-style: normal; font-size: 15px; padding-left: 93px; } address.shipping { margin-top: 5px; } address strong { margin-bottom: 2px; display: block; } .subtotal td { border-top: #000000 solid 1px; padding-top: 10px; } .total td { font-size: 15px; padding-top: 10px; } .order-overview th { padding-bottom: 5px; } .order-overview .order-overview-product td { vertical-align: top; padding: 5px 0 3px 0; } .order-overview .order-overview-product td div{ display: inline-block; } .order-overview .order-overview-product td:first-child { width: 30px; } .order-overview .order-overview-product.composite td { border-top: none; color: #bababa; } .order-overview .order-overview-product.composite td .checkmarkbox { margin-left: 70px; } .order-overview .order-overview-product.composite td:first-child { text-align: right; } .order-overview-product-composition td { font-size: 15px; padding: 0 0 2px 0; } .order-overview-product-composition-item td { font-size: 15px; padding: 3px 0; } .order-overview th { border-top: solid 1px #000000; border-bottom: solid 1px #000000; vertical-align: middle; padding-top: 3px; } .footer { page-break-after: always; } .footer:last-of-type { page-break-after: auto; } .row { display: block; } .col-12 { display: inline-block; width: 100%; } .col-9 { display: inline-block; width: 75%; } .col-8 { display: inline-block; width: 66%; } .col-6 { display: inline-block; width: 50%; } .col-7 { display: inline-block; width: 58.333333%; } .col-4 { display: inline-block; width: 33%; } .col-5 { display: inline-block; width: 41.6666%; } .col-3 { display: inline-block; width: 25%; } .col-2 { display: inline-block; width: 16.666666%; } .col-1 { display: inline-block; width: 8.333333%; } .remarks { width: 277px; border-spacing: 0; margin-bottom: 8px; } .remarks td, .remarks th { border: solid 1px black; text-align: left; padding: 2px; vertical-align: top; } .remarks th { border-bottom: none; height: 28px; line-height: 28px; vertical-align: middle; } .remarks td { height: 100px; } .pickerpackers { width: 277px; border-spacing: 0; border-collapse: collapse; } .pickerpackers td, .pickerpackers th { border: solid 1px black; text-align: left; padding: 2px; vertical-align: top; } .pickerpackers td { height: 50px; } .header, .header th { text-align: left; } .header td, .header th { padding-top: 2px; padding-bottom: 2px; } .header { border-bottom: solid 1px black; } .header th { border-top: solid 1px #000000; } .header .order-nr { padding-left: 10px; width: 20%; } .header .middle, .header .customer { width: 20%; } .header .shipping { padding-right: 10px; width: 20%; } .header .spacing { width: 5%; } /*order-nr customer middle shipping */ .checkbox { border: solid 1px #000000; width: 15px; height: 15px; display: block; margin-left: 10px; } .spacer { height: 100px; display: block; } .sign-blocks { margin-top: 50px; width: 100%; clear: both; } .sign-blocks { float: right; margin-top: 20px; display: block; } .sign-blocks p.title { width: 100px; } .ready-block { border: solid 1px #000000; width: 150px; display: block; height: 25px; } .worker-block { border: solid 1px #000000; width: 150px; height: 50px; display: block; float: left; } /*First row */ .first-row { /*height: 375.355px; !* +/- 9.8cm for pdf*!*/ height: 313.355px; /* +/- 9.8cm for browser*/ } .address { vertical-align: top; } .address.shipping address { vertical-align: top; padding-left: 50px; } h1 { text-align: right; margin-top: 50.455px; margin-bottom: 50px; font-size: 32px; padding-right: 10px; } th.quantity { padding-right: 15px; } .order-overview-product-quantity, .quantity { /*text-align: right;*/ } .order-overview-product-free { /* text-align: right;*/ /*width: 10px;*/ padding-right: 5px; } table td:before, table th:before { content: ""; } td .checkmarkbox { width:18px; height:16px; border: 1px solid #000000; margin-right: 10px; right: 10px; } </style> </head> <body> <?php foreach($orders as $order): ?> <?php
//Set the locale to the language of the order
\App::setLocale($order->language->iso_2);
?>
<div class="first-row">
<h1><?php echo Lang::get('partials/orderOverview.delivery_note'); ?></h1>
<div class="row first-row">
<div class="col-7 address">
<address>
<strong><?php echo Lang::get('partials/orderOverview.shipping_address'); ?></strong>
<?php if(!empty($order->dpd_carrier_shop_id)): ?>
<?php echo $order->getFullDpdAddress(); ?>
<?php else: ?>
<?php echo $order->getFullShippingAddress(); ?>
<?php endif; ?>
<br/>
<?php echo $order->invoice_email; ?>
</address>
</div>
<div class="col-3">
<table class="remarks">
<tr>
<th style="position:relative">
<?php echo Lang::get('partials/orderOverview.remarks'); ?>
<?php if($order->internal_remarks): ?>
<span style="position:absolute;top:-2px;right:20px;">!</span>
<?php endif; ?>
</th>
</tr>
<tr>
<td>
<?php if(!empty($order->dpd_carrier_shop_id)): ?>
<strong>DPD ParcelShop</strong>
<hr/>
<?php endif; ?>
<?php echo $order->remarks; ?>
</td>
</tr>
</table>
<table class="pickerpackers">
<tr>
<th><?php echo Lang::get('partials/orderOverview.packedBy'); ?></th>
<th><?php echo Lang::get('partials/orderOverview.checkedBy'); ?></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="row">
<?php /*<table width="546.95pt" cellpadding="0" cellspacing="0" border="0" class="header">*/ ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="header">
<tr>
<th class="order-nr"><?php echo Lang::get('partials/orderOverview.order_number'); ?></th>
<th class="spacing"> </th>
<th class="customer"><?php echo Lang::get('partials/orderOverview.customer_number'); ?></th>
<th class="spacing"> </th>
<th class="middle"><?php echo Lang::get('partials/orderOverview.order_date'); ?></th>
<th class="spacing"> </th>
<th class="shipping"><?php echo Lang::get('partials/orderOverview.shipping_date'); ?></th>
</tr>
<tr>
<td class="order-nr"><?php echo $order->order_number; ?></td>
<td class="spacing"></td>
<td>
<?php if($order->customer): ?> <?php echo $order->customer->customer_number; ?> <?php endif; ?>
</td>
<td class="spacing"></td>
<td class="middle"><?php echo \Carbon\Carbon::parse($order->ordered_at)->format('d-m-Y'); ?></td>
<td class="spacing"></td>
<td class="shipping"><?php echo \Carbon\Carbon::now()->format('d-m-Y'); ?></td>
</tr>
</table>
</div>
<p> </p>
<div class="row">
<?php /*<table width="546.95pt" cellpadding="0" cellspacing="0" border="0" class="order-overview">*/ ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="order-overview">
<tr>
<th></th>
<th align="left" width="100px"><?php echo Lang::get('partials/orderOverview.article_nr'); ?></th>
<th align="left"><?php echo Lang::get('partials/orderOverview.description'); ?></th>
<th align="left" width="75px"><?php echo Lang::get('partials/orderOverview.location'); ?></th>
<th colspan="2" class="quantity" align="center"
width="70px"><?php echo Lang::get('partials/orderOverview.quantity'); ?></th>
</tr>
<?php foreach($order->products as $product): ?>
<tr class="order-overview-product">
<?php if($product->pick_number!='compositie'): ?>
<td><div class="checkmarkbox"></div></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<td><?php echo $product->internal_article_number; ?></td>
<td class="order-overview-product-description"><?php echo $product->title; ?>
<?php if($product->getCompositionAsObject() == null): ?>
- <em><?php echo $product->description; ?></em>
<?php endif; ?>
</td>
<td><strong><?php echo ($product->pick_number!='compositie'?$product->pick_number:''); ?></strong></td>
<td class="order-overview-product-quantity" align="right"><?php echo $product->quantity; ?></td>
<td class="order-overview-product-free" align="left">
<?php if($product->discount_number_of_items_for_free > 0): ?>
+ <?php echo $product->discount_number_of_items_for_free; ?>
<?php else: ?>
<?php endif; ?>
</td>
<?php /*<td><?php echo print_r($product->toArray()); ?></td>*/ ?>
</tr>
<?php foreach($product->getCompositionAsObject() as $composite): ?>
<tr class="order-overview-product composite">
<td> </td>
<?php if($product->pick_number=='compositie'): ?>
<td><div class="checkmarkbox"></div></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<td class="order-overview-product-description">
<?php echo $composite->type; ?> - <?php echo property_exists($composite, 'size') ? $composite->size : ''; ?> - <?php echo property_exists($composite, 'class') ? $composite->class : ''; ?>
<?php if(isset($composite->special)): ?>- <span style="text-decoration: underline;"><?php echo $composite->special; ?></span> <?php endif; ?>
</td>
<td>
<?php if($product->pick_number=='compositie'): ?>
<strong> <?php echo isset($composite->picknummer) ? $composite->picknummer : '?'; ?></strong>
<?php else: ?>
<?php endif; ?>
</td>
<td class="order-overview-product-quantity"
align="right"><?php echo $composite->quantity * $product->quantity; ?></td>
<td class="order-overview-product-free" align="left">
<?php if($product->discount_number_of_items_for_free > 0): ?>
+ <?php echo $product->discount_number_of_items_for_free* $composite->quantity; ?>
<?php else: ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
</table>
</div>
<div class="footer"></div>
<?php endforeach; ?>
</body>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
window.print();
window.onafterprint = function() { history.go(-1) };
});
</script>
</html>