<div class="form-group row">
    <div class="col-md-6">
        <?php echo html()->label( 'Nom','name'); ?>

        <?php echo html()->text('name', null)->attributes([($mode=="show"?'disabled':''), 'placeholder' => 'Nom','class' => 'form-control  text-uppercase']); ?>

    </div>
</div>

<div class="form-group row">
    <div class="col-md-6">
        <?php echo html()->label( 'Nom affcihé','display_name'); ?>

        <?php echo html()->text('display_name', null)->attributes([($mode=="show"?'disabled':''), 'placeholder' => 'Nom affiché','class' => 'form-control']); ?>

    </div>
</div>


<div class="row">
    <div class="col-md-5">
        <div class="form-group">
            <?php echo html()->label( 'Groupe','id_groupe'); ?>

            <?php echo html()->select('id_groupe',null)
                ->options($liste_groupes)
                ->placeholder("A définir")
                ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control selectpicker']); ?>

        </div>
    </div>


    <?php if($mode!="show"): ?>
        <div class="col-md-3">
            <?php echo html()->label( 'ou Nouveau Groupe','new_groupe'); ?>

            <?php echo html()->text('new_groupe', null)->attributes(['placeholder' => 'Nom du groupe','class' => 'form-control text-uppercase']); ?>

        </div>
    <?php endif; ?>
</div>


<div class='row form-group'>
    <?php if($mode=="show"): ?>
        <?php if($permission->IsModifiable): ?> <a class="btn btn-primary" href="<?php echo url('permissions/'.$permission->id.'/edit'); ?>" id="btn_modifier">Modifier</a><?php endif; ?>
    <?php else: ?>
        <?php echo html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']); ?>

    <?php endif; ?>

    <?php if(($mode=="show") && $permission->IsSupprimable): ?>
        <?php echo e(html()->form('DELETE', url('/permissions/'. $permission->id))->open()); ?>

        &nbsp;<button class="btn btn-danger" onclick="if(!confirm('Voulez-vous vraiment supprimer cette permission ?')) return false;">Supprimer</button>
        <?php echo e(html()->form()->close()); ?>

    <?php endif; ?>
    &nbsp;<a class="btn btn-warning"  href="<?php echo url('permissions/'); ?>">Retour</a>
</div>
<?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/acces/permissions/content.blade.php ENDPATH**/ ?>