| 25988 |
tejbeer |
1 |
<div class="row">
|
|
|
2 |
<div class="col-lg-12">
|
| 25991 |
tejbeer |
3 |
<table class="table table-border table-condensed table-bordered" id="lead-table-paginated">
|
| 25988 |
tejbeer |
4 |
<thead>
|
|
|
5 |
<tr>
|
|
|
6 |
<th>Source</th>
|
|
|
7 |
<th>First Name </th>
|
|
|
8 |
<th>Last Name</th>
|
| 37029 |
aman |
9 |
<th>Outlet Name</th>
|
| 25988 |
tejbeer |
10 |
<th>Mobile</th>
|
|
|
11 |
<th>Address</th>
|
|
|
12 |
<th>City</th>
|
|
|
13 |
<th>State</th>
|
|
|
14 |
<th>Created By</th>
|
|
|
15 |
<th>Status</th>
|
|
|
16 |
<th>Created On</th>
|
|
|
17 |
<th>Updated On </th>
|
|
|
18 |
<th>Assign To </th>
|
| 37047 |
ranu |
19 |
<th>Geo Status</th>
|
| 25988 |
tejbeer |
20 |
<th>view</th>
|
| 37045 |
ranu |
21 |
<th>Action</th>
|
| 25988 |
tejbeer |
22 |
</tr>
|
|
|
23 |
</thead>
|
|
|
24 |
<tbody>
|
|
|
25 |
#if(!$leads.isEmpty())
|
| 33966 |
aman.kumar |
26 |
#foreach( $leadsModel in $leads )
|
|
|
27 |
<tr class="close-lead" data="$leadsModel.getId()">
|
|
|
28 |
#if($leadsModel.getSource())
|
|
|
29 |
<td>$leadsModel.getSource()</td>
|
| 25988 |
tejbeer |
30 |
#else
|
|
|
31 |
<td></td>
|
|
|
32 |
#end
|
| 33966 |
aman.kumar |
33 |
<td>$leadsModel.getFirstName()</td>
|
|
|
34 |
<td>$leadsModel.getLastName()</td>
|
| 37029 |
aman |
35 |
<td>$leadsModel.getOutLetName()</td>
|
| 33966 |
aman.kumar |
36 |
<td>$leadsModel.getLeadMobile()</td>
|
|
|
37 |
<td>$leadsModel.getAddress()</td>
|
|
|
38 |
<td>$leadsModel.getCity()</td>
|
|
|
39 |
<td>$leadsModel.getState()</td>
|
|
|
40 |
<td>$leadsModel.getCreatedBy()</td>
|
|
|
41 |
<td>$leadsModel.getStatus()</td>
|
|
|
42 |
<td>$leadsModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
|
|
|
43 |
<td>$leadsModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
|
|
|
44 |
#if($authIdAndAuthUserMap.get($leadsModel.getAssignTo()))
|
|
|
45 |
<td>$authIdAndAuthUserMap.get($leadsModel.getAssignTo()).getFirstName()</td>
|
| 25988 |
tejbeer |
46 |
#else
|
|
|
47 |
<td></td>
|
|
|
48 |
#end
|
| 33966 |
aman.kumar |
49 |
<td>
|
| 37047 |
ranu |
50 |
#set($geoLoc = $geoLocationMap.get($leadsModel.getId()))
|
|
|
51 |
#if($geoLoc && $geoLoc.getStatus().toString() == "APPROVED")
|
|
|
52 |
<div class="btn-group-vertical" style="width:100%">
|
|
|
53 |
<span class="label label-success"
|
|
|
54 |
style="margin-bottom:4px;">Verified</span>
|
|
|
55 |
<a href="https://www.google.com/maps?q=$geoLoc.getLatitude(),$geoLoc.getLongitude()"
|
|
|
56 |
target="_blank"
|
|
|
57 |
class="btn btn-xs btn-default" style="margin-bottom:2px;"
|
|
|
58 |
title="$geoLoc.getLatitude(), $geoLoc.getLongitude()">View Map</a>
|
|
|
59 |
#if($geoLoc.getImageDocumentId() > 0)
|
|
|
60 |
<a href="${rc.contextPath}/open-attachment?documentId=$geoLoc.getImageDocumentId()"
|
|
|
61 |
target="_blank"
|
|
|
62 |
class="btn btn-xs btn-default" style="margin-bottom:2px;">View
|
|
|
63 |
Photo</a>
|
|
|
64 |
#end
|
|
|
65 |
<button class="btn btn-xs btn-danger reject-geo"
|
|
|
66 |
data-leadid="$leadsModel.getId()">Revoke
|
|
|
67 |
</button>
|
|
|
68 |
</div>
|
|
|
69 |
#elseif($geoLoc && $geoLoc.getStatus().toString() == "PENDING")
|
|
|
70 |
<div class="btn-group-vertical" style="width:100%">
|
|
|
71 |
<span class="label label-warning" style="margin-bottom:4px;">Pending Review</span>
|
|
|
72 |
<a href="https://www.google.com/maps?q=$geoLoc.getLatitude(),$geoLoc.getLongitude()"
|
|
|
73 |
target="_blank"
|
|
|
74 |
class="btn btn-xs btn-default" style="margin-bottom:2px;"
|
|
|
75 |
title="$geoLoc.getLatitude(), $geoLoc.getLongitude()">View Map</a>
|
|
|
76 |
#if($geoLoc.getImageDocumentId() > 0)
|
|
|
77 |
<a href="${rc.contextPath}/open-attachment?documentId=$geoLoc.getImageDocumentId()"
|
|
|
78 |
target="_blank"
|
|
|
79 |
class="btn btn-xs btn-default" style="margin-bottom:2px;">View
|
|
|
80 |
Photo</a>
|
|
|
81 |
#end
|
|
|
82 |
<button class="btn btn-xs btn-success approve-geo"
|
|
|
83 |
data-leadid="$leadsModel.getId()">Approve
|
|
|
84 |
</button>
|
|
|
85 |
<button class="btn btn-xs btn-danger reject-geo"
|
|
|
86 |
data-leadid="$leadsModel.getId()">Reject
|
|
|
87 |
</button>
|
|
|
88 |
</div>
|
|
|
89 |
#elseif($geoLoc && $geoLoc.getStatus().toString() == "REJECTED")
|
|
|
90 |
<div class="btn-group-vertical" style="width:100%">
|
|
|
91 |
<button class="btn btn-xs btn-warning generateGeoLink"
|
|
|
92 |
data-leadid="$leadsModel.getId()"
|
|
|
93 |
style="margin-bottom:2px;">Rejected - Resend
|
|
|
94 |
</button>
|
|
|
95 |
<button class="btn btn-xs btn-success verifyGeoManual"
|
|
|
96 |
data-leadid="$leadsModel.getId()">Verify Manually
|
|
|
97 |
</button>
|
|
|
98 |
</div>
|
|
|
99 |
#else
|
|
|
100 |
<div class="btn-group-vertical" style="width:100%">
|
|
|
101 |
<button class="btn btn-xs btn-info generateGeoLink"
|
|
|
102 |
data-leadid="$leadsModel.getId()" style="margin-bottom:2px;">
|
|
|
103 |
Generate Link
|
|
|
104 |
</button>
|
|
|
105 |
<button class="btn btn-xs btn-success verifyGeoManual"
|
|
|
106 |
data-leadid="$leadsModel.getId()">Verify Manually
|
|
|
107 |
</button>
|
|
|
108 |
</div>
|
|
|
109 |
#end
|
|
|
110 |
</td>
|
|
|
111 |
<td>
|
| 33966 |
aman.kumar |
112 |
<button class="btn btn-primary view" data-requestid="$leadsModel.getId()"
|
|
|
113 |
data-toggle="modal" data-target="#fetchLeadActivityData" type="button">
|
|
|
114 |
View
|
|
|
115 |
</button>
|
| 37027 |
aman |
116 |
#if($leadsModel.getRecordingUrl())
|
|
|
117 |
<a class="btn btn-success btn-xs" href="$leadsModel.getRecordingUrl()" target="_blank"
|
|
|
118 |
title="Play AI call recording">
|
|
|
119 |
<i class="fa fa-play"></i> Recording
|
|
|
120 |
</a>
|
|
|
121 |
#end
|
| 33966 |
aman.kumar |
122 |
</td>
|
| 37045 |
ranu |
123 |
<td>
|
|
|
124 |
<button class="btn btn-primary editLead" data-leadid="$leadsModel.getId()"
|
|
|
125 |
data-toggle="modal" data-target="#editLeadData" type="button">
|
|
|
126 |
Edit
|
|
|
127 |
</button>
|
|
|
128 |
</td>
|
|
|
129 |
|
|
|
130 |
</tr>
|
| 25988 |
tejbeer |
131 |
#end
|
|
|
132 |
#else
|
|
|
133 |
<tr>
|
| 37047 |
ranu |
134 |
<td colspan="16" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
| 25988 |
tejbeer |
135 |
</tr>
|
|
|
136 |
#end
|
|
|
137 |
</tbody>
|
|
|
138 |
</table>
|
|
|
139 |
</div>
|
|
|
140 |
</div>
|