Add a crop report
@if ($errors->any())
@endif {!! Form::open(['action' => 'CropReportsController@store']) !!}
{!! Form::Label('notes', 'Notes:') !!} {!! Form::text('notes', null, ['class' => 'form-control']); !!}
{!! Form::submit('Submit'); !!} {{ Form::close() }}
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
@endif {!! Form::open(['action' => 'CropReportsController@store']) !!}
{!! Form::Label('region_id', 'Region:') !!}
{!! Form::select('region_id', ['' => '--- Select region ---'] + $regions, null, ['class' => 'form-control']); !!}
{!! Form::Label('station_id', 'Station:') !!}
{!! Form::select('station_id', ['' => '--- Select station ---'] + $stations, null, ['class' => 'form-control']); !!}
{!! Form::Label('observer', 'Observer:') !!}
{!! Form::text('observer', null, ['class' => 'form-control']); !!}
{!! Form::Label('observation_date', 'Observation date:') !!}
{!! Form::text('observation_date', null, ['class' => 'date form-control']); !!}
{!! Form::Label('crop_id', 'Crop:') !!}
{!! Form::select('crop_id', ['' => '--- Select crop ---'] + $crops, null, ['id' => 'crop', 'class' => 'form-control']); !!}
{!! Form::Label('crop_stage_number', 'Crop stage:') !!}
{!! Form::select('crop_stage_number', array('' => '', '1' => 'stage 1', '2' => 'stage 2'), null,['id' => 'crop_stage_number', 'class' => 'form-control']); !!}
{!! Form::Label('general_assessment', 'General assessment:') !!}
{!! Form::select('general_assessment', array('' => '--- Select assessment ---', '1' => '1 - Bad state', '2' => '2 - Unsatisfactory state ', '3' => '3 - Moderate state', '4' => '4 - Good state', '5' => '5 - Excellent state'), null, ['class' => 'form-control']); !!}
{!! Form::Label('number_of_plants_per_acre', 'Number of plants per acre:') !!}
{!! Form::text('number_of_plants_per_acre', null, ['class' => 'form-control']); !!}
{!! Form::Label('number_of_stems_per_sqm', 'Number of stems per sqm:') !!}
{!! Form::text('number_of_stems_per_sqm', null, ['class' => 'form-control']); !!}
{!! Form::Label('plant_height', 'Plant height (cm):') !!}
{!! Form::text('plant_height', null, ['class' => 'form-control']); !!}
{!! Form::Label('met_phenomena', 'Met phenomena:') !!}
{!! Form::select('met_phenomena', array('' => '--- Select phenomena ---', 'dry spell' => 'dry spell', 'drought' => 'drought', 'hail storm' => 'hail storm', 'heavy rainfall' => 'heavy rainfall', 'flood' => 'flood', 'strong winds' => 'strong winds'), 'null', ['class' => 'form-control']); !!}
{!! Form::Label('met_phenomena_date', 'phenomena date:') !!}
{!! Form::text('met_phenomena_date', null, ['class' => 'date form-control']); !!}
{!! Form::Label('met_phenomena_duration', 'phenomena duration:') !!}
{!! Form::text('met_phenomena_duration', null, ['class' => 'form-control']); !!}
{!! Form::Label('met_phenomena_damage', 'phenomena damage:') !!}
{!! Form::text('met_phenomena_damage', null, ['class' => 'form-control']); !!}
{!! Form::Label('met_phenomena_damage_percent', 'phenomena damage %:') !!}
{!! Form::text('met_phenomena_damage_percent', null, ['class' => 'form-control']); !!}
{!! Form::Label('pests_disease', 'Name of pest or disease:') !!}
{!! Form::text('pests_disease', null, ['class' => 'form-control']); !!}
{!! Form::Label('pests_disease_damage_date', 'Pest or disease damage date:') !!}
{!! Form::text('pests_disease_damage_date', null, ['class' => 'date form-control']); !!}
{!! Form::Label('pests_disease_damage_kind', 'Pests or disease damage kind:') !!}
{!! Form::text('pests_disease_damage_kind', null, ['class' => 'form-control']); !!}
{!! Form::Label('pests_disease_damage_percent', 'Pest/disease extent of damage %:') !!}
{!! Form::text('pests_disease_damage_percent', null, ['class' => 'form-control']); !!}
{!! Form::Label('weeds_spreading_percent', 'Weeds spreading percent %:') !!}
{!! Form::text('weeds_spreading_percent', null, ['class' => 'form-control']); !!}
{!! Form::Label('harvesting_date', 'Harvesting date:') !!}
{!! Form::text('harvesting_date', null, ['class' => 'date form-control']); !!}
{!! Form::Label('yield', 'Yield:') !!}
{!! Form::text('yield', null, ['class' => 'form-control']); !!}
{!! Form::Label('notes', 'Notes:') !!} {!! Form::text('notes', null, ['class' => 'form-control']); !!}
{!! Form::submit('Submit'); !!} {{ Form::close() }}