diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json
index c9645ab..92b4db7 100644
--- a/public/locales/fa/app.json
+++ b/public/locales/fa/app.json
@@ -152,6 +152,7 @@
"back_to_dashboard": "پیگیری درخواست ها",
"cityList_empty": "ابتدا استان را وارد کنید",
"cityList_loading": "درحال دریافت لیست شهر ها ...",
+ "history_facilities": "دارای سابقه استفاده از تسهیلات تکلیفی می باشم .",
"loan_request_page": "ثبت درخواست وام",
"personal_info": "اطلاعات شخصی",
"real_person": "شخص حقیقی",
diff --git a/src/components/dashboard/navgan/add-request-loan/forms/RealPersonForm.jsx b/src/components/dashboard/navgan/add-request-loan/forms/RealPersonForm.jsx
index d50fe47..ef56100 100644
--- a/src/components/dashboard/navgan/add-request-loan/forms/RealPersonForm.jsx
+++ b/src/components/dashboard/navgan/add-request-loan/forms/RealPersonForm.jsx
@@ -66,6 +66,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
plate_part4: "",
birthday: "",
checkedBox: false,
+ history_facilities: false,
};
const validationSchema = Yup.object().shape({
@@ -166,6 +167,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
plate_part2: values.plate_part2,
plate_part3: values.plate_part3,
plate_part4: values.plate_part4,
+ history_facilities: values.history_facilities === true ? 1 : 0,
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
..._national_card,
..._father_name
@@ -195,7 +197,6 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
onSubmit: handleSubmit,
});
-
return (
<>
@@ -688,7 +689,23 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
/>
-
+
+
+ {
+ formik.setFieldValue("history_facilities", event.target.checked);
+ }}
+ />
+ }
+ label={`${t("LoanRequest.history_facilities")}`}
+ />
+
+
+