<div class="panel-body table-responsive">
    <table class="table table-condensed">
        <thead>
            <tr>
                <th><?php echo e(trans('product.name')); ?></th>
                <th><?php echo e(trans('product.unit')); ?></th>
                <th><?php echo e(trans('product.price')); ?> (<?php echo e($draftType); ?>)</th>
                <th><?php echo e(trans('app.action')); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $queriedProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <tr>
                <td><?php echo e($product->name); ?></td>
                <td><?php echo e($product->unit->name); ?></td>
                <td><?php echo e(format_rp($product->getPrice($draftType))); ?></td>
                <td>
                    <form action="<?php echo e(route('cart.add-draft-item', [$draftKey, $product->id])); ?>" method="post" style="display:inline">
                        <input type="hidden" name="query" value="<?php echo e(isset($query) ? $query : request('query')); ?>">
                        <input type="hidden" name="_token" value="<?php echo e(isset($formToken) ? $formToken : csrf_token()); ?>">
                        <input type="number" id="qty-<?php echo e($product->id); ?>" style="width:50px" name="qty" value="1" min="1">
                        <input type="submit" id="add-product-<?php echo e($product->id); ?>" value="Tambah">
                    </form>
                    <?php if($loop->last): ?>
                    <?php echo e(link_to_route('cart.show', trans('cart.search_box_cleanup'), [$draftKey], [
                        'class' => 'btn btn-sm btn-default pull-right'
                    ])); ?>

                    <?php endif; ?>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <tr>
                <td colspan="3">
                    Produk tidak ditemukan dengan keyword : <strong><em><?php echo e(request('query')); ?></em></strong>
                </td>
            </tr>
            <?php endif; ?>
        </tbody>
    </table>
</div><?php /**PATH C:\Users\Deni\Downloads\Compressed\Apotek candilkuya\grosir-obat-master\resources\views/cart/partials/product-search-result-box.blade.php ENDPATH**/ ?>