
<?php $__env->startSection('style'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container">








        <?php if(session('success')): ?>
            <div class="alert alert-success alert-dismissible fade show" role="alert">
                <ul class="list-unstyled m-0 p-0">
                    <strong><?php echo e(session('success')); ?></strong>
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                </ul>
            </div>
        <?php endif; ?>




        <div class="card">
            <div class="card-header"><strong>Item List</strong></div>
            <div class="card-body">
 <a class="btn btn btn-outline-info  mb-3" href="<?php echo e(url()->previous()); ?>"><i class="bi bi-skip-backward-circle pr-1"></i> Back</a>
                <a class="btn btn-success mb-3" href="<?php echo e(url('item/create')); ?>"><i class="bi bi-plus-circle pr-1"></i>Create</a>

                <table class="table table-hover table-responsive-lg">
                    <thead class="thead-light">
                        <tr>
                            <th scope="col">#</th>
                            <th scope="col">Code</th>
                            <th scope="col">Name</th>
                            <th scope="col">Min Qty</th>
                            <th scope="col">Max Qty</th>
                            <th scope="col">Action</th>

                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <td><?php echo e($item->code); ?></td>
                                <td><?php echo e($item->name); ?></td>
                                <td><?php echo e($item->min_qty); ?></td>
                                <td><?php echo e($item->max_qty); ?></td>
                                <td>
                                    <div class="d-flex gap-1">
                                        <a href="<?php echo e(url('item/view/' . $item->id)); ?>"
                                            class="btn btn-primary btn-sm"><i class="bi bi-eye pr-1"></i>View</a>
                                        <a href="<?php echo e(url('item/edit/' . $item->id)); ?>"
                                            class="btn btn-warning btn-sm"><i class="bi bi-pencil pr-1"></i>Update</a>
               
                                    </div>

                                </td>

                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </tbody>
                </table>
                <div class="pagination">
                    <?php echo e($items->links()); ?>

                </div>
            </div>
        </div>





    </div>



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

<?php $__env->startSection('script'); ?>
    <script>
   
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('template.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\HirePurchasingManagementSolution\resources\views/item/all.blade.php ENDPATH**/ ?>