{!! html()->label('Nom','nom') !!} {!! html()->text('nom', null)->attributes([($mode=="show"?'disabled':''),'placeholder' => 'Dénomination complète du diplôme', 'class' => 'form-control']) !!}
{!! html()->label('Nom court','nom_court') !!} {!! html()->text('nom_court', null)->attributes([($mode=="show"?'disabled':''),'placeholder' => 'Nom court du diplôme', 'class' => 'form-control']) !!}
{!! html()->label('Filière','id_filiere') !!} {!! html()->select('id_filiere')->options($filieres)->value(isset($diplome)?$diplome->id_filiere:'') ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@if($mode!='show') {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @else @if($user->hasRole("ADMINISTRATEUR") || $user->can("modifier diplomes")) Modifier @endif @endif @if($mode=='show')  Retour @else  Annuler @endif