<div class="form-group row">
    <div class="col-md-6">
    {!! html()->label('Nom','name') !!}
    {!! html()->text('name', null)->attributes([($mode=="show"?'disabled':''),'placeholder' => 'Nom', 'class' => 'form-control']) !!}
    </div>
</div>


<div class='form-group '>
    @if($mode!='show')
        {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!}
    @else
        @if($user->hasRole("ADMINISTRATEUR") || $user->can("modifier permissions"))
            <a class="btn btn-primary"  href="{!! url('permissions/'.$permission->id.'/edit') !!}">Modifier</a>
        @endif
    @endif
    @if($mode=='show')
        <a class="btn btn-warning"  href="{!! url('permissions') !!}">Retour</a>
    @else
        <a class="btn btn-danger"  href="{!! url('permissions') !!}">Annuler</a>
    @endif
</div>



