@extends('layouts.page') @section('title')
Form for Backlog {{ ucfirst($name) }} Projects Data Entry :
@endsection @section('navs') @endsection @section('content') @php $states = AppHelper::options('states'); $project_year = AppHelper::options('years'); $special_projects = AppHelper::options('special_projects'); @endphp {!! Form::open(['url' => route('backlog_data.update',[$name,$model->id]), 'files' => true]) !!} @csrf {!! EasyForm::setColSizes(2,4) !!} {!! EasyForm::setErrors($errors) !!}
Select Project Year Special Project
{!! EasyForm::select('year', null, old('year', $model->year), $project_year, ['required' => true,'readonly' => true]) !!} {!! EasyForm::select('special_project', null , old('special_project', $model->special_project),$special_projects,['required' => true , 'readonly' => true]) !!}
@foreach($state_wise_backlogs as $state_wise_backlog) @endforeach
State Name Number of Backlogs
{{ $states[$state_wise_backlog->state] ?? $state_wise_backlog->state }} {!! EasyForm::input("students[{$state_wise_backlog->state}]", null,old("students[{$state_wise_backlog->state}]", $state_wise_backlog->beneficiaries ?? 0), ['required' => true]) !!}
{!! EasyForm::submit('Submit') !!}
{!! Form::close() !!} @endsection @section('styles') @endsection