@php $user = auth()->user(); @endphp @include('includes.head')
@include('includes.header')

Crop reports

@if ( $user && $user->hasAnyRole(['admin','editor','agric_editor']) )
New crop report
@endif
Crop: Region: Station:
Start date: End date:
@foreach($cropreports as $cropreport) @if ( $user && $user->hasAnyRole(['admin','editor','agric_editor']) ) @endif @endforeach
Region Station Observation date Crop Crop Stage Crop Condition Actions
{{$cropreport->region->region_name }} {{$cropreport->station->station_name }} {{substr($cropreport->observation_date,0,10) }} {{$cropreport->crop->crop_name }} {{$cropreport->crop->phenology[$cropreport->crop_stage_number - 1]->stage_name }} {{$cropreport->cropassessment->general_state }} Details Edit
@csrf @method('DELETE')
{{-- Pagination --}}
{!! $cropreports->links() !!}
@include('includes.footer')