@extends('layouts/eims_layout') @section('title', '| ' . $data['pageTitle']) @section('content')
{{-- Add {{ $data['pageTitle'] }} --}} {{-- --}}    
{{ $data['pageTitle'] }} Generate
{!! Form::open([ 'url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'courseClassRoutineForm', ]) !!} @php $options = ['' => 'Select any']; $searchElements = [ ['element' => 'fillProgramId','label' => $data['companyType'] === 'UNV' ? 'Program' : 'Medium/Version'], ['element' => 'fillSessionId','label' => 'Session'], ['element' => 'fillSemesterClassId'], ['element' => 'fillSectionId'], ['element' => 'fillShiftId','label' => 'Shift'], ]; // Conditionally add 'semester_class_group_id' for 'SCL' companyType if ($data['companyType'] == 'SCL') { array_splice($searchElements, 3, 0, [['element' => 'fillSemesterClassGroupId']]); } // Conditionally add 'semester_class_group_id' for 'SCL' companyType if ($data['companyType'] == 'CLG') { array_splice($searchElements, 3, 0, [['element' => 'fillSemesterClassGroupId']]); } // Conditionally add 'faculty_id' for 'UNV' companyType at the beginning if ($data['companyType'] == 'UNV') { array_unshift($searchElements, ['element' => 'fillFacultyId']); // Adds 'faculty_id' at the beginning } @endphp @include('partials.searchPanel.main', ['searchElements' => $searchElements]) {!! Form::close() !!}
{{--
@endsection