{!! html()->label( 'Type','type') !!} {!! html()->select('type', App\Models\MyApp::MANDAT_TYPES,null) ->placeholder("Choisissez un Type") ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Libelle','libelle') !!} {!! html()->text('libelle', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']) !!}
{!! html()->label( 'Compte Débit','compte_debit') !!} {!! html()->select('compte_debit', $comptes,null) ->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Compte Aux.Débit','compte_aux_debit') !!} {!! html()->select('compte_aux_debit', $comptes_aux,null) ->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Débit Libelle','debit_libelle') !!} {!! html()->text('debit_libelle', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']) !!}
{!! html()->label( 'Compte Crédit','compte_credit') !!} {!! html()->select('compte_credit', $comptes,null) ->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Compte Aux.Débit','compte_aux_credit') !!} {!! html()->select('compte_aux_credit', $comptes_aux,null) ->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Crédit Libelle','credit_libelle') !!} {!! html()->text('credit_libelle', null)->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']) !!}
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("TYPEMANDAT_MAJ")) Modifier @endif @if($user->hasRole("ADMINISTRATEUR") || $user->can("TYPEMANDAT_MAJ")) @if(!$mandat_type->hasImputation) {{ html()->form('DELETE', url('/mandats_types/'. $mandat_type->id))->open() }} {{ html()->form()->close() }} @else @endif @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif Retour