<?php $__env->startSection('title','Listado de ARL'); ?>
<?php $__env->startSection('content'); ?>

<div class="card mb-4" style="width: 70% ;margin:0 auto">
    <div class="card-header" >
        <i class="fas fa-table me-1"></i>
        Listado de ARL
    </div>
    <div class="card-body">
        <div style="padding: 5px">
            <a  title="Crear Arl" class="btnArl btn btn-primary" ><i class="fa-solid fa-user-nurse"></i></a>
        </div>
        <table  class="table table-hover table-bordered" style="width:100%" >
            <thead style ="font-size: 14px" >
                <tr>
                    <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
                    <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
                    <th style="text-align:center">NOMBRE</th>
                    <th style="text-align:center">DESCRIPCION</th>
                </tr>
            </thead>
            <tbody style ="font-size: 12px" >
                <?php $__currentLoopData = $arls; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td style="text-align: center">
                        <form method="POST" action="<?php echo e(url('/arls')); ?>/<?php echo e($item->id); ?>"  style="display:inline">
                            <?php echo csrf_field(); ?>
                            <?php echo e(method_field('DELETE')); ?>

                            <button type="button" title="Eliminar" class="btn btn-danger btn-sm" onclick="validar(this,'¿Desea eliminar el registro?')"><i class="fa-solid fa-trash"></i></button>
                        </form>
                    </td>
                    <td style="text-align: center" >
                        <a title="Editar" onclick="editarArl(<?php echo e($item->id); ?>)" class="btn btn-warning btn-sm">
                            <i class="fa-solid fa-pencil"></i>
                        </a>
                    </td>
                    <td><?php echo e($item->name); ?>    </td>
                    <td><?php echo e($item->description); ?>  </td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('shared/layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\api-loan\resources\views/arl/index.blade.php ENDPATH**/ ?>