@php use App\Models\eims\settings\academic\ContentType; @endphp @extends('layouts/eims_layout') @section('title', '| ' . $data['pageTitle']) @section('content') @include('successMsg')

{{ $data['pageTitle'] }}

@php if ($data['companyType'] == 'UNV') { $searchElements[] = ['element' => 'fillFacultyId', 'defaultValue' => request()->fillFacultyId]; } $searchElements[] = ['element' => 'fillProgramId', 'defaultValue' => request()->fillProgramId]; $searchElements[] = ['element' => 'fillSemesterClassId', 'defaultValue' => request()->fillSemesterClassId]; @endphp @include('partials.searchPanel.main', ['searchElements' => $searchElements]) @if(count($examCourseSubject) > 0) {{-- Form Collection using Laravel Collective --}} {!! Form::open([ 'route' => 'eims_exam_subject_marks_config_store', 'id' => 'examSubjectMarkConfigurationForm', 'class' => 'form-horizontal form-groups', 'autocomplete' => 'off' ]) !!}
{!! Form::label('name', 'Exam Subject Config Name: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::text('name', null, [ 'id' => 'name', 'class' => 'form-control', 'placeholder' => 'Enter Exam Subject Config Name/Title', ]) !!}
{!! Form::label('effective_date', 'Effective Date: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::text('effective_date', null, [ 'id' => 'effective_date', 'class' => 'form-control', 'placeholder' => 'Enter Effective Date', 'readonly' => 'readonly', ]) !!}
{{-- @if ($data['companyType'] == 'SCL' || $data['companyType'] == 'CLG' || $data['companyType'] == 'UNV')--}}
@foreach ($examCourseSubject as $subject) {{-- Start of a new card --}}

{{ $subject->name }} - {{ $subject->course_subject_code }} [{{$subject->course_subject_type->name}}] {{Form::hidden('course_subject_ids[]', $subject->id)}}

Exam Marking Range
{!! Form::label("max_mark_$subject->id", 'Max Marks: *',[ 'class' => 'control-label text-gray col-sm-2', 'style' => 'color: #454545; flex: 0 0 20%; padding: 4px !important; margin-left: 30px !important;', ], false) !!}
{!! Form::number("max_marks[$subject->id]", null, [ 'class' => 'form-control max-mark-input', 'placeholder' => 'Enter Max Marks', 'id' => "max_mark_$subject->id", // Unique input ID 'step' => 1 ]) !!}
{!! Form::label("min_mark_$subject->id",'Min Marks: *', [ 'class' => 'control-label text-gray col-sm-2', 'style' => 'color: #454545; flex: 0 0 20%; padding: 4px !important; margin-left: 30px !important;', 'id' => "min_mark_$subject->id", // Unique label ID 'step' => 1 ], false) !!}
{!! Form::number("min_marks[$subject->id]", null, [ 'class' => 'form-control min-mark-input', 'placeholder' => 'Enter Min Marks', 'id' => "min_mark_$subject->id", // Unique input ID ]) !!}


Duration
@php($required = $subject->course_subject_type_id !== ContentType::COURSE_SUBJECT_TYPE_PRACTICAL) {!! Form::label("theory_$subject->id", 'Theory: ' . ($required ? '*' : null), [ 'class' => 'control-label text-gray col-sm-1', ], false) !!}
{!! Form::number("theory[$subject->id]", null, [ 'class' => 'form-control exam-config-input', 'placeholder' => 'Enter Theory Marks', 'id' => "theory_$subject->id", 'disabled' => !$required, ]) !!}
{!! Form::label("theory_exam_duration_$subject->id", 'Duration: *',[ 'class' => 'control-label text-gray col-sm-1', 'style' => 'color: #454545; flex: 0 0 20%; padding: 4px !important;', ], false) !!}
{!! Form::number("theory_exam_duration[$subject->id]", null, [ 'class' => 'form-control max-mark-input', 'placeholder' => 'Enter Duration Minute', 'id' => "theory_exam_duration_$subject->id", // Unique input ID 'disabled' => !$required, 'step' => 1 ]) !!}
@php($required = $subject->course_subject_type_id !== ContentType::COURSE_SUBJECT_TYPE_THEORY) {!! Form::label("practical_$subject->id" , 'Practical: ' . ($required ? '*' : null), [ 'class' => 'control-label text-gray col-sm-1' ], false) !!}
{!! Form::number("practical[$subject->id]", null, [ 'class' => 'form-control exam-config-input', 'placeholder' => 'Enter Min Marks', 'autocomplete' => 'off', 'id' => "practical_$subject->id" , 'disabled' => !$required, ]) !!}
{!! Form::label("practical_exam_duration_$subject->id", 'Duration: *',[ 'class' => 'control-label text-gray col-sm-1', 'style' => 'color: #454545; flex: 0 0 20%;', ], false) !!}
{!! Form::number("practical_exam_duration[$subject->id]", null, [ 'class' => 'form-control max-mark-input', 'placeholder' => 'Enter Duration Minute', 'id' => "practical_exam_duration_$subject->id", // Unique input ID 'disabled' => !$required, 'step' => 1 ]) !!}


Exam Criteria
@foreach ($examConfig as $examConfigId => $examConfigName)
{!! Form::checkbox("config_checked[$subject->id][$examConfigId]", 1, null, [ 'class' => 'form-check-input exam-mark-config-check', 'id' => "config_checkbox_$subject->id". "_$examConfigId" ]) !!}
{!! Form::label("config_checkbox_$subject->id". "_$examConfigId", $examConfigName . ':', [ 'class' => 'control-label text-gray', 'style' => 'color: #454545;', ]) !!} {!! Form::number("config_marks[$subject->id][$examConfigId]", null, [ 'class' => 'form-control exam-config-input', 'placeholder' => 'Enter ' . $examConfigName . ' Marks', 'id' => 'config_input_' . $examConfigId, 'autocomplete' => 'off', 'disabled' => 'disabled', ]) !!}

@endforeach

@endforeach

{{--@elseif ($data['companyType'] == 'UNV')
Start of a new card
{!! Form::label('theory', 'Subject Name:*', [ 'class' => 'control-label text-gray col-sm-2', 'style' => 'color: #454545; padding: 4px !important;', 'id' => 'theory_label_' . '1', ]) !!}
Exam Marking Range
{!! Form::label( 'min_marks[]', 'Min Marks: *', [ 'class' => 'control-label text-gray col-sm-2', 'style' => 'color: #454545; flex: 0 0 20%; padding: 4px !important; margin-left: 30px !important;', 'id' => 'min_number_label_' . '1', // Unique label ID ], false, ) !!}
{!! Form::number('min_marks[]', null, [ 'class' => 'form-control min-mark-input', 'placeholder' => 'Enter Min Marks', 'id' => 'min_mark_' . '1', // Unique input ID ]) !!}
{!! Form::label( 'min_marks[]', 'Max Marks: *', [ 'class' => 'control-label text-gray col-sm-2', 'style' => 'color: #454545; flex: 0 0 20%; padding: 4px !important; margin-left: 30px !important;', 'id' => 'max_number_label_' . '1', // Unique label ID ], false, ) !!}
{!! Form::number('min_marks[]', null, [ 'class' => 'form-control max-mark-input', 'placeholder' => 'Enter Max Marks', 'id' => 'max_mark_' . '1', // Unique input ID ]) !!}


Exam Criteria
{!! Form::label('theory', 'Theory:*', [ 'class' => 'control-label text-gray', 'style' => 'color: #454545; padding: 4px !important;', 'id' => 'theory_label_' . '1', ]) !!} {!! Form::number('theory[]', null, [ 'class' => 'form-control exam-config-input', 'placeholder' => 'Enter Min Marks', 'id' => 'theory_' . '1', ]) !!}
{!! Form::label('practical', 'Practical:*', [ 'class' => 'control-label text-gray', 'style' => 'color: #454545; padding: 4px !important;', 'id' => 'practical_label_' . '1', ]) !!} {!! Form::number('practical[]', null, [ 'class' => 'form-control exam-config-input', 'placeholder' => 'Enter Min Marks', 'id' => 'practical_' . '1', ]) !!}
@foreach ($examConfig as $examConfigId => $examConfigName)
{!! Form::checkbox("config_checked[$subject->id][$examConfigId]" , 1, null, [ 'class' => 'form-check-input exam-mark-config-check', 'id' => 'config_checkbox_' . $examConfigId, ]) !!}
{!! Form::label('config_' . $examConfigId, $examConfigName . ':', [ 'class' => 'control-label text-gray', 'style' => 'color: #454545;', ]) !!} {!! Form::number("config_marks[$subject->id][$examConfigId]", null, [ 'class' => 'form-control exam-config-input', 'placeholder' => 'Enter ' . $examConfigName . ' Marks', 'id' => 'config_input_' . $examConfigId, 'disabled' => 'disabled', ]) !!}
@if ($examConfigName === 'C.T')
@endif
@endforeach


--}} {{-- @endif--}}
{{-- Submit Button --}}
{!! Form::close() !!} @endif
@endsection