<?php $__env->startSection('title','Listado de politicas y autorizaciones'); ?>
<?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 politicas y autorizaciones
    </div>
    <div class="card-body">
        <div style="padding: 5px">
            <a  title="Crear politica o autorizacion" class="btnPolicy btn btn-primary" ><i class="fa-solid fa-circle-plus"></i></a>
        </div>
        <div style="height:300px;overflow: auto;">
        <?php $__currentLoopData = $policies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div style="margin-top:10px;border-radius: 25px; border:2px solid rgba(180, 158, 169, 0.2);padding:5px; ">
           <p style="text-align: justify;padding:5px; font-size:12px;"> <strong><?php echo e($item->title); ?></strong> &nbsp;| &nbsp;
            <?php echo e($item->description); ?>

            <div style="padding: 5px;">
                 <a title="Editar" onclick="editarPolicy(<?php echo e($item->id); ?>)" class="btn btn-warning btn-sm">
                            <i class="fa-solid fa-pencil"></i>
                        </a>&nbsp;
                 <form method="POST" action="<?php echo e(url('/authorizationPolicies')); ?>/<?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>
            </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </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/AuthorizationPolicies/index.blade.php ENDPATH**/ ?>