<h4>Permissions sur les indicateurs</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="indicateurs">
    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th scope="col">Rôle</th>
            <th scope="col">Voir perf. économique</th>
            <th scope="col">Voir achats mutualisés</th>
            <th scope="col">Voir RSE</th>
            <th scope="col">Voir gestion PAAT</th>
            <th scope="col">Exporter</th>
        </tr>
        </thead>
        <tbody>
        <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            
            <?php if(!str_contains($r, ROLE::RESPONSABLE_PERFORMANCE_ARS)): ?>
            <tr>
                <td scope="row"><?php echo e(ROLE::ROLES_FORMATTED[$r->name]); ?></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-see_performance_economique" name="<?php echo e($r->id); ?>-see_performance_economique" <?php if($r->hasPermissionTo('see_performance_economique')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-see_achats_mutualises" name="<?php echo e($r->id); ?>-see_achats_mutualises" <?php if($r->hasPermissionTo('see_achats_mutualises')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-see_rse" name="<?php echo e($r->id); ?>-see_rse" <?php if($r->hasPermissionTo('see_rse')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-see_gestion_paat" name="<?php echo e($r->id); ?>-see_gestion_paat" <?php if($r->hasPermissionTo('see_gestion_paat')): ?> checked <?php endif; ?>></td>
                <td><input type="checkbox" id="<?php echo e($r->id); ?>-export_indicateurs" name="<?php echo e($r->id); ?>-export_indicateurs" <?php if($r->hasPermissionTo('export_indicateurs')): ?> checked <?php endif; ?>></td>
            </tr>
            <?php endif; ?>
        <?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/indicateurs.blade.php ENDPATH**/ ?>