<?php $__env->startSection('title', trans('unit.list')); ?>

<?php $__env->startSection('content'); ?>
<h3 class="page-header"><?php echo e(trans('unit.list')); ?></h3>

<div class="row">
    <div class="col-md-8">
        <div class="panel panel-default table-responsive">
            <table class="table table-condensed">
                <thead>
                    <tr>
                        <th class="text-center"><?php echo e(trans('app.table_no')); ?></th>
                        <th><?php echo e(trans('unit.name')); ?></th>
                        <th class="text-center"><?php echo e(trans('unit.products_count')); ?></th>
                        <th class="text-center"><?php echo e(trans('app.action')); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $units; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $unit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td class="text-center"><?php echo e(1 + $key); ?></td>
                        <td><?php echo e($unit->name); ?></td>
                        <td class="text-center"><?php echo e($unit->products_count); ?></td>
                        <td class="text-center">
                            <?php echo link_to_route('units.index', trans('app.edit'), ['action' => 'edit', 'id' => $unit->id], ['id' => 'edit-unit-' . $unit->id]); ?> |
                            <?php echo link_to_route('units.index', trans('app.delete'), ['action' => 'delete', 'id' => $unit->id], ['id' => 'del-unit-' . $unit->id]); ?>

                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
    <div class="col-md-4"><?php echo $__env->make('units.partials.forms', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Deni\Downloads\Compressed\Apotek candilkuya\grosir-obat-master\resources\views/units/index.blade.php ENDPATH**/ ?>