@php
$options = ['' => 'Select any'];
$searchElements = [
['element' => 'fillProgramId'],
['element' => 'fillSessionId'],
['element' => 'fillSemesterClassId'],
['element' => 'fillSectionId'],
['element' => 'fillShiftId'],
];
// 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])
| SL# |
{{ $data['companyType'] == 'SCL' ? 'Medium/Version Name' : 'Program Name' }}
|
Session Name |
{{ $data['companyType'] == 'SCL' ? 'Class Name' : 'Semester Name' }}
|
Created By |
Action |