{!! $project_term_report->label($field) !!}
@foreach (AppHelper::options('asc_report_terms') as $k => $v)
Warning : Undefined variable $k in /var/www/html/pruthvi/resources/views/project_term_report/asc_report/create_section.blade.php on line 18
@if ($k == $term)
{!! Form::number($field, old($field, $value), ['id' => "report[$k][$field]", 'oninput' => 'checkReasonVisibility(); updateLiveTotal("'.$field.'")',
'data-field-name' => $field,
'data-term' => $k,
'class' => 'report-input']) !!}
@if ($term === 'REPORT03')
@if ($field === 'child_commitments')
{!! Form::text('decisions_reason', old('decisions_reason', $project_term_report->decisions_reason), [
'class' => 'form-control-sm mt-1',
'id' => 'decisions_reason',
'placeholder' => 'Reason for less than 10',
'style' => 'display: none;'
]) !!}
@elseif ($field === 'child_newlife')
{!! Form::text('new_life_members_reason', old('new_life_members_reason', $project_term_report->new_life_members_reason), [
'class' => 'form-control-sm mt-1',
'id' => 'new_life_members_reason',
'placeholder' => 'Reason for less than 5',
'style' => 'display: none;'
]) !!}
@elseif ($field === 'junior_groups')
{!! Form::text('worship_groups_reason', old('worship_groups_reason', $project_term_report->worship_groups_reason), [
'class' => 'form-control-sm mt-1',
'id' => 'worship_groups_reason',
'placeholder' => 'Reason for less than 1',
'style' => 'display: none;'
]) !!}
@endif
@endif
@if ($errors->has($field))
{{ $errors->first($field) }}
@endif
@else
{!! Form::number(null, $value, ['disabled' => true,'data-field-name' => $field, 'data-term' => $k, 'class' => 'report-input']) !!}
@endif
@endforeach
@endforeach