add other changes

This commit is contained in:
nurmuhammet committed 2024-09-26 02:50:56 +05:00
1 parent f3be359202
commit 8e59240edd
7 files changed
+121 -14

No files matched your search

@@ -14,14 +14,23 @@ class BaseAppEnumController extends Controller
/**
* Base app enums
*/
public function index()
public function index(): array
{
return [
'loan_types' => LoanTypeRepo::onlyGuarantor(),
'regions' => RegionRepo::values(),
'educations' => EducationRepo::values(),
'educations' => $this->educationValues(),
'marriage_statuses' => MarriageRepo::values(),
'passport_series' => PassportRepo::values(),
];
}
public function educationValues(): array
{
return [
EducationRepo::MIDDLE_SCHOOL => __('Middle school'),
EducationRepo::UNFINISHED_HIGH_EDUCATION => __('Unfinished high education'),
EducationRepo::HIGH_EDUCATION => __('High education'),
];
}
}