@extends('layouts.appnew') @section('title') {{ $project->title() }} @endsection @section('navs') @endsection @section('content')
@include ('al.al_project.options')
{{ $project->title() }}
@include ('common.flash')
{!! Form::open(['url' => route('al_project.update', [$project->id])]) !!} @csrf {!! EasyForm::setErrors($errors) !!} @if (Auth::user()->isAdmin() || Auth::user()->hasAnyRole(['nm', 'second_inline'])) @if (Auth::user()->isAdmin())
{{$project->label('admin')}} {!! EasyForm::Select('status', $project->label('status'), old('status', $project->status), AppHelper::options('project_approval_workflows')) !!} {!! EasyForm::Select('application_status', $project->label('application_status'), old('application_status', $project->application_status), AppHelper::options('application_workflows')) !!} {!! EasyForm::select('special_project', $project->label('special_project'), old('special_project', $project->special_project), AppHelper::options('al_special_projects')) !!} {!! EasyForm::Select('entity', $project->label('entity'), old('entity', $project->entity), AppHelper::options('entities')) !!}
@endif @endif
{{$project->label('project_location_label')}} @if (Auth::user()->isAdmin()) {!! EasyForm::select('state', $project->label('state'), old('state', $project->state), AppHelper::options('states')) !!} {!! EasyForm::dependent('district', $project->label('district'), old('district', $project->district), AppHelper::options('districts'), 'state')!!} @endif {!! EasyForm::location('location', $project->label('location'), old('location', $project->location))!!} {!! EasyForm::input('location_latlong', $project->label('location_latlong'), old('location_latlong', $project->location_latlong), ['readonly' => true, 'placeholder' => 'Autofill'])!!}
{{$project->label('other_details_label')}} {!! EasyForm::select('fcra', $project->label('fcra'), old('fcra', $project->fcra), AppHelper::options('yes_no')) !!} {!! EasyForm::select('class_language', $project->label('class_language'), old('class_language', $project->class_language), AppHelper::options('our_languages')) !!} @if ($project->status != 'approved'||($project->status == 'approved' && (Auth::user()->isAdmin() || Auth::user()->hasAnyRole(['nm', 'second_inline'])))) {!! EasyForm::input('classes', $project->label('classes'), old('classes', $project->classes))!!} {!! EasyForm::input('no_of_learners', $project->label('no_of_learners'), old('no_of_learners', $project->no_of_learners))!!} @else {!! EasyForm::viewInput('classes', $project->label('classes'), $project->classes)!!} {!! EasyForm::viewInput('no_of_learners', $project->label('no_of_learners'), $project->no_of_learners)!!} @endif {!! EasyForm::input('people_groups', $project->label('people_groups'), old('people_groups', $project->people_groups))!!} {!! EasyForm::input('languages', $project->label('languages'), old('languages', $project->languages))!!}
@include ('program_request.edit_section') {!! EasyForm::submit('Submit') !!} {!! Form::close() !!}
@include ('layouts.map') @endsection