{!! Form::open(['method' => 'POST', 'role' => 'form', 'id' => 'form-contract','enctype' => 'multipart/form-data']) !!}
{!! Form::hidden('id', (isset($contract) ? $contract->id : null), ['id'=>'id_contract']) !!} {!! Form::hidden('fk_id_user', (isset($fk_id_user) ? $fk_id_user : null), ['id'=>'fk_id_user']) !!} {!! Form::hidden('fk_id_country', (isset($fk_id_country) ? $fk_id_country : null), ['id'=>'fk_id_country']) !!}
{!!Form::select('fk_id_project',$projects, (isset($contract) ? $contract->fk_id_project : null) ,[ 'class'=>'form-control selectpicker fk_id_project is_required', 'data-live-search'=>'true', 'title'=>'', 'id'=>'fk_id_project', 'data-size'=>'5' ])!!}
{!!Form::select('fk_id_client',$clients, (isset($contract) ? $contract->fk_id_client : null) ,[ 'class'=>'form-control selectpicker fk_id_client is_required', 'data-live-search'=>'true', 'title'=>'', 'id'=>'fk_id_client', 'data-size'=>'5' ])!!}
{!! Form::text('name', isset($contract) ? $contract->name : null, [ 'class' => 'form-control', 'id' => 'name', 'maxlength'=> '255', 'Style' => 'width: 100%;' ]) !!}

{!! Form::select('year', $years, (isset($contract) ? $contract->year : null), [ 'class' => 'form-control selectpicker is_required', 'id' => 'year', 'data-live-search'=>'true', 'title'=>'', ]) !!}
{!! Form::date('initial_date',(isset($contract) ? $contract->initial_date : null), [ 'class' => 'form-control is_required', 'id' => 'initial_date', 'title'=>'', ]) !!}
{!! Form::date('end_date', (isset($contract) ? $contract->end_date : null), [ 'class' => 'form-control is_required', 'id' => 'end_date', 'title'=>'', ]) !!}

{!! Form::close() !!}