{!! html()->label( 'Nom','nom') !!} {!! html()->text('nom', null)->placeholder("Nom")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Code Postal','code_postal') !!} {!! html()->text('code_postal', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Royaume','royaume') !!} {!! html()->select('royaume',App\Models\MyApp::ROYAUMES,null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("DIS_MAJ")) Modifier @endif @if($user->hasRole("ADMINISTRATEUR") || $user->can("DIS_SUP")) {{ html()->form('DELETE', url('/districts/'. $district->id))->open() }} {{ html()->form()->close() }} @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif Retour