@extends('layouts/eims_layout') @section('title', '| ' . $pageTitle) @section('content')
Add {{ $pageTitle }}
{!! Form::open(['url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups']) !!}
@php $programLabel = match ($companyType ?? null) { 'UNV' => 'Program', 'SCL','CLG' => 'Medium', default => 'Program/Medium' }; @endphp {!! Form::label('program_medium_id', $programLabel . ': *', ['class' => 'col-sm-4 control-label'], false) !!}
{!! Form::select('program_medium_id', $programs, $value = null, [ 'class'=>'form-control custom-select2', 'id' => 'program_medium_id', 'placeholder' => $companyType == 'UNV' ? 'Select Program' : 'Select Medium/Version', ]) !!}

{!! Form::label('session_id', 'Session: *', ['class' => 'col-sm-4 control-label'], false) !!}
{!! Form::select('session_id', $sessions, $value = null, ['class'=>'form-control custom-select2', 'id' => 'session_id','placeholder' => 'Please select a session']) !!}

@php $semesterOrClassLabel = match ($companyType) { 'UNV' => 'Semester', 'SCL', 'CLG' => 'Class', default => 'Semester/Class/Year' }; @endphp {!! Form::label('semester_class_id', $semesterOrClassLabel . ': *', ['class' => 'col-sm-4 control-label'], false) !!}
{!! Form::select('semester_class_id', $semesterClass, $value = null, [ 'class'=>'form-control custom-select2', 'id' => 'semester_class_id', 'placeholder' => $companyType == 'UNV' ? 'Select Semester' : 'Select Class', ]) !!}

@if (isset($companyType) && $companyType == 'SCL')
{!! Form::label('semester_class_group_id', 'Class Group: *', ['class' => 'col-sm-4 control-label'], false) !!}
{!! Form::select('semester_class_group_id', $semesterClassGroup, $value = null, [ 'class'=>'form-control custom-select2', 'id' => 'semester_class_group_id', 'placeholder' => 'Please select class group', ]) !!}

@endif
{!! Form::label('section_id', 'Section: *', ['class' => 'col-sm-4 control-label'], false) !!}
{!! Form::select('section_id', $sections, $value = null, [ 'class'=>'form-control custom-select2', 'id' => 'section_id', 'placeholder' => 'Please Select Section', ]) !!}

{!! Form::label('teacher_id', 'Teacher: *', ['class' => 'col-sm-4 control-label'], false) !!}
{!! Form::select('teacher_id', $teachers, $value = null, [ 'class'=>'form-control custom-select2', 'id' => 'teacher_id', 'placeholder' => 'Please Select Section', ]) !!}

{!! Form::label('submit', ' ', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@endsection