diff --git a/package.json b/package.json
index 45edef7..a4532cb 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,7 @@
"react-leaflet": "^4.2.1",
"react-leaflet-draw": "^0.20.4",
"react-leaflet-markercluster": "^4.2.1",
+ "react-qr-code": "^2.0.18",
"react-toastify": "^10.0.5",
"sass": "^1.75.0",
"sharp": "^0.33.4",
diff --git a/src/components/dashboard/damages/operator/Form/CreateFactor/CreateFactorContent.jsx b/src/components/dashboard/damages/operator/Form/CreateFactor/CreateFactorContent.jsx
index b538199..fe8380b 100644
--- a/src/components/dashboard/damages/operator/Form/CreateFactor/CreateFactorContent.jsx
+++ b/src/components/dashboard/damages/operator/Form/CreateFactor/CreateFactorContent.jsx
@@ -17,6 +17,7 @@ import {
Typography,
} from "@mui/material";
import { useReducer, useState } from "react";
+import QRCode from "react-qr-code";
const initialState = {
submittingCreateFactor: false,
@@ -147,15 +148,53 @@ const CreateFactorContent = ({ row, mutate, rowId, setOpenCreateFactorDialog })
ریال
- {!factorCreated && (
+ {factorCreated ? (
+
+
+
+ {row.original.is_foreign ? (
+ <>
+
+ میتوانید برای پرداخت، بارکد را اسکن کنید
+
+ >
+ ) : (
+ <>
+
+ لینک پرداخت به شماره همراه مورد نظر ارسال شد
+
+
+ همچنین میتوانید برای پرداخت، بارکد را اسکن کنید
+
+ >
+ )}
+
+
+
+
+
+
+ ) : (
پس از صدور فاکتور، امکان ویرایش مبالغ بیمه و داغی وجود نخواهد داشت
-
- لینک پرداخت فاکتور به شماره {row.original?.driver_phone_number} ارسال می شود.
-
+ {!row.original.is_foreign && (
+
+ لینک پرداخت فاکتور به شماره {row.original?.driver_phone_number} ارسال می شود.
+
+ )}
)}
@@ -172,15 +211,17 @@ const CreateFactorContent = ({ row, mutate, rowId, setOpenCreateFactorDialog })
>
بستن
-
+ {!row.original.is_foreign && (
+
+ )}