@extends('admin.layout.master') @section('content')
Evolution des Effectifs

{{--   Export PDF --}}

@if (($errors->has('idPolice')))
{{ $errors->first('idPolice') }}
@endif @if (($errors->has('dateDebut')))
{{ $errors->first('dateDebut') }}
@endif @if (($errors->has('dateFin')))
{{ $errors->first('dateFin') }}
@endif {{ Form::open(['route' => 'admin.effectif.indexAll', 'method' => 'GET','onsubmit'=>'showOverlay()' , 'id' => 'form_search']) }} {{--
@if ($role_id == 4 )
{{ Form::select('codeGcAssureur', $garants, $codeGcAssureur ?? old('codeGcAssureur'), ['class' => 'form-control js-select2 ', 'id' => 'codeGcAssureur' ]) }}
@endif
{{ Form::select('idSouscripteur', $souscripteurs, $idSouscripteur ?? old('idSouscripteur'), ['class' => 'form-control js-select2', 'id' => 'idSouscripteur']) }}
--}}
@if ($role_id == 4 )
{{ Form::select('codeGcAssureur', $garants, $codeGcAssureur ?? old('codeGcAssureur'), ['class' => 'form-control js-example-basic-single ', 'id' => 'codeGcAssureur' ,'style' => 'height: 40px;width:362.667px;']) }}
@endif
{{ Form::select('idSouscripteur', $souscripteurs, $idSouscripteur ?? old('idSouscripteur'), ['class' => 'form-control js-example-basic-single', 'id' => 'idSouscripteur','style' => 'height: 40px;width:362.667px;']) }}
{{--
{{ Form::select('idPolice', $polices, $id ?? old('idPolice'), ['class' => 'form-control js-select2', 'id' => 'idPolice']) }}
{{ Form::select('idCollege', $colleges, $idCollege ?? old('idCollege'), ['class' => 'form-control js-select2', 'id' => 'idCollege']) }}
--}}
{{ Form::select('idPolice', $polices, $id ?? old('idPolice'), ['class' => 'form-control js-example-basic-single', 'id' => 'idPolice','style' => 'height: 40px;width:362.667px;']) }}
{{ Form::select('idCollege', $colleges, $idCollege ?? old('idCollege'), ['class' => 'form-control js-example-basic-single', 'id' => 'idCollege','style' => 'height: 40px;width:362.667px;']) }}
{{ Form::date('dateEffet', old('dateEffet'), ['class' => 'form-control datepicker', 'id' => 'dateEffet', 'placeholder' => '< Date d\'enregistrement']) }}
{{ Form::date('dateEcheance', old('dateEcheance'), ['class' => 'form-control datepicker', 'id' => 'date_fin', 'placeholder' => '> Date d\'enregistrement']) }}

{{--
{{ Form::date('dateDebut', $dateDebut ?? old('dateDebut'), ['class' => 'form-control form-txt-warning datepicker', 'id' => 'dateDebut', 'style' => 'height: 40px;width:362.667px', 'placeholder' => ' Date début']) }}
{{ Form::date('dateFin', $dateFin ?? old('dateFin'), ['class' => 'form-control form-txt-warning datepicker', 'id' => 'dateFin', 'style' => 'height: 40px;width:362.667px', 'placeholder' => '> Date fin']) }}
--}}
{{ form::close() }}
@if(isset($effectifs))
Effectifs évolutifs @isset($code_garant) du Garant {{ ($code_garant->libelle)}} @endif @isset($police) de la police {{ $police->libellePolice }} @endif du {{ \Carbon\Carbon::parse ($dateDebut)->format('d/m/Y')}} au {{ \Carbon\Carbon::parse ($dateFin)->format('d/m/Y')}}
@include('admin.evolution.effectif.items', ['effectifs' => $effectifs])
@endif
@endsection