@extends('layouts.master') @section('title') Mise à jour Mise en demeure @stop @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif

Mise à jour d'une Mise en demeure

{!! Form::model($med, ['med' => 'form', 'url' => '/recouvrement/med' . $med->id, 'method' => 'PUT']) !!}
{!! Form::label('numero', 'Numéro') !!} {!! Form::text('numero', '', ['placeholder' => 'Numéro','disabled','class' => 'form-control']) !!}
{!! Form::label('sonum', 'Employeur') !!} {!! Form::select('sonum',array(""=>"")+$liste_employeur, $employeur->id, [ 'class' => 'selectpicker show-tick', 'id' => 'sonum', 'data-width' => "100%", ] ) !!}
{!! Form::label('date_envoi', 'Date d\'envoi') !!}
{!! Form::text('date_envoi', date('j/m/Y'), ['placeholder' => 'Date d\'envoi', 'class' => 'form-control']) !!}
{!! Form::label('motif', 'Motif') !!}
{!! Form::select( 'motif', [ ''=>' ', 'TAR' => 'Production tardive', 'ABS' => 'Absence ou insuffisance de versement', 'BOR' => 'Défaut de production du bordereau de déclaration nomminative', 'RET' => 'Retard dans le versement', 'RED' => 'Redressement suite au contrôle', ], '', [ 'class' => 'selectpicker','data-width' => "100%", ] ) !!}
{!! Form::label('nbmois', 'Mois manquants') !!} {!! Form::text('nbmois', null, ['id' =>'nbmois','placeholder' => 'Mois manquants', 'class' => 'form-control']) !!}
Période
{!! Form::label('periode_deb', 'Début') !!}
{!! Form::text('periode_deb', '', ['placeholder' => 'Début', 'class' => 'form-control']) !!}
{!! Form::label('periode_fin', 'Fin') !!}
{!! Form::text('periode_fin', '', ['placeholder' => 'Fin', 'class' => 'form-control']) !!}
Cotisation
{!! Form::label('cotisations', 'Costisations') !!}
{!! Form::text('cotisations', null, ['placeholder' => 'Costisations' , 'class' => 'form-control','style'=>'text-align:right']) !!}


{!! Form::label('majorations', 'Majorations') !!}
{!! Form::text('majorations', null, ['placeholder' => 'majorations' ,'class' => 'form-control','style'=>'text-align:right']) !!}
{!! Form::label('total', 'Total de la dette') !!}
{!! Form::text('total', null, ['class' => 'form-control' ,'style'=>'text-align:right','disabled'=>'true']) !!}
{!! Form::label('obs', 'Observations') !!} {!! Form::textarea('obs', null, ['placeholder' => 'Observations', 'class' => 'form-control', 'rows'=>'3']) !!}
{!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop