diff --git a/frontend/src/pages/Lead.vue b/frontend/src/pages/Lead.vue
index 1e97cf27..a6d79f93 100644
--- a/frontend/src/pages/Lead.vue
+++ b/frontend/src/pages/Lead.vue
@@ -79,7 +79,33 @@
{{ tab.label }}
-
{{ lead.doc.lead_name }}
+
+
+
+ {{ section.label }}
+
+
+
+
+
{{ field.label }}
+
{{ field.value }}
+
+
+
+
@@ -90,7 +116,7 @@ import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
import TaskIcon from '@/components/Icons/TaskIcon.vue'
import NoteIcon from '@/components/Icons/NoteIcon.vue'
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
-import LayoutHeader from '../components/LayoutHeader.vue'
+import LayoutHeader from '@/components/LayoutHeader.vue'
import { TabGroup, TabList, Tab, TabPanels, TabPanel } from '@headlessui/vue'
import {
createDocumentResource,
@@ -99,6 +125,7 @@ import {
Dropdown,
} from 'frappe-ui'
import { usersStore } from '../stores/users'
+import { computed } from 'vue'
const { getUser } = usersStore()
@@ -182,4 +209,49 @@ const indicatorColor = {
Negotiation: 'text-red-600',
Converted: 'text-green-600',
}
+
+const detailSections = computed(() => {
+ return [
+ {
+ label: 'About this lead',
+ opened: true,
+ fields: [
+ {
+ label: 'Status',
+ value: lead.doc.status,
+ },
+ {
+ label: 'Lead Owner',
+ value: getUser(lead.doc.lead_owner).full_name,
+ },
+ {
+ label: 'Organization',
+ value: lead.doc.organization_name,
+ },
+ {
+ label: 'Website',
+ value: lead.doc.organization_website,
+ },
+ ],
+ },
+ {
+ label: 'Person',
+ opened: true,
+ fields: [
+ {
+ label: 'Name',
+ value: lead.doc.lead_name,
+ },
+ {
+ label: 'Email',
+ value: lead.doc.email,
+ },
+ {
+ label: 'Mobile No.',
+ value: lead.doc.mobile_no,
+ },
+ ],
+ },
+ ]
+})