<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 affiché','display_name'); ?>

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

    </div>
</div>




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

    <?php endif; ?>

    <?php if(($mode=="show") && ($user->hasRole("ADMINISTRATEUR") || $user->can("PER_SUP"))): ?> 
        <?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\EDUCATION\laravel12_btsciel\resources\views/acces/permissions/content.blade.php ENDPATH**/ ?>