<?php $__env->startSection('title','Depreciation '.$run->period); ?>
<?php $__env->startSection('crumbs','<a href="'.route('depreciation-runs.index').'">Depreciation Runs</a> · <b>'.$run->period.'</b>'); ?>
<?php $__env->startSection('content'); ?>
<div class="card"><div class="card-h"><h2>Depreciation <?php echo e($run->period); ?></h2>
<div class="sp no-print">
<?php if($run->journal): ?><a class="btn btn-sm btn-ghost" href="<?php echo e(route('journals.show',$run->journal->id)); ?>">JV <?php echo e($run->journal->journal_no); ?></a>
<a class="btn btn-sm btn-ghost" href="<?php echo e(route('journals.print',$run->journal->id)); ?>?pdf=1">📄 PDF</a><?php endif; ?>
</div></div>
<div class="card-b">
<p>Run date <b><?php echo e(fdate($run->run_date)); ?></b> · <b><?php echo e($run->assets_count); ?></b> assets · Total <b><?php echo e(cmoney($run->total_amount)); ?></b> · Posted by <?php echo e($run->runner->name ?? '—'); ?></p>
<div class="twrap"><table class="tbl">
<thead><tr><th>Asset</th><th>Name</th><th>Charge</th><th>Acc. before</th><th>Acc. after</th></tr></thead>
<tbody>
<?php $__currentLoopData = $run->lines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr><td><a href="<?php echo e(crud_url('fixed-assets','show',$l->fixed_asset_id)); ?>"><?php echo e($l->asset->asset_no ?? '#'.$l->fixed_asset_id); ?></a></td>
<td><?php echo e($l->asset->name ?? '—'); ?></td><td><b><?php echo e(money($l->monthly_charge)); ?></b></td>
<td><?php echo e(money($l->acc_before)); ?></td><td><?php echo e(money($l->acc_after)); ?></td></tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody></table></div>
</div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/user/nowills-sqc-erp/resources/views/depreciation/show.blade.php ENDPATH**/ ?>