ChatActiveChatUserProfileSidebarContent.vue
4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<script setup>
import { PerfectScrollbar } from 'vue3-perfect-scrollbar'
import { useChat } from './useChat'
import { useChatStore } from '@/views/apps/chat/useChatStore'
const emit = defineEmits(['close'])
const store = useChatStore()
const { resolveAvatarBadgeVariant } = useChat()
</script>
<template>
<template v-if="store.activeChat">
<!-- Close Button -->
<div
class="pt-2 me-2"
:class="$vuetify.locale.isRtl ? 'text-left' : 'text-right'"
>
<IconBtn @click="$emit('close')">
<VIcon
icon="ri-close-line"
class="text-medium-emphasis"
/>
</IconBtn>
</div>
<!-- User Avatar + Name + Role -->
<div class="text-center px-6">
<VBadge
location="bottom right"
offset-x="7"
offset-y="4"
bordered
:color="resolveAvatarBadgeVariant(store.activeChat.contact.status)"
class="chat-user-profile-badge mb-4"
>
<VAvatar
size="84"
:variant="!store.activeChat.contact.avatar ? 'tonal' : undefined"
:color="!store.activeChat.contact.avatar ? resolveAvatarBadgeVariant(store.activeChat.contact.status) : undefined"
>
<VImg
v-if="store.activeChat.contact.avatar"
:src="store.activeChat.contact.avatar"
/>
<span
v-else
class="text-3xl"
>{{ avatarText(store.activeChat.contact.fullName) }}</span>
</VAvatar>
</VBadge>
<h5 class="text-h5">
{{ store.activeChat.contact.fullName }}
</h5>
<p class="text-body-1 mb-0">
{{ store.activeChat.contact.role }}
</p>
</div>
<VDivider />
<!-- User Data -->
<PerfectScrollbar
class="ps-chat-user-profile-sidebar-content text-medium-emphasis pb-5 px-5"
:options="{ wheelPropagation: false }"
>
<!-- About -->
<div class="my-6">
<p
for="textarea-user-about"
class="text-base text-disabled mb-1"
>
ABOUT
</p>
<p class="mb-0">
{{ store.activeChat.contact.about }}
</p>
</div>
<!-- Personal Information -->
<div class="mb-6">
<p class="text-base text-disabled mb-1">
PERSONAL INFORMATION
</p>
<div class="d-flex align-center pa-2">
<VIcon
class="me-2"
size="22"
color="high-emphasis"
icon="ri-mail-line"
/>
<h6 class="text-h6 font-weight-regular">
lucifer@email.com
</h6>
</div>
<div class="d-flex align-center pa-2">
<VIcon
class="me-2"
size="22"
color="high-emphasis"
icon="ri-phone-line"
/>
<h6 class="text-h6 font-weight-regular">
+1(123) 456 - 7890
</h6>
</div>
<div class="d-flex align-center pa-2">
<VIcon
class="me-2"
size="22"
icon="ri-time-line"
color="high-emphasis"
/>
<h6 class="text-h6 font-weight-regular">
Mon - Fri 10AM - 8PM
</h6>
</div>
</div>
<!-- Options -->
<div>
<p class="text-base text-disabled mb-1">
OPTIONS
</p>
<div class="d-flex align-center pa-2">
<VIcon
class="me-2"
size="22"
color="high-emphasis"
icon="ri-bookmark-line"
/>
<h6 class="text-h6 font-weight-regular">
Add Tag
</h6>
</div>
<div class="d-flex align-center pa-2">
<VIcon
class="me-2"
size="22"
color="high-emphasis"
icon="ri-star-line"
/>
<h6 class="text-h6 font-weight-regular">
Important Contact
</h6>
</div>
<div class="d-flex align-center pa-2">
<VIcon
class="me-2"
size="22"
color="high-emphasis"
icon="ri-file-image-line"
/>
<h6 class="text-h6 font-weight-regular">
Shared Media
</h6>
</div>
<div class="d-flex align-center pa-2">
<VIcon
icon="ri-delete-bin-line"
size="22"
color="high-emphasis"
class="me-2"
/>
<h6 class="text-h6 font-weight-regular">
Delete Contact
</h6>
</div>
<div class="d-flex align-center pa-2">
<VIcon
size="22"
color="high-emphasis"
icon="ri-forbid-line"
class="me-2"
/>
<h6 class="text-h6 font-weight-regular">
Block Contact
</h6>
</div>
</div>
<VBtn
block
color="error"
append-icon="ri-delete-bin-7-line"
class="mt-12"
>
Delete Contact
</VBtn>
</PerfectScrollbar>
</template>
</template>