<?php echo $__env->make('docs._printhead', ['title'=>'DELIVERY NOTE / GATE PASS','no'=>$d->dn_no,'date'=>'Date: '.fdate($d->dn_date)], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<div class="doc-meta"><div><b>Customer:</b><br><b><?php echo e($d->customer->name); ?></b><br><?php echo e($d->customer->phone); ?><br><b>Order:</b> <?php echo e($d->salesOrder->order_no ?? '—'); ?></div>
<div><b>Vehicle:</b> <?php echo e($d->vehicle_no ?? '—'); ?><br><b>Driver:</b> <?php echo e($d->driver_name ?? '—'); ?><br><b>Gate pass:</b> <b style="font-size:16px"><?php echo e($d->gate_pass_no); ?></b><br><b>WB ticket:</b> <?php echo e($d->ticket->ticket_no ?? '—'); ?> (net <?php echo e($d->ticket ? qty($d->ticket->net_weight).'t' : '—'); ?>)</div></div>
<div class="twrap"><table class="tbl"><thead><tr><th>#</th><th>Product</th><th class="r">Qty (t)</th><th class="r">Rate</th><th class="r">Amount</th></tr></thead>
<tbody><?php $__currentLoopData = $d->lines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i=>$l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($i+1); ?></td><td><?php echo e($l->product->display_name ?? ''); ?></td><td class="r"><?php echo e(qty($l->qty_tonnes)); ?></td><td class="r"><?php echo e(money($l->rate)); ?></td><td class="r"><?php echo e(money($l->amount)); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div>
<div class="totals"><div><span>Subtotal</span><b><?php echo e(money($d->subtotal)); ?></b></div>
<div><span>Tax</span><span><?php echo e(money($d->tax_amount)); ?></span></div>
<div class="gt"><span>TOTAL</span><b><?php echo e(cmoney($d->grand_total)); ?></b></div></div>
<p class="small"><b>Security / gate:</b> verify gate pass <b><?php echo e($d->gate_pass_no); ?></b> and vehicle <b><?php echo e($d->vehicle_no); ?></b> before exit. Dispatched by <?php echo e($d->dispatched_by); ?>.</p>
<?php echo $__env->make('docs._printfoot', [], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php /**PATH /home/user/nowills-sqc-erp/resources/views/docs/delivery/print.blade.php ENDPATH**/ ?>