<h4>Permissions sur les PAAT</h4>
<form method="POST" action="<?php echo e(route('structure.update', $structure->id)); ?>">
    <?php echo csrf_field(); ?>
    <?php echo e(method_field('PUT')); ?>


    <input name="type_permission" type="hidden" value="paat">
    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th scope="col">Rôle</th>
            <th scope="col">Voir</th>
            <th scope="col">Ajouter</th>
            <th scope="col">Editer</th>
            <th scope="col">Cloturer</th>
            <th scope="col">Supprimer</th>
        </tr>
        </thead>
        <tbody>
        <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td scope="row"><?php echo e(ROLE::ROLES_FORMATTED[$r->name]); ?></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-see_paat" name="<?php echo e($r->id); ?>-see_paat" <?php if($r->hasPermissionTo('see_paat')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-add_paat" name="<?php echo e($r->id); ?>-add_paat" <?php if($r->hasPermissionTo('add_paat')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-edit_paat" name="<?php echo e($r->id); ?>-edit_paat" <?php if($r->hasPermissionTo('edit_paat')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-cloture_paat" name="<?php echo e($r->id); ?>-cloture_paat" <?php if($r->hasPermissionTo('cloture_paat')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-delete_paat" name="<?php echo e($r->id); ?>-delete_paat" <?php if($r->hasPermissionTo('delete_paat')): ?> checked <?php endif; ?>></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>

    <div class="form-group row mb-0 float-right">
        <div class="col-md-8">
            <button type="submit" class="btn btn-outline-success">
                Sauvegarder
            </button>
        </div>
    </div>
</form>
<?php /**PATH /var/www/html/resources/views/parametres/structure/onglets/paats.blade.php ENDPATH**/ ?>