}>
@@ -28,11 +30,11 @@ const TableHeader = () => {
/>
diff --git a/src/Pages/Admin/Student/show/StudentTabs.tsx b/src/Pages/Admin/Student/show/StudentTabs.tsx
index 3ff820c..0f2e3ac 100644
--- a/src/Pages/Admin/Student/show/StudentTabs.tsx
+++ b/src/Pages/Admin/Student/show/StudentTabs.tsx
@@ -26,8 +26,8 @@ const StudentTabs = () => {
const items: TabsProps['items'] = [
{
key: '1',
- label:
{t("practical.quiz")} ,
- icon:
,
+ label: t("practical.quiz"),
+ icon:
,
children:
<>
{
},
{
key: '2',
- label: {t("practical.hightes_quiz")} ,
- icon:,
+ label: t("practical.hightes_quiz"),
+ icon:,
children:
<>
import("./Pages/Admin/Student/Page"));
const ShowStudent = React.lazy(() => import("./Pages/Admin/Student/show/Page"));
const ReSeller = React.lazy(() => import("./Pages/Admin/Reseller/Page"));
+const ShowReSeller = React.lazy(() => import("./Pages/Admin/Reseller/show/Page"));
const AddReSeller = React.lazy(() => import("./Pages/Admin/Reseller/Add/Page"));
const EditReSeller = React.lazy(
() => import("./Pages/Admin/Reseller/Edit/Page"),
@@ -221,7 +222,15 @@ export const CrudRoute: TCrudRoute[] = [
{
header: "page_header.edit_reseller",
element: ,
- path: `/${ABILITIES_ENUM?.RE_SELLER}/:id`,
+ path: `/${ABILITIES_ENUM?.RE_SELLER}/:${ParamsEnum?.RE_SELLER_ID}/edit`,
+ abilities: ABILITIES_ENUM?.RE_SELLER,
+ abilities_value: ABILITIES_VALUES_ENUM.INDEX,
+ prevPath: 0,
+ },
+ {
+ header: "page_header.reSeller",
+ element: ,
+ path: `/${ABILITIES_ENUM?.RE_SELLER}/:${ParamsEnum?.RE_SELLER_ID}`,
abilities: ABILITIES_ENUM?.RE_SELLER,
abilities_value: ABILITIES_VALUES_ENUM.INDEX,
prevPath: 0,
@@ -229,7 +238,7 @@ export const CrudRoute: TCrudRoute[] = [
{
header: "page_header.student",
element: ,
- path: `/${ABILITIES_ENUM?.STUDENT}/:id`,
+ path: `/${ABILITIES_ENUM?.STUDENT}/:${ParamsEnum?.STUDENT_ID}`,
abilities: ABILITIES_ENUM?.STUDENT,
abilities_value: ABILITIES_VALUES_ENUM.INDEX,
prevPath: 0,
diff --git a/src/Styles/Pages/InfoCard.scss b/src/Styles/Pages/InfoCard.scss
new file mode 100644
index 0000000..878a3a4
--- /dev/null
+++ b/src/Styles/Pages/InfoCard.scss
@@ -0,0 +1,136 @@
+.single_student {
+ display: flex;
+
+ .single_student_body {
+ display: flex;
+ width: 100%;
+
+ .student_info {
+ width: 32%;
+ }
+
+ .student_table {
+ width: 68%;
+ }
+ }
+}
+
+
+
+
+
+.info_card,
+.address_card,
+.attachments_card {
+ width: 24vw;
+ box-shadow: 2px 2px 8px 3px rgba(0, 0, 0, 0.1);
+ border-radius: 10px;
+ padding: 20px 15px;
+
+ p {
+ color: #6A7287;
+ }
+
+ .info_card_header {
+ display: flex;
+ gap: 10px;
+
+ img {
+ width: 24%;
+ }
+
+ .student_name_and_sub {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+
+ span {
+ color: greenyellow;
+ }
+
+ h2 {
+ font-size: 22px;
+ }
+ }
+ }
+
+ .info_card_body {
+ display: flex;
+ flex-direction: column;
+ gap: 30px;
+
+ span {
+ display: flex;
+ justify-content: space-between;
+
+ h4 {
+ color: #202C4B;
+ font-size: 20px;
+ }
+ }
+ .info_card_button{
+ background: var(--primary);
+ color: var(--white);
+ padding: 25px 0px;
+ border-radius: 9px;
+ }
+ }
+}
+
+
+.address_card {
+ margin-block: 30px;
+ .address_card_body {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ div{
+ margin-block: 20px;
+ gap: 15px;
+ display: flex !important;
+ }
+ svg {
+ @include Flex;
+ border-radius: 5px;
+ background: #F2F4F8;
+ width: 40px;
+ height: 40px;
+ padding: 7px;
+ }
+ }
+}
+.tab_icon{
+ font-size: 30px ;
+}
+
+@media screen and (max-width:1250px) {
+ .single_student {
+ display: flex;
+
+ .single_student_body {
+ display: flex;
+ flex-direction: column !important;
+ width: 100%;
+
+ .student_info {
+ display: flex;
+ width: 100%;
+ gap: 20px;
+
+ .address_card {
+ width: 50%;
+ margin-block: 0 !important;
+ max-height: 17vw;
+ }
+
+ .info_card {
+ width: 50%;
+ }
+ }
+
+ .student_table {
+ width: 100%;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/Styles/Pages/StudentInfoCard.scss b/src/Styles/Pages/StudentInfoCard.scss
deleted file mode 100644
index efe2635..0000000
--- a/src/Styles/Pages/StudentInfoCard.scss
+++ /dev/null
@@ -1,101 +0,0 @@
-.single_student{
- display: flex;
- .single_student_body{
- display: flex;
- width: 100%;
- .student_info{
- width: 32%;
- }
- .student_table{
- width: 68%;
- }
- }
-}
-
-
-.student_info_card{
- width: 24vw;
- box-shadow: 2px 2px 8px 3px rgba(0, 0, 0, 0.1);
- border-radius: 10px;
- padding: 20px 15px ;
- .student_info_card_header{
- display: flex;
- gap: 10px;
- img{
- width: 24%;
- }
- .student_name_and_sub{
- display: flex; flex-direction: column;justify-content: center;
- span{
- color: greenyellow;
- }
- h2{
- font-size: 22px;
- }
- }
- }
- .student_info_card_body{
- display: flex; flex-direction: column;
- gap: 30px;
- span{
- display: flex;justify-content: space-between;
- h4{
- color: #202C4B;
- font-size: 20px;
- }
- p{
- color: #6A7287;
- }
- }
- }
-}
-
-.student_address_card{
- width: 24vw;
- box-shadow: 2px 2px 8px 3px rgba(0, 0, 0, 0.1);
- border-radius: 10px;
- padding: 20px 15px ;
- margin-top: 30px;
- .student_address_card_body{
- display: flex;align-items: center;
- gap: 15px;
- svg{
- @include Flex;
- border-radius: 5px;
- background: #F2F4F8;
- width: 40px;height: 40px;
- padding: 7px;
- }
- p{
- color: #6A7287;
- }
- }
-}
-
-
-
-@media screen and (max-width:1250px) {
- .single_student{
- display: flex;
- .single_student_body{
- display: flex;flex-direction: column !important;
- width: 100%;
- .student_info{
- display: flex;
- width: 100%;
- gap: 20px;
- .student_address_card{
- width: 50%;
- margin-top: 0 !important;
- max-height: 17vw ;
- }
- .student_info_card{
- width: 50%;
- }
- }
- .student_table{
- width: 100%;
- }
- }
- }
-}
diff --git a/src/Styles/Pages/index.scss b/src/Styles/Pages/index.scss
index fb57c55..1f410e0 100644
--- a/src/Styles/Pages/index.scss
+++ b/src/Styles/Pages/index.scss
@@ -10,4 +10,4 @@
@import "./Marks.scss";
@import "./exercise.scss";
@import './reSeller.scss';
-@import './StudentInfoCard.scss';
+@import './InfoCard.scss';
\ No newline at end of file
diff --git a/src/Styles/Tables/Table.scss b/src/Styles/Tables/Table.scss
index 026cd85..3b59b1a 100644
--- a/src/Styles/Tables/Table.scss
+++ b/src/Styles/Tables/Table.scss
@@ -55,10 +55,10 @@
margin-left: 29px;
}
-/* Ant tabs nav list */
-.ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list {
- width: 100%;
-}
+// /* Ant tabs nav list */
+// .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list {
+// width: 100%;
+// }
.ant-tabs > .ant-tabs-nav,
.ant-tabs > div > .ant-tabs-nav {
diff --git a/src/enums/Model.ts b/src/enums/Model.ts
index de37336..75f16b5 100644
--- a/src/enums/Model.ts
+++ b/src/enums/Model.ts
@@ -176,6 +176,11 @@ export enum ModalEnum {
RE_SELLER_ADD = "ReSeller.add",
RE_SELLER_DELETE = "ReSeller.delete",
+ /// ReSeller
+ RE_SELLER_COLLECTION_EDIT = "ReSeller.edit",
+ RE_SELLER_COLLECTION_ADD = "ReSeller.add",
+ RE_SELLER_COLLECTION_DELETE = "ReSeller.delete",
+
/// Param
Param_EDIT = "Param.edit",
Param_ADD = "Param.add",
diff --git a/src/enums/params.ts b/src/enums/params.ts
index 0214cda..c16b172 100644
--- a/src/enums/params.ts
+++ b/src/enums/params.ts
@@ -11,4 +11,5 @@ export enum ParamsEnum {
LESSON_ID = "lesson_id",
QUESTION_ID = "question_id",
CHILDREN_QUESTION_ID = "children_question_id",
+ RE_SELLER_ID = "re_seller_id",
}
diff --git a/src/translate/ar.json b/src/translate/ar.json
index 6eeccf4..ff51939 100644
--- a/src/translate/ar.json
+++ b/src/translate/ar.json
@@ -193,7 +193,16 @@
"normal_question": " تمرين عادي",
"hint":"شرح ",
"tags":"كلمات مفتاحية",
- "course":" الصفوف"
+ "course":" الصفوف",
+ "student_full_name":"اسم الطالب الثلاثي",
+ "amount_paid":"المبلغ المدفوع",
+ "sale_date":"تاريخ البيع",
+ "grade":"الصف",
+ "package":"حزمة",
+ "ID":"ID",
+ "residual":"المتبقي",
+ "date_of_receipt":"تاريخ الاستلام",
+ "amount":"مبلغ"
},
"practical": {
"to_confirm_deletion_please_re_enter": "لتأكيد الحذف، يرجى إعادة الإدخال",
@@ -243,7 +252,12 @@
"Abbreviations": "الاختصارات",
"address":"العنوان",
"quiz":"الاختبارات",
- "hightes_quiz":"اعلى اختبار"
+ "hightes_quiz":"اعلى اختبار",
+ "sales":"المبيعات",
+ "collections":"التحصيلات",
+ "collecting_an_amount":"تحصيل مبلغ",
+ "governorate":"المحافظة",
+ "id_photo":"صورة الهوية"
},
"Table": {
"header": "",
@@ -314,8 +328,9 @@
"user_details": "تفاصيل المستخدم",
"reseller_details": "تفاصيل اعادة البيع",
"reseller": "البائعين",
- "student_package": "حزمة الطالب"
- },
+ "student_package": "حزمة الطالب",
+ "collection":"تحصيل"
+ },
"education_class_actions": {
"Student_Records": "سجلات الطلاب",
"Attendance": "الحضور",
@@ -433,7 +448,9 @@
"grade":"الصفوف",
"subject":"المادة",
"unit":"الوحدة",
- "lesson":"الدرس"
+ "lesson":"الدرس",
+ "date_of_receipt":"تاريخ الاستلام",
+ "amount_value":"قيمة المبلغ"
},
"select": {
"enums": {
@@ -800,7 +817,8 @@
"report": "تقرير",
"tags": "كلمات مفتاحية",
"reseller":"البائعين",
- "QuestionBank":"بنك الأسئلة"
+ "QuestionBank":"بنك الأسئلة",
+ "reseller_details":"تفاصيل البائع"
},
"page_header": {
"home": "لوحة القيادة",
@@ -838,7 +856,8 @@
"add_reseller": " البائعين / إضافة بائع ",
"param": "معامل",
"student_package": "حزمة الطالب",
- "QuestionBank":"بنك الأسئلة"
+ "QuestionBank":"بنك الأسئلة",
+ "reseller_details":"تفاصيل البائع"
},
"table": {
"student": "قائمة الطلاب",