
<?php $__env->startSection('title', 'Detail Pesanan Reseller'); ?>
<?php $__env->startSection('content'); ?>

<div class="container">
    <div class="mb-3">
        <strong>Reseller:</strong> <?php echo e($resellerOrder->reseller->name ?? '-'); ?>

    </div>
    <div class="mb-3">
        <strong>Tanggal Order:</strong> <?php echo e($resellerOrder->order_date->format('d F Y')); ?>

    </div>
    <div class="mb-3">
        <strong>No. Nota:</strong> <?php echo e($resellerOrder->invoice_number ?? '-'); ?>

    </div>
    <div class="mb-3">
        <strong>Total:</strong> Rp <?php echo e(number_format($resellerOrder->total,0,',','.')); ?>

    </div>

    <h5>Produk</h5>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>Nama Produk</th>
                <th>Jumlah</th>
                <th>Harga</th>
                <th>Subtotal</th>
            </tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $resellerOrder->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr>
                    <td><?php echo e($detail->product->name); ?></td>
                    <td><?php echo e($detail->qty); ?></td>
                    <td>Rp <?php echo e(number_format($detail->price, 0, ',', '.')); ?></td>
                    <td>Rp <?php echo e(number_format($detail->qty * $detail->price, 0, ',', '.')); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr>
                    <td colspan="4" class="text-center">Tidak ada produk</td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>

    <?php if (isset($component)) { $__componentOriginalb04da7a8feb93a7268b6e0eef6b32739 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.gold-button','data' => ['type' => 'button','onclick' => 'window.location.href=\''.e(route('reseller-orders.index')).'\'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('gold-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'button','onclick' => 'window.location.href=\''.e(route('reseller-orders.index')).'\'']); ?>
        <i class="bi bi-arrow-left"></i> Kembali
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739)): ?>
<?php $attributes = $__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739; ?>
<?php unset($__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb04da7a8feb93a7268b6e0eef6b32739)): ?>
<?php $component = $__componentOriginalb04da7a8feb93a7268b6e0eef6b32739; ?>
<?php unset($__componentOriginalb04da7a8feb93a7268b6e0eef6b32739); ?>
<?php endif; ?>
</div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\PAW\PiaZhang\resources\views/reseller_orders/show.blade.php ENDPATH**/ ?>