{{ Form::label('project_id', 'Project') }}*
{{ Form::select('project_id', $projects, old('project_id'), [
'class' => "form-control select2-input projects",
'id' => "projects",
'data-live-search'=>'true',
'onchange'=> 'getAreas(this.value)'
]) }}
@if($errors->has('project_id'))
{{ $errors->first('project_id') }}
@endif
{{ Form::label('area', 'Area') }}*
{{ Form::select('area', [''=>'Select area'], '', [
'class' => "form-control select2-input areas",
'id' => "areas",
'data-live-search'=>'true',
'onchange'=> 'getLevels(this.value)'
]) }}
@if($errors->has('area'))
{{ $errors->first('area') }}
@endif
{{ Form::label('level', 'Level') }}*
{{ Form::select('level', [''=>'Select level'], old('level'), [
'class' => "form-control select2-input levels",
'id' => "levels",
'data-live-search'=>'true',
'onchange'=> 'getSubCodes(this.value)'
]) }}
@if($errors->has('level'))
{{ $errors->first('level') }}
@endif
{{ Form::label('sub_code', 'Sub code') }}*
{{ Form::select('sub_code', [''=>'Select sub code'], old('sub_code'), [
'class' => "form-control select2-input sub_code",
'id' => "sub_code",
'data-live-search'=>'true',
'onchange'=> 'prepareTimesheetForm(this.value)'
]) }}
@if($errors->has('sub_code'))
{{ $errors->first('sub_code') }}
@endif