<?php echo $__env->make('docs._printhead', ['title'=>'MAINTENANCE WORK ORDER','no'=>$w->wo_no,'date'=>'Reported: '.fdate($w->reported_date).' · Priority: '.ucfirst($w->priority)], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<div class="doc-meta"><div><b>Equipment:</b> <?php echo e($w->equipment->display_name); ?><br><b>Reg:</b> <?php echo e($w->equipment->registration_no ?? '—'); ?><br><b>Type:</b> <?php echo e($w->maintenance_type); ?></div>
<div><b>Reported by:</b> <?php echo e($w->reported_by); ?><br><b>Technician:</b> <?php echo e($w->assigned_technician ?? '—'); ?><br><b>Status:</b> <?php echo e(ucfirst($w->status)); ?></div></div>
<p><b>Problem:</b> <?php echo e($w->problem_description); ?></p>
<p><b>Work done:</b> <?php echo e($w->work_done ?? '—'); ?></p>
<div class="twrap"><table class="tbl"><thead><tr><th>#</th><th>Part</th><th class="r">Qty</th><th class="r">Rate</th><th class="r">Amount</th></tr></thead>
<tbody><?php $__currentLoopData = $w->parts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i=>$p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($i+1); ?></td><td><?php echo e($p->item->display_name ?? ''); ?></td><td class="r"><?php echo e(qty($p->qty)); ?></td><td class="r"><?php echo e(money($p->rate)); ?></td><td class="r"><?php echo e(money($p->amount)); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div>
<div class="totals"><div><span>Parts</span><span><?php echo e(money($w->parts_cost)); ?></span></div><div><span>Labour</span><span><?php echo e(money($w->labour_cost)); ?></span></div>
<div class="gt"><span>TOTAL</span><b><?php echo e(cmoney($w->total_cost)); ?></b></div></div>
<?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/work-order/print.blade.php ENDPATH**/ ?>