@extends('layouts/eims_layout') @section('title', '| ' . $data['pageTitle']) @section('content') @include('successMsg')

{{ $data['pageTitle'] }} View

{{-- Form Collection using Laravel Collective --}} {!! Form::open([ 'route' => 'eims_exam_subject_marks_config_store', 'id' => 'admissionExamSubjectMarkConfigurationForm', 'class' => 'form-horizontal form-groups', 'autocomplete' => 'off' ]) !!}
{!! Form::label( 'program_id', $data['companyType'] == 'UNV' ? 'Program: *' : 'Medium/Version: *', ['class' => 'control-label text-gray col-sm-4'], false, ) !!}
{!! Form::select('program_id', $programs, $value = $examCourseSubjectMarkConfig->program_id ?? null, [ 'class' => 'form-control', 'id' => 'program_id', 'placeholder' => $data['companyType'] == 'UNV' ? 'Select Program' : 'Select Medium/Version', 'disabled' => 'true', ]) !!}

{!! Form::label( 'semester_class_id', $data['companyType'] == 'UNV' ? 'Semester: *' : 'Class: *', ['class' => 'control-label text-gray col-sm-4'], false, ) !!}
{!! Form::select('semester_class_id', $semesterClass, $value = $examCourseSubjectMarkConfig->semester_class_id ?? null, [ 'class' => 'form-control', 'id' => 'semester_class_id', 'placeholder' => $data['companyType'] == 'UNV' ? 'Select Semester' : 'Select Class', 'disabled' => 'true', ]) !!}

{!! Form::label('name', 'Exam Subject Config Name: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::text('name', $examCourseSubjectMarkConfig->name ?? null, [ 'id' => 'name', 'class' => 'form-control', 'placeholder' => 'Enter Exam Subject Config Name/Title', 'disabled' => 'true', ]) !!}
{!! Form::label('effective_date', 'Effective Date: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::text('effective_date', date('d-m-Y',strtotime($examCourseSubjectMarkConfig->effective_date)) ?? null, [ 'id' => 'effective_date', 'class' => 'form-control', 'placeholder' => 'Enter Effective Date', 'disabled' => 'true', ]) !!}
@foreach ($contentType as $value => $name) @endforeach

Exam Marking Range
{!! Form::number('max_marks[1]', $examCourseSubjectMarkConfig->eims_exam_subject_marks_config_details[0]->max_mark ?? null, [ 'class' => 'form-control max-mark-input', 'placeholder' => 'Enter Max Marks', 'id' => 'max_mark_1', 'step' => '0.01', 'min' => '0', 'oninput' => "validity.valid||(value=''); toggleMarksInput();", 'disabled' => true ]) !!}
{!! Form::number('min_marks[1]', $examCourseSubjectMarkConfig->eims_exam_subject_marks_config_details[0]->min_mark ?? null, [ 'class' => 'form-control min-mark-input', 'placeholder' => 'Enter Min Marks', 'id' => 'min_mark_1', 'min' => '0.01', 'step' => '0.01', 'oninput' => "validity.valid||(value='');", 'disabled' => true ]) !!}


Exam Criteria
@if($examCourseSubjectMarkConfig->eims_exam_subject_marks_config_details) @php $configMarKDetails = $examCourseSubjectMarkConfig->eims_exam_subject_marks_config_details[0]->config_marks; @endphp @foreach($configMarKDetails as $keyConfig => $config) @endforeach @endif
Subject Name {!! Form::text('subject_name[]', $keyConfig, [ 'class' => 'form-control input-sm text-center subject_name', 'id' => 'subject_name1', 'placeholder' => 'Enter Subject Name', 'autocomplete' => 'off', 'style' => 'margin-right: 10px;', 'oninput' => "checkForReadonly(this,1)", 'disabled' => true ]) !!}
Mark {!! Form::number('subject_marks[]', $config['marks'], [ 'class' => 'form-control input-sm text-center subject_marks_input', 'id' => 'subject_marks_input1', 'placeholder' => 'Enter Marks', 'autocomplete' => 'off', 'min' => '0', 'step' => '0.01', 'oninput' => "validity.valid||(value='');", 'disabled' => true ]) !!}
Pass Mark {!! Form::number('subject_pass_marks[]', $config['pass_marks'], [ 'class' => 'form-control input-sm text-center subject_pass_marks_input', 'id' => 'subject_pass_marks_input1', 'placeholder' => 'Enter Marks', 'autocomplete' => 'off', 'min' => '0', 'step' => '0.01', 'oninput' => "validity.valid||(value='');", // Merged the two oninput functions 'disabled' => true ]) !!}


{!! Form::close() !!}
@endsection