{!! html()->label( 'Nom','nom') !!}
{!! html()->text('nom', $allocataire->NomComplet)->placeholder("Nom")->attributes(['readonly', 'class' => 'form-control']) !!}
{!! html()->label( "Date",'date') !!}
{!! html()->text('date', $date)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','style' => 'text-align:center']) !!}
{!! html()->label( 'Statut','statut') !!} {!! html()->select('statut',App\Models\MyApp::INDUS_STATUT,($mode=="create")?'ENC':null) ->placeholder('A définir') ->attributes(['id' => 'groupe',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
@if(($mode!="create") && (($indu->statut=="ENC") || ($indu->statut=="VAL")))
Cet Indus n'est pas encore actif
Passez le au statut Transmis pour l'activer !
@endif
{!! html()->label( 'Total Versements','total_versement') !!}
{!! html()->text('total_versement', null)->placeholder('')->attributes([($mode=="show"?'disabled':''),'id' => 'total_versement','readonly', 'class' => 'text-primary text-right form-control']) !!}
CFP
{!! html()->label("Indus",'montant') !!}
{!! html()->text('montant', $montant) ->attributes([($mode=="show"?'disabled':''),'id' => 'montant','style' => 'font-weight:bold', 'class' => 'text-danger text-right form-control']) !!}
CFP
@if($mode=="show")
{!! html()->label("Règlements",'montant') !!}
{!! html()->text('montant', $indu->ReglementMontant) ->attributes(['disabled','style' => 'font-weight:bold', 'class' => 'text-success text-right form-control']) !!}
CFP
{!! html()->label("Reste à payer : ".$indu->montant,'reste') !!}
{!! html()->text('montant', intVal($montant)-intVal($indu->ReglementMontant)) ->attributes(['disabled','style' => 'font-weight:bold', 'class' => 'text-primary text-right form-control']) !!}
CFP
@endif
@if($mode!="create")
@include("indus.prelevements.liste_prelevements")
@endif
{!! html()->label( 'Observations','observations') !!} {!! html()->textarea('observations', $observations)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control', 'rows'=>'4']) !!}
@if(($mode=="show") && ($indu->statut!="CLO") && $montant>0 && ($montant-$indu->ReglementMontant==0))
Le remboursement est terminé, pensez à clôturer la fiche Indus
@endif
@if($mode=="show") @if($indu->statut!="CLO" ) @if($user->hasRole("ADMINISTRATEUR") || $user->can("INDUS_MAJ")) Modifier @endif @if($indu->IsSupprimable) {{ html()->form('DELETE', url('/indus/'. $indu->id))->open() }} {{ html()->form()->close() }} @endif @if($montant>0 && ($montant-$indu->ReglementMontant==0)) Clôturer @endif @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif Retour