@extends('admin.layout.master') @section('content')
Evolution des dépenses

{{--   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') }}
{{--
{{ $errors->first('dateFin') }}
--}} @endif {{ Form::open(['route' => 'admin.depense.indexAll', 'method' => 'GET','onsubmit'=>'showOverlay()' , 'id' => 'form_search']) }} {{--
{{ Form::select('codeGcAssureur', $garants, $codeGcAssureur ?? old('codeGcAssureur'), ['class' => 'form-control js-select2', 'id' => 'codeGcAssureur']) }}
{{ 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']) }}
@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, $idPolice ?? 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, $idPolice ?? 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('dateDebut',$dateDebut ?? old('dateDebut'), ['class' => 'form-control form-txt-warning datepicker', 'id' => 'dateDebut', 'placeholder' => ' Date début']) }}
{{ Form::date('dateFin', $dateFin ?? old('dateFin'), ['class' => 'form-control form-txt-warning datepicker', 'id' => 'dateFin', 'placeholder' => '> Date fin']) }}

--}}
{{ Form::date('dateDebut',$dateDebut ?? old('dateDebut'), ['class' => 'form-control form-txt-warning datepicker', 'id' => 'dateDebut', 'style' => 'height: 44px;width:362.667px', 'placeholder' => ' Date début']) }}
{{ Form::date('dateFin', $dateFin ?? old('dateFin'), ['class' => 'form-control form-txt-warning datepicker', 'id' => 'dateFin', 'style' => 'height: 44px;width:362.667px', 'placeholder' => '> Date fin']) }}
{{form::close()}}
@if(isset($depenses))
Dépenses évolutives @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.depense.items', ['depenses' => $depenses])
@endif
@endsection