@extends('layouts.page') @section('title') DASHBOARD @endsection @section('navs') @endsection @section('content')
@include ('dashboard.field_staff.options')
Project Allocations
{!! Form::open(['method' => 'get', 'id' => 'idThisForm']) !!} {!! Form::select('year', ['' => 'Year']+ AppHelper::options('years'), request()->year, ['class' => 'form-control1 mr-2', 'onchange' => 'submitThisForm()', 'style' => 'width: 100px;']) !!} {!! Form::close()!!}
@for($i=1; $i<=$count; $i++) @endfor @foreach ($allocations as $project)
Warning: Undefined variable $project in /var/www/html/pruthvi/resources/views/dashboard/field_staff/allocations.blade.php on line 50

Fatal error: Uncaught Error: Call to a member function project_incharge() on null in /var/www/html/pruthvi/resources/views/dashboard/field_staff/allocations.blade.php:50 Stack trace: #0 {main} thrown in /var/www/html/pruthvi/resources/views/dashboard/field_staff/allocations.blade.php on line 50
Project Code Project Incharge Visits Total
C{{$i}}