<?php $__env->startSection('title','Price History'); ?>
<?php $__env->startSection('content'); ?><div class="page-head"><div><h1>Price history</h1><p><?php echo e($product->product_code); ?> · <?php echo e($product->name_en); ?></p></div></div><div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>Date</th><th>Price type</th><th class="text-end">Old</th><th class="text-end">New</th><th>Changed by</th><th>Reference</th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $histories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $h): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td><?php echo e($h->created_at->format('d M Y H:i')); ?></td><td><?php echo e(str_replace('_',' ',ucfirst($h->price_type))); ?></td><td class="text-end"><?php echo e(number_format((float)$h->old_price,4)); ?></td><td class="text-end fw-bold"><?php echo e(number_format((float)$h->new_price,4)); ?></td><td><?php echo e($h->changedBy?->name); ?></td><td><?php echo e($h->reference); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="6" class="text-center text-muted py-5">No price changes recorded.</td></tr><?php endif; ?></tbody></table></div></div><?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\saudi\resources\views\products\price_history.blade.php ENDPATH**/ ?>