diff --git a/public/files/شيوه نامه تبصره 18-1402.pdf b/public/files/شيوه نامه تبصره 18-1402.pdf new file mode 100644 index 0000000..a3afbda Binary files /dev/null and b/public/files/شيوه نامه تبصره 18-1402.pdf differ diff --git a/public/files/قراردا عامليت.tif-.tif b/public/files/قراردا عامليت.tif-.tif new file mode 100644 index 0000000..c7b7529 Binary files /dev/null and b/public/files/قراردا عامليت.tif-.tif differ diff --git a/src/components/dashboard/navgan/add-request-loan/forms/CheckRules.jsx b/src/components/dashboard/navgan/add-request-loan/forms/CheckRules.jsx index a372461..aa564dc 100644 --- a/src/components/dashboard/navgan/add-request-loan/forms/CheckRules.jsx +++ b/src/components/dashboard/navgan/add-request-loan/forms/CheckRules.jsx @@ -1,7 +1,8 @@ -import { Box, Button, Checkbox, FormControlLabel, FormGroup, Stack, Typography } from "@mui/material"; +import { Box, Button, Checkbox, FormControlLabel, FormGroup, Link, Stack, Typography } from "@mui/material"; import { CenterLayout } from "@witel/webapp-builder"; import { useTranslations } from "next-intl"; import { useState } from "react"; +import DownloadIcon from "@mui/icons-material/Download"; const CheckRules = ({ setRulesChecked }) => { const t = useTranslations(); @@ -97,15 +98,13 @@ const CheckRules = ({ setRulesChecked }) => { }, { title: "بازپرداخت", - subtitles: [ - "دوره مشارکت حداکثر 6 ماهه ، تنفس حداکثر 4 ماهه و دوره بازپرداخت تسهیلات سرمایه 5 سال است.", - ], + subtitles: ["دوره مشارکت حداکثر 6 ماهه ، تنفس حداکثر 4 ماهه و دوره بازپرداخت تسهیلات سرمایه 5 سال است."], }, { title: "واریز تسهیلات", subtitles: [ "مبلغ وام اتوبوس طی 2 مرحله به حساب متقاضی واریز گردد.", - "مبلغ وام مینی بوس و میدل باس طی یک مرحله به حساب متقاضی واریز گردد." + "مبلغ وام مینی بوس و میدل باس طی یک مرحله به حساب متقاضی واریز گردد.", ], }, { @@ -125,16 +124,18 @@ const CheckRules = ({ setRulesChecked }) => { const renderRuleContent = (content) => { if (typeof content === "string") { return ( - + {content} ); } return ( - - {content.title} + + + {content.title} + - {content.subtitles.map((sub, index) => renderRuleContent(sub))} + {content.subtitles.map((sub, index) => renderRuleContent(sub, index))} ); @@ -155,33 +156,63 @@ const CheckRules = ({ setRulesChecked }) => { {rules.map((rule, index) => ( - - + + {rule.title}
    - {rule.subtitles.map((sub, subIndex) => renderRuleContent(sub))} + {rule.subtitles.map((sub, index) => renderRuleContent(sub, index))}
))}
- - setRulesAccepted(e.target.checked)} - /> - } - label={t("LoanRequest.accept_all_rules")} - sx={{ textAlign: "center", - "& .MuiTypography-root": { - fontSize: "1rem", // Adjust font size - fontWeight: 500, // Adjust font weight (e.g., 400 for normal, 700 for bold) - }, - }} - /> - + + + مستندات + + + + + + + setRulesAccepted(e.target.checked)} + /> + } + label={t("LoanRequest.accept_all_rules")} + sx={{ + textAlign: "center", + "& .MuiTypography-root": { + fontSize: "1rem", // Adjust font size + fontWeight: 500, // Adjust font weight (e.g., 400 for normal, 700 for bold) + }, + }} + /> + +