
 
<?php $__env->startSection('title'); ?> Create Role <?php $__env->stopSection(); ?>
 
<?php $__env->startSection('content'); ?>
 
<div class='col-lg-10 col-lg-offset-2'>
 
    <?php if($errors): ?>
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class='bg-danger alert'><?php echo $error; ?></div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>

    <h1><i class='fa fa-user'></i> Mise à jour du Role</h1>
 
    <?php echo Form::model($role, ['role' => 'form', 'url' => '/acces/roles/' . $role->id, 'method' => 'PUT', 'class' => 'form-horizontal']); ?>

 
 
    <div class='form-group'>
        <div class="col-xs-4">
        <?php echo Form::label('name', 'Nom'); ?>

        <?php echo Form::text('name', null, ['placeholder' => 'Nom', 'class' => 'form-control text-uppercase']); ?>

        </div>
    </div>

    <?php if($role->name=="ADMINISTRATEUR"): ?>
        <h3 class="bg-danger alert" style='color:red'>
            Le rôle ADMINISTRATEUR à accès à toutes les permissions. 
        </h3>
        <?php echo Form::hidden('role_permissions[]', ''); ?>

    <?php else: ?>

    <div class='form-group'>
        <div class="col-xs-5">
        <?php echo Form::label('permissions', 'Permissions'); ?>

            <?php echo Form::select(
                'role_permissions[]',
                $liste_premissions,
                [""=>"A définir"]+$t_getPermissions,
                [

                    'class' => 'selectpicker',
                    'multiple'=> 'multiple',
                    'data-width' => "100%"
                ]
            ); ?>

        </div>
    </div>

    <?php endif; ?>

<?php echo $role->benef_statut; ?>

     <div class='form-group'>
        <div class="col-xs-5">
            <?php echo Form::label('benef_statut', 'Statut visualisé par défaut pour la liste des bénéficiaires'); ?>


                <?php echo Form::select('benef_statut',
                    $liste_benefstatut
                    ,$role->benef_statut,['class' => 'form-control']); ?>

        </div>
    </div>

        <div class='form-group'>
            <div class="col-xs-10">
            <?php echo Form::submit('Enregistrer', ['class' => 'btn btn-primary']); ?>

            </div>
        </div>
     
    <?php echo Form::close(); ?>


</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp7422\htdocs\sysinfo\cpswf\sipre9\resources\views/acces/roles/edit.blade.php ENDPATH**/ ?>