@if($comptes_aux_libelle)
{!! html()->label($comptes_aux_libelle." (".$compte_general.")",'sel_compte_aux') !!} {!! html()->text('sel_compte_aux', ($mode=="create"?null:$creancier->nom))->placeholder("")->attributes([($mode=="show"?'disabled':''),'id'=>'sel_compte_aux','class' => 'form-control']) !!}
{!! html()->label('Compte Aux.','compte_aux') !!} {!! html()->text('compte_aux', null)->placeholder("")->attributes(['readonly', 'class' => 'form-control']) !!}
@else
{!! html()->label('Compte','compte') !!} {!! html()->text('compte', $compte_credit)->placeholder("")->attributes(['readonly', 'class' => 'form-control']) !!}
{!! html()->label('Designation','compte_libelle') !!} {!! html()->text('compte_libelle', $compte_libelle)->placeholder("")->attributes(['readonly', 'class' => 'form-control']) !!}
@endif
{!! html()->label('Nom','nom') !!} {!! html()->text('nom', null)->placeholder("Nom") ->attributes([($mode=="show"?'disabled':''), 'class' => 'identifiants form-control']) !!}
@if(($compte_general=="421")||($compte_general=="425")||($compte_general=="427"))
{!! html()->label('Prénom','prenom') !!} {!! html()->text('prenom', null)->placeholder("Prénom") ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Date de naissance','datepicker_datenaiss') !!}
{!! html()->text('datenaiss', null) ->placeholder('Date')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@endif
{!! html()->label( 'Moyen de paiement','typepmt') !!} {!! html()->select('typepmt',['BAN'=>'Banque','ESP' => 'Espèces','CHQ' => 'Chèque','TRE' => 'Trésor'],null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Montant','montant') !!} {!! html()->text('montant', null)->placeholder("Montant")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Banque','bqcle_creancier') !!} {!! html()->select('bqcle_creancier',DB::table('banques')->where('active','=','1')->orderby('nom','ASC')->pluck(db::raw("CONCAT(nom,' (',id,')') as nom"), 'id')->toArray(),null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Compte','compte') !!} {!! html()->text('compte', ($mode=="create"?null:$creancier->compte))->placeholder("Compte") ->attributes([($comptes_aux_libelle)?'readonly':'', 'class' => 'form-control']) !!}
{!! html()->label( 'Observations','obs') !!} {!! html()->textarea('obs', null)->placeholder('Observations') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
@if(isset($frame) && $frame)
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("CRE_MAJ")) @if(!$frame) Modifier @endif @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @if(!$frame) Retour @endif
@else @if( ($mode=="show")&& (isset($mandat->id)) && ($creancier->IsModifiable && ($user->hasRole("ADMINISTRATEUR") || $user->can("CRE_MAJ"))) ) Modifier @endif @endif