@escalated-dev/escalated 0.2.1 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/ActivityTimeline.vue +8 -4
- package/src/components/AssigneeSelect.vue +6 -2
- package/src/components/AttachmentList.vue +9 -3
- package/src/components/EscalatedLayout.vue +219 -213
- package/src/components/FileDropzone.vue +9 -4
- package/src/components/PriorityBadge.vue +20 -2
- package/src/components/ReplyComposer.vue +52 -3
- package/src/components/ReplyThread.vue +14 -6
- package/src/components/SlaTimer.vue +12 -6
- package/src/components/StatsCard.vue +26 -6
- package/src/components/StatusBadge.vue +24 -2
- package/src/components/TagSelect.vue +8 -4
- package/src/components/TicketFilters.vue +17 -11
- package/src/components/TicketList.vue +45 -2
- package/src/components/TicketSidebar.vue +21 -14
- package/src/pages/Admin/CannedResponses/Index.vue +29 -17
- package/src/pages/Admin/Departments/Form.vue +12 -11
- package/src/pages/Admin/Departments/Index.vue +26 -18
- package/src/pages/Admin/EscalationRules/Form.vue +21 -20
- package/src/pages/Admin/EscalationRules/Index.vue +26 -18
- package/src/pages/Admin/Reports.vue +30 -16
- package/src/pages/Admin/Settings.vue +260 -0
- package/src/pages/Admin/SlaPolicies/Form.vue +21 -20
- package/src/pages/Admin/SlaPolicies/Index.vue +28 -20
- package/src/pages/Admin/Tags/Index.vue +48 -23
- package/src/pages/Admin/Tickets/Index.vue +22 -0
- package/src/pages/Admin/Tickets/Show.vue +109 -0
- package/src/pages/Agent/Dashboard.vue +37 -25
- package/src/pages/Agent/TicketShow.vue +12 -12
- package/src/pages/Customer/Show.vue +2 -2
- package/src/pages/Guest/Create.vue +97 -0
- package/src/pages/Guest/Show.vue +86 -0
|
@@ -22,26 +22,27 @@ function submit() {
|
|
|
22
22
|
|
|
23
23
|
<template>
|
|
24
24
|
<EscalatedLayout :title="department ? 'Edit Department' : 'New Department'">
|
|
25
|
-
<form @submit.prevent="submit" class="mx-auto max-w-lg space-y-
|
|
25
|
+
<form @submit.prevent="submit" class="mx-auto max-w-lg space-y-5 rounded-xl border border-white/[0.06] bg-neutral-900/60 p-6">
|
|
26
26
|
<div>
|
|
27
|
-
<label class="block text-sm font-medium text-
|
|
28
|
-
<input v-model="form.name" type="text" required class="mt-1 w-full rounded-lg border-
|
|
29
|
-
<div v-if="form.errors.name" class="mt-1 text-sm text-
|
|
27
|
+
<label class="block text-sm font-medium text-neutral-300">Name</label>
|
|
28
|
+
<input v-model="form.name" type="text" required class="mt-1 w-full rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
29
|
+
<div v-if="form.errors.name" class="mt-1 text-sm text-rose-400">{{ form.errors.name }}</div>
|
|
30
30
|
</div>
|
|
31
31
|
<div>
|
|
32
|
-
<label class="block text-sm font-medium text-
|
|
33
|
-
<input v-model="form.slug" type="text" class="mt-1 w-full rounded-lg border-
|
|
32
|
+
<label class="block text-sm font-medium text-neutral-300">Slug</label>
|
|
33
|
+
<input v-model="form.slug" type="text" placeholder="Auto-generated if empty" class="mt-1 w-full rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 placeholder-gray-500 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
34
34
|
</div>
|
|
35
35
|
<div>
|
|
36
|
-
<label class="block text-sm font-medium text-
|
|
37
|
-
<textarea v-model="form.description" rows="3" class="mt-1 w-full rounded-lg border-
|
|
36
|
+
<label class="block text-sm font-medium text-neutral-300">Description</label>
|
|
37
|
+
<textarea v-model="form.description" rows="3" class="mt-1 w-full rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10"></textarea>
|
|
38
38
|
</div>
|
|
39
39
|
<label class="flex items-center gap-2">
|
|
40
|
-
<input v-model="form.is_active" type="checkbox" class="rounded border-
|
|
41
|
-
<span class="text-sm text-
|
|
40
|
+
<input v-model="form.is_active" type="checkbox" class="rounded border-white/20 bg-neutral-900 text-white focus:ring-white/10" />
|
|
41
|
+
<span class="text-sm text-neutral-300">Active</span>
|
|
42
42
|
</label>
|
|
43
43
|
<div class="flex justify-end">
|
|
44
|
-
<button type="submit" :disabled="form.processing"
|
|
44
|
+
<button type="submit" :disabled="form.processing"
|
|
45
|
+
class="rounded-lg bg-gradient-to-r from-cyan-500 to-violet-500 px-5 py-2 text-sm font-medium text-white shadow-lg shadow-black/20 transition-all hover:from-cyan-400 hover:to-violet-400 disabled:opacity-50">
|
|
45
46
|
{{ department ? 'Update' : 'Create' }}
|
|
46
47
|
</button>
|
|
47
48
|
</div>
|
|
@@ -14,32 +14,40 @@ function destroy(id) {
|
|
|
14
14
|
<template>
|
|
15
15
|
<EscalatedLayout title="Departments">
|
|
16
16
|
<div class="mb-4 flex justify-end">
|
|
17
|
-
<Link :href="route('escalated.admin.departments.create')"
|
|
17
|
+
<Link :href="route('escalated.admin.departments.create')"
|
|
18
|
+
class="rounded-lg bg-gradient-to-r from-cyan-500 to-violet-500 px-4 py-2 text-sm font-medium text-white shadow-lg shadow-black/20 transition-all hover:from-cyan-400 hover:to-violet-400">
|
|
18
19
|
Add Department
|
|
19
20
|
</Link>
|
|
20
21
|
</div>
|
|
21
|
-
<div class="overflow-hidden rounded-
|
|
22
|
-
<table class="min-w-full divide-y divide-
|
|
23
|
-
<thead
|
|
24
|
-
<tr>
|
|
25
|
-
<th class="px-4 py-3 text-left text-
|
|
26
|
-
<th class="px-4 py-3 text-left text-
|
|
27
|
-
<th class="px-4 py-3 text-left text-
|
|
28
|
-
<th class="px-4 py-3 text-left text-
|
|
29
|
-
<th class="px-4 py-3 text-right text-
|
|
22
|
+
<div class="overflow-hidden rounded-xl border border-white/[0.06] bg-neutral-900/60">
|
|
23
|
+
<table class="min-w-full divide-y divide-white/[0.06]">
|
|
24
|
+
<thead>
|
|
25
|
+
<tr class="bg-white/[0.02]">
|
|
26
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Name</th>
|
|
27
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Tickets</th>
|
|
28
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Agents</th>
|
|
29
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Active</th>
|
|
30
|
+
<th class="px-4 py-3 text-right text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Actions</th>
|
|
30
31
|
</tr>
|
|
31
32
|
</thead>
|
|
32
|
-
<tbody class="divide-y divide-
|
|
33
|
-
<tr v-for="dept in departments" :key="dept.id">
|
|
34
|
-
<td class="px-4 py-3 text-sm font-medium text-
|
|
35
|
-
<td class="px-4 py-3 text-sm text-
|
|
36
|
-
<td class="px-4 py-3 text-sm text-
|
|
33
|
+
<tbody class="divide-y divide-white/[0.04]">
|
|
34
|
+
<tr v-for="dept in departments" :key="dept.id" class="transition-colors hover:bg-white/[0.03]">
|
|
35
|
+
<td class="px-4 py-3 text-sm font-medium text-neutral-200">{{ dept.name }}</td>
|
|
36
|
+
<td class="px-4 py-3 text-sm text-neutral-400">{{ dept.tickets_count }}</td>
|
|
37
|
+
<td class="px-4 py-3 text-sm text-neutral-400">{{ dept.agents_count }}</td>
|
|
37
38
|
<td class="px-4 py-3 text-sm">
|
|
38
|
-
<span :class="dept.is_active ? 'text-
|
|
39
|
+
<span :class="dept.is_active ? 'text-emerald-400' : 'text-neutral-500'">{{ dept.is_active ? 'Yes' : 'No' }}</span>
|
|
39
40
|
</td>
|
|
40
41
|
<td class="px-4 py-3 text-right text-sm">
|
|
41
|
-
<Link :href="route('escalated.admin.departments.edit', dept.id)" class="text-
|
|
42
|
-
<button @click="destroy(dept.id)" class="ml-3 text-
|
|
42
|
+
<Link :href="route('escalated.admin.departments.edit', dept.id)" class="text-neutral-300 hover:text-white">Edit</Link>
|
|
43
|
+
<button @click="destroy(dept.id)" class="ml-3 text-rose-400 hover:text-rose-300">Delete</button>
|
|
44
|
+
</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr v-if="!departments?.length">
|
|
47
|
+
<td colspan="5" class="px-4 py-12 text-center">
|
|
48
|
+
<svg class="mx-auto mb-3 h-8 w-8 text-neutral-700" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 01-1.125-1.125v-3.75zM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 01-1.125-1.125v-8.25zM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 01-1.125-1.125v-2.25z" /></svg>
|
|
49
|
+
<p class="text-sm text-neutral-500">No departments yet</p>
|
|
50
|
+
<p class="mt-1 text-xs text-neutral-600">Create your first department to organize tickets</p>
|
|
43
51
|
</td>
|
|
44
52
|
</tr>
|
|
45
53
|
</tbody>
|
|
@@ -30,14 +30,14 @@ function submit() {
|
|
|
30
30
|
|
|
31
31
|
<template>
|
|
32
32
|
<EscalatedLayout :title="rule ? 'Edit Escalation Rule' : 'New Escalation Rule'">
|
|
33
|
-
<form @submit.prevent="submit" class="mx-auto max-w-lg space-y-
|
|
33
|
+
<form @submit.prevent="submit" class="mx-auto max-w-lg space-y-5 rounded-xl border border-white/[0.06] bg-neutral-900/60 p-6">
|
|
34
34
|
<div>
|
|
35
|
-
<label class="block text-sm font-medium text-
|
|
36
|
-
<input v-model="form.name" type="text" required class="mt-1 w-full rounded-lg border-
|
|
35
|
+
<label class="block text-sm font-medium text-neutral-300">Name</label>
|
|
36
|
+
<input v-model="form.name" type="text" required class="mt-1 w-full rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
37
37
|
</div>
|
|
38
38
|
<div>
|
|
39
|
-
<label class="block text-sm font-medium text-
|
|
40
|
-
<select v-model="form.trigger_type" class="mt-1 w-full rounded-lg border-
|
|
39
|
+
<label class="block text-sm font-medium text-neutral-300">Trigger Type</label>
|
|
40
|
+
<select v-model="form.trigger_type" class="mt-1 w-full rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10">
|
|
41
41
|
<option value="time_based">Time Based</option>
|
|
42
42
|
<option value="sla_breach">SLA Breach</option>
|
|
43
43
|
<option value="priority_based">Priority Based</option>
|
|
@@ -45,11 +45,11 @@ function submit() {
|
|
|
45
45
|
</div>
|
|
46
46
|
<div>
|
|
47
47
|
<div class="mb-2 flex items-center justify-between">
|
|
48
|
-
<label class="text-sm font-medium text-
|
|
49
|
-
<button type="button" @click="addCondition" class="text-sm text-
|
|
48
|
+
<label class="text-sm font-medium text-neutral-300">Conditions</label>
|
|
49
|
+
<button type="button" @click="addCondition" class="text-sm text-neutral-300 hover:text-white">+ Add</button>
|
|
50
50
|
</div>
|
|
51
51
|
<div v-for="(cond, idx) in form.conditions" :key="idx" class="mb-2 flex gap-2">
|
|
52
|
-
<select v-model="cond.field" class="w-1/2 rounded border-
|
|
52
|
+
<select v-model="cond.field" class="w-1/2 rounded-lg border border-white/10 bg-neutral-950 px-2 py-1.5 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10">
|
|
53
53
|
<option value="status">Status</option>
|
|
54
54
|
<option value="priority">Priority</option>
|
|
55
55
|
<option value="assigned">Assignment</option>
|
|
@@ -57,36 +57,37 @@ function submit() {
|
|
|
57
57
|
<option value="no_response_hours">No Response (hours)</option>
|
|
58
58
|
<option value="sla_breached">SLA Breached</option>
|
|
59
59
|
</select>
|
|
60
|
-
<input v-model="cond.value" class="w-1/2 rounded border-
|
|
61
|
-
<button type="button" @click="removeCondition(idx)" class="text-
|
|
60
|
+
<input v-model="cond.value" class="w-1/2 rounded-lg border border-white/10 bg-neutral-950 px-2 py-1.5 text-sm text-neutral-200 placeholder-gray-500 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" placeholder="Value" />
|
|
61
|
+
<button type="button" @click="removeCondition(idx)" class="text-rose-400 hover:text-rose-300">×</button>
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
64
|
<div>
|
|
65
65
|
<div class="mb-2 flex items-center justify-between">
|
|
66
|
-
<label class="text-sm font-medium text-
|
|
67
|
-
<button type="button" @click="addAction" class="text-sm text-
|
|
66
|
+
<label class="text-sm font-medium text-neutral-300">Actions</label>
|
|
67
|
+
<button type="button" @click="addAction" class="text-sm text-neutral-300 hover:text-white">+ Add</button>
|
|
68
68
|
</div>
|
|
69
69
|
<div v-for="(action, idx) in form.actions" :key="idx" class="mb-2 flex gap-2">
|
|
70
|
-
<select v-model="action.type" class="w-1/2 rounded border-
|
|
70
|
+
<select v-model="action.type" class="w-1/2 rounded-lg border border-white/10 bg-neutral-950 px-2 py-1.5 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10">
|
|
71
71
|
<option value="escalate">Escalate</option>
|
|
72
72
|
<option value="change_priority">Change Priority</option>
|
|
73
73
|
<option value="assign_to">Assign To</option>
|
|
74
74
|
<option value="change_department">Change Department</option>
|
|
75
75
|
</select>
|
|
76
|
-
<input v-model="action.value" class="w-1/2 rounded border-
|
|
77
|
-
<button type="button" @click="removeAction(idx)" class="text-
|
|
76
|
+
<input v-model="action.value" class="w-1/2 rounded-lg border border-white/10 bg-neutral-950 px-2 py-1.5 text-sm text-neutral-200 placeholder-gray-500 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" placeholder="Value" />
|
|
77
|
+
<button type="button" @click="removeAction(idx)" class="text-rose-400 hover:text-rose-300">×</button>
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
80
80
|
<div>
|
|
81
|
-
<label class="block text-sm font-medium text-
|
|
82
|
-
<input v-model.number="form.order" type="number" min="0" class="mt-1 w-24 rounded-lg border-
|
|
81
|
+
<label class="block text-sm font-medium text-neutral-300">Order</label>
|
|
82
|
+
<input v-model.number="form.order" type="number" min="0" class="mt-1 w-24 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
83
83
|
</div>
|
|
84
84
|
<label class="flex items-center gap-2">
|
|
85
|
-
<input v-model="form.is_active" type="checkbox" class="rounded border-
|
|
86
|
-
<span class="text-sm text-
|
|
85
|
+
<input v-model="form.is_active" type="checkbox" class="rounded border-white/20 bg-neutral-900 text-white focus:ring-white/10" />
|
|
86
|
+
<span class="text-sm text-neutral-300">Active</span>
|
|
87
87
|
</label>
|
|
88
88
|
<div class="flex justify-end">
|
|
89
|
-
<button type="submit" :disabled="form.processing"
|
|
89
|
+
<button type="submit" :disabled="form.processing"
|
|
90
|
+
class="rounded-lg bg-gradient-to-r from-cyan-500 to-violet-500 px-5 py-2 text-sm font-medium text-white shadow-lg shadow-black/20 transition-all hover:from-cyan-400 hover:to-violet-400 disabled:opacity-50">
|
|
90
91
|
{{ rule ? 'Update' : 'Create' }}
|
|
91
92
|
</button>
|
|
92
93
|
</div>
|
|
@@ -14,32 +14,40 @@ function destroy(id) {
|
|
|
14
14
|
<template>
|
|
15
15
|
<EscalatedLayout title="Escalation Rules">
|
|
16
16
|
<div class="mb-4 flex justify-end">
|
|
17
|
-
<Link :href="route('escalated.admin.escalation-rules.create')"
|
|
17
|
+
<Link :href="route('escalated.admin.escalation-rules.create')"
|
|
18
|
+
class="rounded-lg bg-gradient-to-r from-cyan-500 to-violet-500 px-4 py-2 text-sm font-medium text-white shadow-lg shadow-black/20 transition-all hover:from-cyan-400 hover:to-violet-400">
|
|
18
19
|
Add Rule
|
|
19
20
|
</Link>
|
|
20
21
|
</div>
|
|
21
|
-
<div class="overflow-hidden rounded-
|
|
22
|
-
<table class="min-w-full divide-y divide-
|
|
23
|
-
<thead
|
|
24
|
-
<tr>
|
|
25
|
-
<th class="px-4 py-3 text-left text-
|
|
26
|
-
<th class="px-4 py-3 text-left text-
|
|
27
|
-
<th class="px-4 py-3 text-left text-
|
|
28
|
-
<th class="px-4 py-3 text-left text-
|
|
29
|
-
<th class="px-4 py-3 text-right text-
|
|
22
|
+
<div class="overflow-hidden rounded-xl border border-white/[0.06] bg-neutral-900/60">
|
|
23
|
+
<table class="min-w-full divide-y divide-white/[0.06]">
|
|
24
|
+
<thead>
|
|
25
|
+
<tr class="bg-white/[0.02]">
|
|
26
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Order</th>
|
|
27
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Name</th>
|
|
28
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Trigger</th>
|
|
29
|
+
<th class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Active</th>
|
|
30
|
+
<th class="px-4 py-3 text-right text-[11px] font-semibold uppercase tracking-wider text-neutral-500">Actions</th>
|
|
30
31
|
</tr>
|
|
31
32
|
</thead>
|
|
32
|
-
<tbody class="divide-y divide-
|
|
33
|
-
<tr v-
|
|
34
|
-
<td class="px-4 py-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
<tbody class="divide-y divide-white/[0.04]">
|
|
34
|
+
<tr v-if="!rules?.length">
|
|
35
|
+
<td colspan="5" class="px-4 py-12 text-center">
|
|
36
|
+
<svg class="mx-auto mb-3 h-8 w-8 text-neutral-700" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12" /></svg>
|
|
37
|
+
<p class="text-sm text-neutral-500">No escalation rules yet</p>
|
|
38
|
+
<p class="mt-1 text-xs text-neutral-600">Set up automatic escalation for overdue tickets</p>
|
|
39
|
+
</td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr v-for="rule in rules" :key="rule.id" class="transition-colors hover:bg-white/[0.03]">
|
|
42
|
+
<td class="px-4 py-3 text-sm text-neutral-400">{{ rule.order }}</td>
|
|
43
|
+
<td class="px-4 py-3 text-sm font-medium text-neutral-200">{{ rule.name }}</td>
|
|
44
|
+
<td class="px-4 py-3 text-sm text-neutral-400">{{ rule.trigger_type }}</td>
|
|
37
45
|
<td class="px-4 py-3 text-sm">
|
|
38
|
-
<span :class="rule.is_active ? 'text-
|
|
46
|
+
<span :class="rule.is_active ? 'text-emerald-400' : 'text-neutral-500'">{{ rule.is_active ? 'Yes' : 'No' }}</span>
|
|
39
47
|
</td>
|
|
40
48
|
<td class="px-4 py-3 text-right text-sm">
|
|
41
|
-
<Link :href="route('escalated.admin.escalation-rules.edit', rule.id)" class="text-
|
|
42
|
-
<button @click="destroy(rule.id)" class="ml-3 text-
|
|
49
|
+
<Link :href="route('escalated.admin.escalation-rules.edit', rule.id)" class="text-neutral-300 hover:text-white">Edit</Link>
|
|
50
|
+
<button @click="destroy(rule.id)" class="ml-3 text-rose-400 hover:text-rose-300">Delete</button>
|
|
43
51
|
</td>
|
|
44
52
|
</tr>
|
|
45
53
|
</tbody>
|
|
@@ -22,31 +22,45 @@ function changePeriod(days) {
|
|
|
22
22
|
<EscalatedLayout title="Reports">
|
|
23
23
|
<div class="mb-6 flex gap-2">
|
|
24
24
|
<button v-for="d in [7, 30, 90]" :key="d" @click="changePeriod(d)"
|
|
25
|
-
:class="['rounded-lg px-3 py-1.5 text-sm', period_days === d
|
|
25
|
+
:class="['rounded-lg px-3.5 py-1.5 text-sm font-medium transition-all', period_days === d
|
|
26
|
+
? 'bg-gradient-to-r from-cyan-500 to-violet-500 text-white shadow-lg shadow-black/20'
|
|
27
|
+
: 'border border-white/10 bg-white/[0.03] text-neutral-400 hover:bg-white/[0.06] hover:text-neutral-200']">
|
|
26
28
|
Last {{ d }} days
|
|
27
29
|
</button>
|
|
28
30
|
</div>
|
|
29
31
|
<div class="mb-8 grid grid-cols-2 gap-4 md:grid-cols-4">
|
|
30
|
-
<StatsCard
|
|
31
|
-
<StatsCard
|
|
32
|
-
<StatsCard
|
|
33
|
-
<StatsCard
|
|
32
|
+
<StatsCard label="Total Tickets" :value="total_tickets" color="indigo" />
|
|
33
|
+
<StatsCard label="Resolved" :value="resolved_tickets" color="green" />
|
|
34
|
+
<StatsCard label="Avg First Response" :value="`${avg_first_response_hours}h`" color="yellow" />
|
|
35
|
+
<StatsCard label="SLA Breaches" :value="sla_breach_count" color="red" />
|
|
34
36
|
</div>
|
|
35
37
|
<div class="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
36
|
-
<div class="rounded-
|
|
37
|
-
<h3 class="mb-
|
|
38
|
-
<
|
|
39
|
-
<
|
|
40
|
-
|
|
38
|
+
<div class="rounded-xl border border-white/[0.06] bg-neutral-900/60 p-5">
|
|
39
|
+
<h3 class="mb-4 text-sm font-semibold text-neutral-200">By Status</h3>
|
|
40
|
+
<template v-if="by_status && Object.keys(by_status).length">
|
|
41
|
+
<div v-for="(count, status) in by_status" :key="status" class="mb-2.5 flex items-center justify-between">
|
|
42
|
+
<span class="text-sm capitalize text-neutral-400">{{ status.replace('_', ' ') }}</span>
|
|
43
|
+
<span class="text-sm font-semibold text-white">{{ count }}</span>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
<div v-else class="flex flex-col items-center py-6 text-center">
|
|
47
|
+
<svg class="mb-2 h-8 w-8 text-neutral-700" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z" /></svg>
|
|
48
|
+
<p class="text-sm text-neutral-500">No ticket data for this period</p>
|
|
41
49
|
</div>
|
|
42
50
|
</div>
|
|
43
|
-
<div class="rounded-
|
|
44
|
-
<h3 class="mb-
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
|
|
51
|
+
<div class="rounded-xl border border-white/[0.06] bg-neutral-900/60 p-5">
|
|
52
|
+
<h3 class="mb-4 text-sm font-semibold text-neutral-200">By Priority</h3>
|
|
53
|
+
<template v-if="by_priority && Object.keys(by_priority).length">
|
|
54
|
+
<div v-for="(count, priority) in by_priority" :key="priority" class="mb-2.5 flex items-center justify-between">
|
|
55
|
+
<span class="text-sm capitalize text-neutral-400">{{ priority }}</span>
|
|
56
|
+
<span class="text-sm font-semibold text-white">{{ count }}</span>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
<div v-else class="flex flex-col items-center py-6 text-center">
|
|
60
|
+
<svg class="mb-2 h-8 w-8 text-neutral-700" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12" /></svg>
|
|
61
|
+
<p class="text-sm text-neutral-500">No ticket data for this period</p>
|
|
48
62
|
</div>
|
|
49
63
|
</div>
|
|
50
64
|
</div>
|
|
51
65
|
</EscalatedLayout>
|
|
52
|
-
</template>
|
|
66
|
+
</template>
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import EscalatedLayout from '../../components/EscalatedLayout.vue';
|
|
3
|
+
import { useForm, usePage } from '@inertiajs/vue3';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
|
|
6
|
+
const props = defineProps({ settings: Object });
|
|
7
|
+
const page = usePage();
|
|
8
|
+
|
|
9
|
+
const form = useForm({
|
|
10
|
+
guest_tickets_enabled: props.settings.guest_tickets_enabled,
|
|
11
|
+
allow_customer_close: props.settings.allow_customer_close,
|
|
12
|
+
auto_close_resolved_after_days: props.settings.auto_close_resolved_after_days,
|
|
13
|
+
max_attachments_per_reply: props.settings.max_attachments_per_reply,
|
|
14
|
+
max_attachment_size_kb: props.settings.max_attachment_size_kb,
|
|
15
|
+
ticket_reference_prefix: props.settings.ticket_reference_prefix,
|
|
16
|
+
inbound_email_enabled: props.settings.inbound_email_enabled ?? false,
|
|
17
|
+
inbound_email_adapter: props.settings.inbound_email_adapter ?? 'mailgun',
|
|
18
|
+
inbound_email_address: props.settings.inbound_email_address ?? '',
|
|
19
|
+
mailgun_signing_key: props.settings.mailgun_signing_key ?? '',
|
|
20
|
+
postmark_inbound_token: props.settings.postmark_inbound_token ?? '',
|
|
21
|
+
ses_region: props.settings.ses_region ?? '',
|
|
22
|
+
ses_topic_arn: props.settings.ses_topic_arn ?? '',
|
|
23
|
+
imap_host: props.settings.imap_host ?? '',
|
|
24
|
+
imap_port: props.settings.imap_port ?? 993,
|
|
25
|
+
imap_encryption: props.settings.imap_encryption ?? 'ssl',
|
|
26
|
+
imap_username: props.settings.imap_username ?? '',
|
|
27
|
+
imap_password: props.settings.imap_password ?? '',
|
|
28
|
+
imap_mailbox: props.settings.imap_mailbox ?? 'INBOX',
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const webhookBaseUrl = computed(() => {
|
|
32
|
+
const prefix = page.props.escalated?.prefix || 'support';
|
|
33
|
+
const origin = typeof window !== 'undefined' ? window.location.origin : '';
|
|
34
|
+
return `${origin}/${prefix}/inbound`;
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
function submit() {
|
|
38
|
+
form.post(route('escalated.admin.settings.update'));
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<EscalatedLayout title="Settings">
|
|
44
|
+
<form @submit.prevent="submit" class="mx-auto max-w-2xl space-y-6">
|
|
45
|
+
<!-- General -->
|
|
46
|
+
<div class="rounded-xl border border-white/[0.06] bg-neutral-900/60 p-6">
|
|
47
|
+
<h3 class="mb-5 text-sm font-semibold text-white">General</h3>
|
|
48
|
+
<div class="space-y-5">
|
|
49
|
+
<label class="flex items-center justify-between">
|
|
50
|
+
<div>
|
|
51
|
+
<span class="text-sm font-medium text-neutral-200">Guest Tickets</span>
|
|
52
|
+
<p class="mt-0.5 text-xs text-neutral-500">Allow visitors to submit tickets without signing in</p>
|
|
53
|
+
</div>
|
|
54
|
+
<button type="button" @click="form.guest_tickets_enabled = !form.guest_tickets_enabled"
|
|
55
|
+
:class="['relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors',
|
|
56
|
+
form.guest_tickets_enabled ? 'bg-emerald-500' : 'bg-neutral-700']">
|
|
57
|
+
<span :class="['pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform',
|
|
58
|
+
form.guest_tickets_enabled ? 'translate-x-5' : 'translate-x-0']" />
|
|
59
|
+
</button>
|
|
60
|
+
</label>
|
|
61
|
+
|
|
62
|
+
<label class="flex items-center justify-between">
|
|
63
|
+
<div>
|
|
64
|
+
<span class="text-sm font-medium text-neutral-200">Allow Customer Close</span>
|
|
65
|
+
<p class="mt-0.5 text-xs text-neutral-500">Let customers close their own tickets</p>
|
|
66
|
+
</div>
|
|
67
|
+
<button type="button" @click="form.allow_customer_close = !form.allow_customer_close"
|
|
68
|
+
:class="['relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors',
|
|
69
|
+
form.allow_customer_close ? 'bg-emerald-500' : 'bg-neutral-700']">
|
|
70
|
+
<span :class="['pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform',
|
|
71
|
+
form.allow_customer_close ? 'translate-x-5' : 'translate-x-0']" />
|
|
72
|
+
</button>
|
|
73
|
+
</label>
|
|
74
|
+
|
|
75
|
+
<div>
|
|
76
|
+
<label class="block text-sm font-medium text-neutral-200">Auto-close resolved tickets after</label>
|
|
77
|
+
<p class="mt-0.5 text-xs text-neutral-500">Days after resolution before auto-closing (0 to disable)</p>
|
|
78
|
+
<div class="mt-2 flex items-center gap-2">
|
|
79
|
+
<input v-model.number="form.auto_close_resolved_after_days" type="number" min="0" max="365"
|
|
80
|
+
class="w-24 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
81
|
+
<span class="text-sm text-neutral-500">days</span>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<!-- Limits -->
|
|
88
|
+
<div class="rounded-xl border border-white/[0.06] bg-neutral-900/60 p-6">
|
|
89
|
+
<h3 class="mb-5 text-sm font-semibold text-white">Limits</h3>
|
|
90
|
+
<div class="space-y-5">
|
|
91
|
+
<div>
|
|
92
|
+
<label class="block text-sm font-medium text-neutral-200">Max attachments per reply</label>
|
|
93
|
+
<input v-model.number="form.max_attachments_per_reply" type="number" min="1" max="20"
|
|
94
|
+
class="mt-2 w-24 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
95
|
+
</div>
|
|
96
|
+
<div>
|
|
97
|
+
<label class="block text-sm font-medium text-neutral-200">Max attachment size</label>
|
|
98
|
+
<div class="mt-2 flex items-center gap-2">
|
|
99
|
+
<input v-model.number="form.max_attachment_size_kb" type="number" min="512" max="102400" step="512"
|
|
100
|
+
class="w-32 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
101
|
+
<span class="text-sm text-neutral-500">KB ({{ Math.round(form.max_attachment_size_kb / 1024) }} MB)</span>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<!-- Tickets -->
|
|
108
|
+
<div class="rounded-xl border border-white/[0.06] bg-neutral-900/60 p-6">
|
|
109
|
+
<h3 class="mb-5 text-sm font-semibold text-white">Tickets</h3>
|
|
110
|
+
<div class="space-y-5">
|
|
111
|
+
<div>
|
|
112
|
+
<label class="block text-sm font-medium text-neutral-200">Reference Prefix</label>
|
|
113
|
+
<p class="mt-0.5 text-xs text-neutral-500">Prefix for ticket references (e.g. ESC produces ESC-00001)</p>
|
|
114
|
+
<input v-model="form.ticket_reference_prefix" type="text" maxlength="10"
|
|
115
|
+
class="mt-2 w-32 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 uppercase focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<!-- Inbound Email -->
|
|
121
|
+
<div class="rounded-xl border border-white/[0.06] bg-neutral-900/60 p-6">
|
|
122
|
+
<h3 class="mb-5 text-sm font-semibold text-white">Inbound Email</h3>
|
|
123
|
+
<div class="space-y-5">
|
|
124
|
+
<label class="flex items-center justify-between">
|
|
125
|
+
<div>
|
|
126
|
+
<span class="text-sm font-medium text-neutral-200">Inbound Email</span>
|
|
127
|
+
<p class="mt-0.5 text-xs text-neutral-500">Allow creating and replying to tickets via email</p>
|
|
128
|
+
</div>
|
|
129
|
+
<button type="button" @click="form.inbound_email_enabled = !form.inbound_email_enabled"
|
|
130
|
+
:class="['relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors',
|
|
131
|
+
form.inbound_email_enabled ? 'bg-emerald-500' : 'bg-neutral-700']">
|
|
132
|
+
<span :class="['pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform',
|
|
133
|
+
form.inbound_email_enabled ? 'translate-x-5' : 'translate-x-0']" />
|
|
134
|
+
</button>
|
|
135
|
+
</label>
|
|
136
|
+
|
|
137
|
+
<template v-if="form.inbound_email_enabled">
|
|
138
|
+
<div>
|
|
139
|
+
<label class="block text-sm font-medium text-neutral-200">Email Provider</label>
|
|
140
|
+
<p class="mt-0.5 text-xs text-neutral-500">How inbound emails are received</p>
|
|
141
|
+
<select v-model="form.inbound_email_adapter"
|
|
142
|
+
class="mt-2 w-48 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10">
|
|
143
|
+
<option value="mailgun">Mailgun</option>
|
|
144
|
+
<option value="postmark">Postmark</option>
|
|
145
|
+
<option value="ses">AWS SES</option>
|
|
146
|
+
<option value="imap">IMAP</option>
|
|
147
|
+
</select>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
<div>
|
|
151
|
+
<label class="block text-sm font-medium text-neutral-200">Support Email Address</label>
|
|
152
|
+
<p class="mt-0.5 text-xs text-neutral-500">The email address customers will send emails to (e.g. support@example.com)</p>
|
|
153
|
+
<input v-model="form.inbound_email_address" type="email" placeholder="support@example.com"
|
|
154
|
+
class="mt-2 w-full max-w-sm rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<!-- Mailgun -->
|
|
158
|
+
<template v-if="form.inbound_email_adapter === 'mailgun'">
|
|
159
|
+
<div>
|
|
160
|
+
<label class="block text-sm font-medium text-neutral-200">Signing Key</label>
|
|
161
|
+
<input v-model="form.mailgun_signing_key" type="password"
|
|
162
|
+
class="mt-2 w-full max-w-sm rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
163
|
+
</div>
|
|
164
|
+
<div>
|
|
165
|
+
<label class="block text-sm font-medium text-neutral-200">Webhook URL</label>
|
|
166
|
+
<p class="mt-0.5 text-xs text-neutral-500">Configure this URL in your Mailgun dashboard</p>
|
|
167
|
+
<input :value="`${webhookBaseUrl}/mailgun`" type="text" readonly
|
|
168
|
+
class="mt-2 w-full max-w-lg rounded-lg border border-white/10 bg-neutral-950/50 px-3 py-2 text-sm text-neutral-400 select-all cursor-default focus:outline-none" />
|
|
169
|
+
</div>
|
|
170
|
+
</template>
|
|
171
|
+
|
|
172
|
+
<!-- Postmark -->
|
|
173
|
+
<template v-if="form.inbound_email_adapter === 'postmark'">
|
|
174
|
+
<div>
|
|
175
|
+
<label class="block text-sm font-medium text-neutral-200">Inbound Token</label>
|
|
176
|
+
<input v-model="form.postmark_inbound_token" type="password"
|
|
177
|
+
class="mt-2 w-full max-w-sm rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
178
|
+
</div>
|
|
179
|
+
<div>
|
|
180
|
+
<label class="block text-sm font-medium text-neutral-200">Webhook URL</label>
|
|
181
|
+
<p class="mt-0.5 text-xs text-neutral-500">Configure this URL in your Postmark server settings</p>
|
|
182
|
+
<input :value="`${webhookBaseUrl}/postmark`" type="text" readonly
|
|
183
|
+
class="mt-2 w-full max-w-lg rounded-lg border border-white/10 bg-neutral-950/50 px-3 py-2 text-sm text-neutral-400 select-all cursor-default focus:outline-none" />
|
|
184
|
+
</div>
|
|
185
|
+
</template>
|
|
186
|
+
|
|
187
|
+
<!-- AWS SES -->
|
|
188
|
+
<template v-if="form.inbound_email_adapter === 'ses'">
|
|
189
|
+
<div>
|
|
190
|
+
<label class="block text-sm font-medium text-neutral-200">Region</label>
|
|
191
|
+
<input v-model="form.ses_region" type="text" placeholder="us-east-1"
|
|
192
|
+
class="mt-2 w-48 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
193
|
+
</div>
|
|
194
|
+
<div>
|
|
195
|
+
<label class="block text-sm font-medium text-neutral-200">Topic ARN</label>
|
|
196
|
+
<input v-model="form.ses_topic_arn" type="text" placeholder="arn:aws:sns:us-east-1:123456789:ses-inbound"
|
|
197
|
+
class="mt-2 w-full max-w-lg rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
198
|
+
</div>
|
|
199
|
+
<div>
|
|
200
|
+
<label class="block text-sm font-medium text-neutral-200">Webhook URL</label>
|
|
201
|
+
<p class="mt-0.5 text-xs text-neutral-500">Configure this URL as your SNS subscription endpoint</p>
|
|
202
|
+
<input :value="`${webhookBaseUrl}/ses`" type="text" readonly
|
|
203
|
+
class="mt-2 w-full max-w-lg rounded-lg border border-white/10 bg-neutral-950/50 px-3 py-2 text-sm text-neutral-400 select-all cursor-default focus:outline-none" />
|
|
204
|
+
</div>
|
|
205
|
+
</template>
|
|
206
|
+
|
|
207
|
+
<!-- IMAP -->
|
|
208
|
+
<template v-if="form.inbound_email_adapter === 'imap'">
|
|
209
|
+
<div>
|
|
210
|
+
<label class="block text-sm font-medium text-neutral-200">Host</label>
|
|
211
|
+
<input v-model="form.imap_host" type="text" placeholder="imap.example.com"
|
|
212
|
+
class="mt-2 w-full max-w-sm rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
213
|
+
</div>
|
|
214
|
+
<div class="flex items-end gap-4">
|
|
215
|
+
<div>
|
|
216
|
+
<label class="block text-sm font-medium text-neutral-200">Port</label>
|
|
217
|
+
<input v-model.number="form.imap_port" type="number" min="1" max="65535"
|
|
218
|
+
class="mt-2 w-24 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
219
|
+
</div>
|
|
220
|
+
<div>
|
|
221
|
+
<label class="block text-sm font-medium text-neutral-200">Encryption</label>
|
|
222
|
+
<select v-model="form.imap_encryption"
|
|
223
|
+
class="mt-2 w-28 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10">
|
|
224
|
+
<option value="ssl">SSL</option>
|
|
225
|
+
<option value="tls">TLS</option>
|
|
226
|
+
<option value="none">None</option>
|
|
227
|
+
</select>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
<div>
|
|
231
|
+
<label class="block text-sm font-medium text-neutral-200">Username</label>
|
|
232
|
+
<input v-model="form.imap_username" type="text"
|
|
233
|
+
class="mt-2 w-full max-w-sm rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
234
|
+
</div>
|
|
235
|
+
<div>
|
|
236
|
+
<label class="block text-sm font-medium text-neutral-200">Password</label>
|
|
237
|
+
<input v-model="form.imap_password" type="password"
|
|
238
|
+
class="mt-2 w-full max-w-sm rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
239
|
+
</div>
|
|
240
|
+
<div>
|
|
241
|
+
<label class="block text-sm font-medium text-neutral-200">Mailbox</label>
|
|
242
|
+
<input v-model="form.imap_mailbox" type="text" placeholder="INBOX"
|
|
243
|
+
class="mt-2 w-48 rounded-lg border border-white/10 bg-neutral-950 px-3 py-2 text-sm text-neutral-200 focus:border-white/20 focus:outline-none focus:ring-1 focus:ring-white/10" />
|
|
244
|
+
</div>
|
|
245
|
+
</template>
|
|
246
|
+
</template>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<!-- Submit -->
|
|
251
|
+
<div class="flex items-center justify-end gap-3">
|
|
252
|
+
<span v-if="form.recentlySuccessful" class="text-sm text-emerald-400">Saved.</span>
|
|
253
|
+
<button type="submit" :disabled="form.processing"
|
|
254
|
+
class="rounded-lg bg-gradient-to-r from-cyan-500 to-violet-500 px-5 py-2 text-sm font-medium text-white shadow-lg shadow-black/20 transition-all hover:from-cyan-400 hover:to-violet-400 disabled:opacity-50">
|
|
255
|
+
{{ form.processing ? 'Saving...' : 'Save Settings' }}
|
|
256
|
+
</button>
|
|
257
|
+
</div>
|
|
258
|
+
</form>
|
|
259
|
+
</EscalatedLayout>
|
|
260
|
+
</template>
|