@extends('layouts/eims_layout') @section('title', '| ' . $pageTitle) @section('content') @include('successMsg')
{{ $pageTitle }}
@php if($companyType == 'UNV'){ $searchElements[] = ['element' => 'fillFacultyId', 'defaultValue' => request()->fillFacultyId]; } $searchElements[] = ['element' => 'fillProgramId', 'label' => $companyType == 'UNV' ? 'Program' : 'Medium/Version', 'defaultValue' => request()->fillProgramId]; $searchElements[] = ['element' => 'fillSessionId', 'label' => 'Session', 'defaultValue' => request()->fillSessionId]; $searchElements[] = ['element' => 'fillSemesterClassId', 'label' => $companyType == 'UNV' ? 'Semester' : 'Class', 'defaultValue' => request()->fillSemesterClassId]; if($companyType !== 'UNV'){ $searchElements[] = ['element' => 'fillSemesterClassGroupId', 'label' => 'Group', 'defaultValue' => request()->fillSemesterClassGroupId, 'required']; } $searchElements[] = ['element' => 'fillSectionId', 'defaultValue' => request()->fillSectionId]; $searchElements[] = ['element' => 'custom', 'name' => 'student_id','id' => 'student_id', 'type' => 'select', 'label' => 'Student:', 'options' => $studentsList ?? [], 'defaultValue' => request()->student_id]; @endphp @include('partials.searchPanel.main', ['searchElements' => $searchElements, 'method' => 'POST']) {{Form::open(['id' => 'courseSubjectEnrollForm', 'autocomplete' => 'off'])}} @php($courseSubjectLabel = $companyType === 'UNV'? 'Course' : 'Subject') @if(!empty($students?->toArray())) @if(count($students) === 1) @php($student = $students[0]) {{-- student info in a para --}}

{{ Form::hidden('student_ids[]', $student?->id) }} Student Name: {{$student?->name}}
Roll No: {{$student?->roll_no}}
@if($companyType == 'UNV') Faculty: {{$student->eims_faculty?->name ?? null}}
@endif {{$companyType === 'UNV' ? 'Program' : 'Medium/Version' }}: {{$student->eims_program->name ?? null}}
Session: {{$student->eims_session?->name ?? null}}
Class: {{$student->eims_semester_class?->name ?? null}}
Group: {{$student->eims_semester_class_group?->name ?? null}}
Section: {{$student->eims_section?->name ?? null}}
Father: {{$student->eims_student_information?->father_name ?? null}}
Date of Birth: {{$student?->dob?->format('d-m-Y')}}
Phone Number: {{$student?->phone_number}}


{{-- generalcoursesubject select box--}}
{!! Form::label('general_course_subject_ids',"General $courseSubjectLabel:". '*', ['class' => 'control-label '], false) !!}
@foreach($generalCourseSubjects as $generalCourseSubject) {{$generalCourseSubject?->name}} {{ Form::hidden("general_course_subject_ids[$student?->id][]", $generalCourseSubject?->id) }} @endforeach
@if(count($selectiveCompulsoryCourseSubjects) > 0) {{-- compulsoryCourseSubject select box--}}
{!! Form::label('selective_compulsory_course_subject_ids', "Selective Compulsory $courseSubjectLabel: " . '*', ['class' => 'control-label '], false) !!}
@endif @if(count($selectiveOptionalCourseSubjects) > 0) {{-- optionalcoursesubject select box--}}
{!! Form::label('selective_optional_course_subject_ids', "Selective Optional $courseSubjectLabel:", ['class' => 'control-label ']) !!}
@endif @elseif(count($students) > 1) @php($student_enrolled_course_subjects_ids = [1,2,3])
{{Form::label('students', 'Students', ['class' => 'control-label '])}} @if($companyType === 'UNV') @endif @if($companyType === 'UNV') @endif @if($companyType !== 'UNV') @endif @foreach($students as $student) @if($companyType === 'UNV') @endif @if($companyType === 'UNV') @endif @if($companyType !== 'UNV') @endif @endforeach
{{-- check box to check all--}} Roll No Photo Faculty {{$companyType == 'UNV' ? 'Program' : 'Medium/Version'}} Session Class Group Section Applicant Father Date of Birth Phone Number Gender Status
{{$student?->roll_no}} {{$student?->name}} {{$student?->eims_faculty?->name}}{{$student?->eims_program?->name}}{{$student?->eims_session?->name}}{{$student?->eims_semester_class?->name}} {{$student?->eims_semester_class_group?->name}} {{$student?->eims_section?->name}}{{$student?->name}} {{$student?->eims_student_information?->father_name}} {{$student?->dob?->format('d-m-Y')}} {{$student?->phone_number}} {{$student?->gender}} {{$student?->status}}
@endif
Close
@endif {{ Form::close() }}
@endsection