@php $index_to_elemet_maps = [ 'employeeCode' => '_employee_code_element', 'employeeId' => '_employee_id_element', 'allEmployeeId' => 'all_employee_id_element', 'dateFrom' => '_dateFrom_element', 'dateTo' => '_dateTo_element', 'dateRange' => '_dateRange_element', 'status' => '_status_element', 'fillEmployeeStatus' => '_employee_status_element', 'custom' => '_custom_element', 'branchId' => '_branch_id_element', 'branchIdWithoutHO' => '_branch_id_element_without_ho', 'branchId_for_report' => '_branch_id_for_report_element', 'gnrSupplierId' => '_gnr_supplier_id_element', 'fillBranchIdForExportImport' => 'pos/_branch_id_element_for_export_import', 'supplierId' => 'pos/_supplier_id_element', 'collectedById' => 'pos/_colected_by_id_element', 'customerId' => 'pos/_customer_id_element', 'group_id' => 'pos/_group_id_element', 'category_id' => 'pos/_category_id_element', 'sub_category_id' => 'pos/_subcategory_id_element', 'brand_id' => 'pos/_brand_id_element', 'model_id' => 'pos/_model_id_element', 'IncentiveTypeId' => 'pos/_incentive_type_id_element', 'allEmployeeIdForPos' => 'pos/_all_employee_id_element', 'inv_group_id' => 'inventory/_inv_group_id_element', 'inv_category_id' => 'inventory/_inv_category_id_element', 'inv_sub_category_id' => 'inventory/_inv_subcategory_id_element', 'inv_model_id' => 'inventory/_inv_model_id_element', 'report_level' => '_report_level_element', 'report_level_for_report' => '_report_level_for_report_element', 'project' => '_project_element', 'project_type' => '_project_type_element', 'acc_depth_level' => '_acc_depth_level_element', 'acc_search_by_time' => '_acc_search_by_time_element', 'acc_search_by_date' => '_acc_search_by_date_element', 'fiscal_year' => '_fiscal_year_element', 'year' => '_year_element', 'fillYear' => '_year_element_specific', 'month' => '_month_element', 'monthyear' => '_montYear_element', 'mfnFundingOrg' => '_mfn_funding_org_element', 'mfnProductCategory' => '_mfn_loan_product_category_element', 'mfnProduct' => '_mfn_loan_product_element', 'mfnMraProductCategory' => '_mfn_mra_loan_product_category_element', 'reporting_boss_config' => '_reporting_boss_config_element', 'mfn_branchId' => 'microfin._branch_id_element', 'mfn_creditOfficerId' => 'microfin._fieldofficer_id_element', 'mfn_productCategoryId' => 'microfin._product_category_id_element', 'mfn_serviceChanrgeId' => 'microfin._service_charge_id_element', 'mfn_savingsInterestId' => 'microfin._savings_interest_id_element', 'mfn_samityActive' => 'microfin._samity_active_element', 'fillCampusId' => 'eims/_eims_campus_element', 'fillFacultyId' => 'eims/_eims_faculty_element', 'fillBuildingId' => 'eims/_eims_building_element', 'fillCourseSubjectId' => 'eims/_eims_course_subject_element', 'fillDepartmentId' => 'eims/_eims_department_element', 'fillProgramId' => 'eims/_eims_program_element', 'fillRoomId' => 'eims/_eims_room_element', 'fillSectionId' => 'eims/_eims_section_element', 'fillSemesterClassId' => 'eims/_eims_semester_class_element', 'fillSemesterClassGroupId' => 'eims/_eims_semester_class_group_element', 'fillSessionId' => 'eims/_eims_session_element', 'fillEmployeeTeacherId' => 'eims/_eims_employee_teachers_element', 'fillStudentId' => 'eims/_eims_students_element', 'fillAcademicExamId' => 'eims/_eims_academic_exam_element', 'fillShiftId' => 'eims/_eims_shift_element', 'fillExamShiftId' => 'eims/_eims_exam_shift_element', ]; $buttonLevel = isset($buttonLevel) ? $buttonLevel : 'Search'; $method = isset($method) ? $method : 'post'; @endphp
{!! Form::open([ 'name' => 'searchForm', 'id' => 'searchForm', 'class' => 'searchForm', 'url' => '#', 'method' => $method, ]) !!} @foreach ($searchElements as $searchElement) @include('partials.searchPanel.' . $index_to_elemet_maps[$searchElement['element']], [ 'element' => $searchElement, ]) @endforeach
{!! Form::label('', '', ['class' => 'control-label']) !!}
{!! Form::submit($buttonLevel, ['id' => 'submit', 'class' => 'btn btn-search']) !!}
{!! Form::close() !!}