@extends('layouts.master') @section('title') Cotisation N°{!! $cotisation->id !!} @stop @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif

Cotisation N°{!! $cotisation->id !!}

{!! Form::model($cotisation, ['cotisation' => 'form' , 'url' => '/recouvrement/cotisations/' . $cotisation->id, 'method' => 'PUT' , 'class' => 'form-horizontal']) !!} {!! Form::hidden('sonum',$cotisation->sonum) !!}
{!! Form::label('sonum', 'Employeur') !!}
{!! $cotisation->sonum !!}
{!! Form::text('nom_employeur',$cotisation->nom_employeur, ['readonly','class' => 'form-control']) !!}
{!! Form::label('date', 'Date d\'entrée') !!}
{!! Form::text('date', $cotisation->date, ['placeholder' => 'Date', 'class' => 'form-control', $cotisation->VerrouDebit?'readonly':'']) !!} @if(!$cotisation->VerrouDebit) @endif
{!! Form::label('type_ope', 'Opération') !!} @if($cotisation->VerrouDebit) {!! Form::text('type_ope',$cotisation->type_ope, ['readonly','class' => 'form-control']) !!} @else {!! Form::select( 'type_ope',$types_operations, $cotisation->type_ope, [ 'class' => 'selectpicker' ,'data-width' => "100%", ] ) !!} @endif
s
{!! Form::label('encais_compte', 'Compte') !!} {!! Form::select('encais_compte', App\Models\MyApp::COMPTES_ENCAISSEMENT, $cotisation->encais_compte, ['placeholder' => 'A définir','class' => 'selectpicker','data-width' => "100%"] ) !!}
{!! Form::label('exercice', 'Exercice') !!} @if($cotisation->VerrouDebit) {!! Form::text('exercice',$cotisation->exercice, ['readonly','class' => 'form-control']) !!} @else {!! Form::select('exercice',$exercices,$cotisation->exercice, [ 'class' => 'selectpicker show-tick', 'id' => 'sonum', 'data-width' => "100%", ] ) !!} @endif
{!! Form::label('type_cotis', 'Type') !!} @if($cotisation->VerrouDebit) {!! Form::text('type_cotis',$cotisation->type_cotis, ['readonly','class' => 'form-control']) !!} @else {!! Form::select( 'type_cotis',$types_cotisation, $cotisation->type_cotis, [ 'class' => 'selectpicker' ,'data-width' => "100%", ,'placeholder' => 'Choisissez un type', $cotisation->VerrouDebit?'disabled':'' ] )!!} @endif
{!! Form::label('encais_date', 'Date d\'encaissement') !!}
{!! Form::text('encais_date', $cotisation->encais_date, [ 'placeholder' => 'Date', 'class' => 'form-control' ]) !!} @if(!$cotisation->VerrouDebit) @endif
{!! Form::label('nbmois', 'Nb mois') !!} {!! Form::text('nbmois', $cotisation->nbmois, ['placeholder' => 'Nombre de mois','class' => 'form-control']) !!}
{!! Form::label('mois', 'Mois de départ') !!}
{!! Form::text('mois', $cotisation->mois, ['placeholder' => 'Mois de départ', 'class' => 'form-control', $cotisation->VerrouDebit?'readonly':'' ]) !!} @if(!$cotisation->VerrouDebit) @endif
{!! Form::label('nbsal', 'Nb salariés') !!} {!! Form::text('nbsal', $cotisation->nbsal, ['placeholder' => 'Nombre de salariés','class' => 'form-control']) !!}
{!! Form::label('bdx', 'N°Bordereau') !!} {!! Form::text('bdx', null, [ 'placeholder' => 'Numéro de bordereau', 'class' => 'form-control', $cotisation->VerrouDebit?'readonly':'', ]) !!}
{!! Form::label('bdx_prive', 'N°Bord. privé') !!} {!! Form::text('bdx_prive', $cotisation->bdx_prive, [ 'placeholder' => 'Numéro de bordereau privé', 'class' => 'form-control', $cotisation->VerrouDebit?'readonly':'', ]) !!}
{!! Form::label('observation', 'Observations') !!} {!! Form::textarea('observation', $cotisation->observation, ['placeholder' => 'Observations', 'class' => 'form-control', 'rows'=>'3']) !!}
Cotisation
{!! Form::label('compte', 'Compte') !!} {!! Form::text('compte', str_replace(' ','',$cotisation->compte), ['placeholder' => 'Compte','class' => 'form-control']) !!}
{!! Form::label('typepmt', 'Modalité de paiement') !!} {!! Form::select( 'typepmt', [ ''=>' ' ,'A'=>'Autre' ,'B' => 'Banque' ,'E' => 'Espèce' ,'T' => 'Trésor' ,'V' => 'Virement' ,'P' => 'Prélèvement automatique' ,'€' => 'Euro' ,'N' => 'Nul' ], $cotisation->typepmt, [ 'class' => 'selectpicker' ,'data-width' => "100%" ] ) !!}
{!! Form::label('date_depot', 'Date de dépôt') !!}
{!! Form::text('date_depot', $cotisation->date_depot, ['placeholder' => 'Date de dépôt', 'class' => 'form-control']) !!}
{!! Form::label('assiette', 'Assiette') !!}
{!! Form::text('assiette', null, [ 'placeholder' => 'Assiette' , 'class' => 'form-control','style'=>'text-align:right' ,'id'=>'assiette', $cotisation->VerrouDebit?'readonly':'' ]) !!}
{!! Form::text('PrcTot', null, ['class' => 'form-control' ,'disabled'=>'true','style'=>'text-align:center' ,'id'=>'PrcTot']) !!}


{!! Form::label('clr', 'CLR') !!}
{!! Form::text('clr', null, ['placeholder' => 'CLR' ,'readonly', 'class' => 'form-control' ,'style'=>'text-align:right','id'=>'CLR']) !!}
{!! Form::text('PrcCLR', null, ['class' => 'form-control' ,'readonly','style'=>'text-align:center','id'=>'PrcCLR']) !!}
VerrouCredit?'disabled':'' !!} type='checkbox' value='1' name='box_clr' id='box_clr' /> Sans CLR


{!! Form::label('ccpf', 'CCPF') !!}
{!! Form::text('ccpf', null, ['placeholder' => 'CCPF' ,'readonly', 'class' => 'form-control' ,'style'=>'text-align:right','id'=>'CCPF']) !!}
{!! Form::text('PrcCCPF', null, ['class' => 'form-control' ,'readonly','style'=>'text-align:center','id'=>'PrcCCPF']) !!}
VerrouCredit?'disabled':'' !!} type='checkbox' value='1' name='box_ccpf' id='box_ccpf'/> Sans CCPF
{!! Form::label('total', 'Total') !!}
{!! Form::text('total', null, ['class' => 'form-control' ,'style'=>'text-align:right','readonly','id'=>'total']) !!}


{!! Form::label('credit', 'Règlement') !!}
{!! Form::text('credit', null, ['class' => 'form-control' ,'style'=>'text-align:right','id'=>'credit', $cotisation->VerrouCredit?'readonly':'' ]) !!}
{!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop