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

Nouvelle Mise en demeure

{!! Form::open(['med' => 'form', 'url' => '/recouvrement/med', 'class' => 'form-horizontal']) !!}
{!! 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', $nbmois, ['id'=>'nbmois','placeholder' => 'Mois manquants', 'class' => 'form-control']) !!}
Période
{!! Form::label('periode_deb', 'Début') !!}
{!! Form::text('periode_deb', '01/01/'.(date('Y')-1), ['placeholder' => 'Début', 'class' => 'form-control']) !!}
{!! Form::label('periode_fin', 'Fin') !!}
{!! Form::text('periode_fin', '31/12/'.(date('Y')-1), ['placeholder' => 'Fin', 'class' => 'form-control']) !!}
Cotisation
{!! Form::label('cotisations', 'Costisations') !!}
{!! Form::text('cotisations', $cotisations, ['placeholder' => 'Costisations' , 'class' => 'form-control','style'=>'text-align:right']) !!}


{!! Form::label('majorations', 'Majorations') !!}
{!! Form::text('majorations', $majorations, ['placeholder' => 'majorations' ,'class' => 'form-control','style'=>'text-align:right']) !!}
{!! Form::label('total', 'Total de la dette') !!}
{!! Form::text('total', ($cotisations+$majorations), ['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