<table class="table table-striped table-sm text-center dinamicTable SeeIndexArea">
    <thead>
    <tr>
        <th scope="col">Nombre</th>
        <th scope="col">Estado</th>
        <th scope="col">Acciones</th>
    </tr>
    </thead>
    <tbody>
    <?php $__currentLoopData = $areas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $area): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

        <tr>
            <td class="btnEvent" data-event="dblclick" data-route="SeeEdit_Area" data-field="nombre"
                data-reference="<?php echo e($area->id_encrypt_area); ?>"><?php echo e($area->nom_area); ?></td>

            <td>
                <?php if(\Illuminate\Support\Facades\Auth::user()->super_admin_id == $area->super_admin_id): ?>

                    <?php if($area->estado == 1): ?>
                        <button class="btn btn-primary btn-sm btnEvent"
                                title="Inactivar el área clínica <?php echo e($area->nom_area); ?>" data-route="ChangeStatus_Area"
                                data-tables_liged="Area" data-event="click"
                                data-reference="<?php echo e($area->id_encrypt_area); ?>"
                                data-nom="<?php echo e($area->nom_area); ?>" data-estado="inactivo">Activo
                        </button>
                    <?php else: ?>
                        <button class="btn btn-warning btn-sm btnEvent"
                                title="Activar el área clínica <?php echo e($area->nom_area); ?>" data-route="ChangeStatus_Area"
                                data-tables_liged="Area" data-event="click"
                                data-reference="<?php echo e($area->id_encrypt_area); ?>"
                                data-nom="<?php echo e($area->nom_area); ?>" data-estado="activo">Inactivo
                        </button>
                    <?php endif; ?>
                <?php endif; ?>
            </td>
            <td>
                <?php if(\Illuminate\Support\Facades\Auth::user()->super_admin_id == $area->super_admin_id): ?>
                    <button class="btn btn-danger btn-sm btnEvent"
                            title="Eliminar el área clínica <?php echo e($area->nom_area); ?>"
                            data-route="Destroy_Area" data-event="click" data-reference="<?php echo e($area->id_encrypt_area); ?>"
                            data-nom="<?php echo e($area->nom_area); ?>" data-tables_liged="Area"><i class="far fa-trash-alt"></i>
                    </button>
                <?php endif; ?>

            </td>
        </tr>

    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
<?php /**PATH /home/quikappspane/public_html/v2m-v2/resources/views/area/areaIndex.blade.php ENDPATH**/ ?>