Subversion Repositories SmartDukaan

Rev

Rev 34201 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34201 Rev 34238
Line 1... Line -...
1
 
-
 
2
<section class="wrapper">
1
<section class="wrapper">
3
	<div class="row">
2
    <div class="row">
4
		<div class="col-lg-12">
3
        <div class="col-lg-12">
5
			<h3 class="page-header"><i class="icon_document_alt"></i>Approvals Payment Pending</h3>
4
            <h3 class="page-header"><i class="icon_document_alt"></i>Approvals Payment Pending</h3>
6
			<ol class="breadcrumb">
5
            <ol class="breadcrumb">
7
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
8
				<li><i class="icon_document_alt"></i>Payment Pending</li>						  	
7
                <li><i class="icon_document_alt"></i>Payment Pending</li>
9
			</ol>
-
 
10
		</div>
-
 
11
	</div>
-
 
12
	
-
 
13
#if(!$oldApproved.isEmpty())
-
 
14
 <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$oldMonth Refferals</h4>
-
 
15
  #foreach($oApproved in $oldApproved.keySet())
-
 
16
 <div class="row">
-
 
17
	 
-
 
18
        <div class="col-lg-2 form-group">
-
 
19
				<input placeholder="month" id="oldMonth" name="oldMonth" type="text" value="$oldMonth" class="form-control input-sm" readonly>
-
 
20
		</div>
-
 
21
		
-
 
22
		  <div class="col-lg-2 form-group">
-
 
23
				   	<input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$oApproved" class="form-control input-sm" readonly>
-
 
24
		</div>	
-
 
25
       <div class="col-lg-2 form-group">
-
 
26
				<input placeholder="Count" id="oldMonthCount" name="oldMonthCount" type="text" value="$oldApproved.get($oApproved)" class="form-control input-sm" readonly>
-
 
27
		</div>
-
 
28
	
-
 
29
	   	#set($mul =$oldApproved.get($oApproved) * 5000)
-
 
30
            <div class="col-lg-2 form-group">
-
 
31
				   	<input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="$mul" class="form-control input-sm" >
-
 
32
		    </div>
-
 
33
			
-
 
34
	<div class="col-lg-2 form-group">
-
 
35
			<button class="btn btn-primary" onclick="oldRefferalAmountSubmit(`$oApproved`,$oldApproved.get($oApproved),`$oldMonth`)" type="button">Add Money to Wallet</button>
-
 
36
	</div>
-
 
37
					
-
 
38
</div>	
-
 
39
#end
-
 
40
<div id="refferal-table">
-
 
41
		<div class="row">
-
 
42
	    	<div class="col-lg-12">
-
 
43
	    		<table class="table table-striped table-advance table-hover">
-
 
44
	    			<tbody>
-
 
45
	    				<tr>
-
 
46
	    					<th>Referee Id</th>
-
 
47
	    					<th>Referee Name</th>
-
 
48
	    					<th>Referee Email</th>
-
 
49
	    					<th>Business Name</th>
-
 
50
	    					<th>Referee Mobile</th>
-
 
51
	    					<th>Referal Name</th>
-
 
52
	    					<th>Mobile</th>
-
 
53
	    					<th>city</th>
-
 
54
	    					<th>state</th>
-
 
55
	    					<th>Created On</th>
-
 
56
	    					<th>Updated On</th>
-
 
57
	    					<th>Approved Timestamp</th>
-
 
58
	    					
-
 
59
	    				</tr>
-
 
60
	    					#if(!$oldPreMonthapproved.isEmpty())
-
 
61
								#foreach( $oldPreMonthapprovedModel in $oldPreMonthapproved )
-
 
62
								<tr class="refferal-table" data="$oldPreMonthapprovedModel.getId()">
-
 
63
									<td>$oldPreMonthapprovedModel.getId()</td>
-
 
64
									<td>$oldPreMonthapprovedModel.getRefereeName()</td>
-
 
65
									<td>$oldPreMonthapprovedModel.getRefereeEmail()</td>
-
 
66
									#if($customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName())
-
 
67
										<td>$customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
-
 
68
			    					#else
-
 
69
			    					<td></td>
-
 
70
			    				     #end
-
 
71
									<td>$oldPreMonthapprovedModel.getRefereeMobile()</td>
-
 
72
									<td>$oldPreMonthapprovedModel.getFirstName() $oldPreMonthapprovedModel.getLastName()</td>
-
 
73
									<td>$oldPreMonthapprovedModel.getMobile()</td>
-
 
74
									<td>$oldPreMonthapprovedModel.getCity()</td>
-
 
75
									<td>$oldPreMonthapprovedModel.getState()</td>
-
 
76
									<td>$oldPreMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
-
 
77
									<td>$oldPreMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
-
 
78
									#if($oldPreMonthapprovedModel.getApprovedTimestamp())
-
 
79
										<td>$oldPreMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
-
 
80
			    					#else
-
 
81
			    					<td> </td>
-
 
82
			    					#end
-
 
83
			    		
-
 
84
			    				</tr>	
-
 
85
			    	   #end
-
 
86
		    			#else
-
 
87
		    				<tr>
-
 
88
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
89
		    				</tr>
8
            </ol>
90
		    			#end
-
 
91
	    			</tbody>
-
 
92
	    		</table>
-
 
93
	    	</div>
9
        </div>
94
	    </div>
-
 
95
    </div>
-
 
96
 
-
 
97
#end
-
 
98
 
-
 
99
#if(!$preApproved.isEmpty())
-
 
100
<h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$previousMonth Refferals</h4>
-
 
101
#foreach($pApproved in $preApproved.keySet())
-
 
102
<div class="row">
-
 
103
 
-
 
104
 <div class="col-lg-2 form-group">
-
 
105
				<input placeholder="month" id="previousMonth" name="previousMonth" type="text" value="$previousMonth" class="form-control input-sm" readonly>
-
 
106
		</div>
-
 
107
		
-
 
108
		  <div class="col-lg-2 form-group">
-
 
109
				   	<input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$pApproved" class="form-control input-sm" readonly>
-
 
110
		</div>	
-
 
111
		
-
 
112
       <div class="col-lg-2 form-group">
-
 
113
				<input placeholder="Count" id="count" name="count" type="text" value="$preApproved.get($pApproved)" class="form-control input-sm" readonly>
-
 
114
		</div>
-
 
115
 
-
 
116
	#set($mul =$preApproved.get($pApproved) * 2000)
-
 
117
             <div class="col-lg-2 form-group">
-
 
118
				   	<input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" >
-
 
119
		</div>	
-
 
120
	
-
 
121
  		
-
 
122
	<div class="col-lg-2 form-group">
-
 
123
			<button class="btn btn-primary" type="button" onclick="refferalAmountSubmit(`$pApproved`,$preApproved.get($pApproved),`$previousMonth`)"> Add Money to wallet</button>
-
 
124
	</div>			
-
 
125
	
-
 
126
</div>	
-
 
127
#end	
-
 
128
<div id="refferal-table">
-
 
129
		<div class="row">
-
 
130
	    	<div class="col-lg-12">
-
 
131
	    		<table class="table table-striped table-advance table-hover">
-
 
132
	    			<tbody>
-
 
133
	    				<tr>
-
 
134
	    					<th>Referee Id</th>
-
 
135
	    					<th>Referee Name</th>
-
 
136
	    					<th>Referee Email</th>
-
 
137
	    				    <th>Business Name</th>
-
 
138
	    					<th>Referee Mobile</th>
-
 
139
	    					<th>Referal Name</th>
-
 
140
	    					<th>Mobile</th>
-
 
141
	    					<th>city</th>
-
 
142
	    					<th>state</th>
-
 
143
	    					<th>Created On</th>
-
 
144
	    					<th>Updated On</th>
-
 
145
	    					<th>Approved Timestamp</th>
-
 
146
	    					
-
 
147
	    				</tr>
-
 
148
	    					#if(!$preCurrMonthapproved.isEmpty())
-
 
149
								#foreach( $preCurrMonthapprovedModel in $preCurrMonthapproved )
-
 
150
								<tr class="refferal-table" data="$preCurrMonthapprovedModel.getId()">
-
 
151
									<td>$preCurrMonthapprovedModel.getId()</td>
-
 
152
									<td>$preCurrMonthapprovedModel.getRefereeName()</td>
-
 
153
									<td>$preCurrMonthapprovedModel.getRefereeEmail()</td>
-
 
154
									#if($customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName())
-
 
155
										<td>$customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
-
 
156
			    					#else
-
 
157
			    					<td></td>
-
 
158
			    				     #end
-
 
159
									<td>$preCurrMonthapprovedModel.getRefereeMobile()</td>
-
 
160
									<td>$preCurrMonthapprovedModel.getFirstName() $preCurrMonthapprovedModel.getLastName()</td>
-
 
161
									<td>$preCurrMonthapprovedModel.getMobile()</td>
-
 
162
									<td>$preCurrMonthapprovedModel.getCity()</td>
-
 
163
									<td>$preCurrMonthapprovedModel.getState()</td>
-
 
164
									<td>$preCurrMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
-
 
165
									<td>$preCurrMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
-
 
166
									#if($preCurrMonthapprovedModel.getApprovedTimestamp())
-
 
167
										<td>$preCurrMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
-
 
168
			    					#else
-
 
169
			    					<td> </td>
-
 
170
			    					#end
-
 
171
			    		
-
 
172
			    				</tr>	
-
 
173
			    	   #end
-
 
174
		    			#else
-
 
175
		    				<tr>
-
 
176
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
177
		    				</tr>
-
 
178
		    			#end
-
 
179
	    			</tbody>
-
 
180
	    		</table>
-
 
181
	    	</div>
-
 
182
	    </div>
-
 
183
    </div>
10
    </div>
184
#end		
-
 
185
 
-
 
186
 
-
 
187
#if($pastApproved)
-
 
188
<h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;"> Refferals</h4>
-
 
189
#foreach($pstApproved in $pastApproved.keySet())
-
 
190
<div class="row">
-
 
191
 
-
 
192
		  <div class="col-lg-2 form-group">
-
 
193
				   	<input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$pstApproved" class="form-control input-sm" readonly>
-
 
194
		</div>	
-
 
195
		
-
 
196
       <div class="col-lg-2 form-group">
-
 
197
				<input placeholder="Count" id="count" name="count" type="text" value="$pastApproved.get($pstApproved)" class="form-control input-sm" readonly>
-
 
198
		</div>
-
 
199
 		
-
 
200
 
-
 
201
     	#set($mul =$pastApproved.get($pstApproved) * 5000)
-
 
202
             <div class="col-lg-2 form-group">
-
 
203
				   	<input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
-
 
204
		</div>	
-
 
205
 
-
 
206
  		
-
 
207
	<div class="col-lg-2 form-group">
-
 
208
			<button class="btn btn-primary" type="button" onclick="refferalAmountSubmit(`$pstApproved`,$pastApproved.get($pstApproved),`$previousMonth`)"> Add Money to wallet</button>
-
 
209
	</div>			
-
 
210
	
-
 
211
</div>	
-
 
212
#end	
-
 
213
<div id="refferal-table">
-
 
214
		<div class="row">
-
 
215
	    	<div class="col-lg-12">
-
 
216
	    		<table class="table table-striped table-advance table-hover">
-
 
217
	    			<tbody>
-
 
218
	    				<tr>
-
 
219
	    					<th>Referee Id</th>
-
 
220
	    					<th>Referee Name</th>
-
 
221
	    					<th>Referee Email</th>
-
 
222
	    					<th>Business Name</th>
-
 
223
	    					<th>Referee Mobile</th>
-
 
224
	    					<th>Referal Name</th>
-
 
225
	    					<th>Mobile</th>
-
 
226
	    					<th>city</th>
-
 
227
	    					<th>state</th>
-
 
228
	    					<th>Created On</th>
-
 
229
	    					<th>Updated On</th>
-
 
230
	    					<th>Approved Timestamp</th>
-
 
231
	    					
-
 
232
	    				</tr>
-
 
233
	    					#if(!$pastrefferal.isEmpty())
-
 
234
								#foreach( $pastrefferalModel in $pastrefferal )
-
 
235
								<tr class="refferal-table" data="$pastrefferalModel.getId()">
-
 
236
									<td>$pastrefferalModel.getId()</td>
-
 
237
									<td>$pastrefferalModel.getRefereeName()</td>
-
 
238
									<td>$pastrefferalModel.getRefereeEmail()</td>
-
 
239
									#if($customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName())
-
 
240
										<td>$customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName()</td>
-
 
241
			    					#else
-
 
242
			    					<td></td>
-
 
243
			    				     #end
-
 
244
									<td>$pastrefferalModel.getRefereeMobile()</td>
-
 
245
									<td>$pastrefferalModel.getFirstName() $pastrefferalModel.getLastName()</td>
-
 
246
									<td>$pastrefferalModel.getMobile()</td>
-
 
247
									<td>$pastrefferalModel.getCity()</td>
-
 
248
									<td>$pastrefferalModel.getState()</td>
-
 
249
									<td>$pastrefferalModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
-
 
250
									<td>$pastrefferalModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
-
 
251
									#if($pastrefferalModel.getApprovedTimestamp())
-
 
252
										<td>$pastrefferalModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
-
 
253
			    					#else
-
 
254
			    					<td> </td>
-
 
255
			    					#end
-
 
256
			    		
-
 
257
			    				</tr>	
-
 
258
			    	   #end
-
 
259
		    			#else
-
 
260
		    				<tr>
-
 
261
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
262
		    				</tr>
-
 
263
		    			#end
-
 
264
	    			</tbody>
-
 
265
	    		</table>
-
 
266
	    	</div>
-
 
267
	    </div>
-
 
268
    </div>
-
 
269
 
-
 
270
#end	
-
 
271
 
11
 
-
 
12
    #if(!$oldApproved.isEmpty())
-
 
13
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$oldMonth Refferals</h4>
-
 
14
        #foreach($oApproved in $oldApproved.keySet())
-
 
15
            <div class="row">
-
 
16
 
-
 
17
                <div class="col-lg-2 form-group">
-
 
18
                    <input placeholder="month" id="oldMonth" name="oldMonth" type="text" value="$oldMonth"
-
 
19
                           class="form-control input-sm" readonly>
-
 
20
                </div>
-
 
21
 
-
 
22
                <div class="col-lg-2 form-group">
-
 
23
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
-
 
24
                           value="$oApproved" class="form-control input-sm" readonly>
-
 
25
                </div>
-
 
26
                <div class="col-lg-2 form-group">
-
 
27
                    <input placeholder="Count" id="oldMonthCount" name="oldMonthCount" type="text"
-
 
28
                           value="$oldApproved.get($oApproved)" class="form-control input-sm" readonly>
-
 
29
                </div>
-
 
30
                #set($mul=0)
-
 
31
                #if($oldApproved.get($oApproved)<=4)
-
 
32
                    #set($mul =$oldApproved.get($oApproved) * 2000)
-
 
33
                #elseif($oldApproved.get($oApproved)<=9)
-
 
34
                    #set($mul =$oldApproved.get($oApproved) * 4000)
-
 
35
                #elseif($oldApproved.get($oApproved)>=10)
-
 
36
                    #set($mul =8000)
-
 
37
                #end
-
 
38
                <div class="col-lg-2 form-group">
-
 
39
                    <input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text"
-
 
40
                           value="$mul" class="form-control input-sm">
-
 
41
                </div>
-
 
42
 
-
 
43
                <div class="col-lg-2 form-group">
-
 
44
                    <button class="btn btn-primary"
-
 
45
                            onclick="oldRefferalAmountSubmit(`$oApproved`,$oldApproved.get($oApproved),`$oldMonth`)"
-
 
46
                            type="button">Add Money to Wallet
-
 
47
                    </button>
-
 
48
                </div>
-
 
49
 
-
 
50
            </div>
-
 
51
        #end
-
 
52
        <div id="refferal-table">
-
 
53
            <div class="row">
-
 
54
                <div class="col-lg-12">
-
 
55
                    <table class="table table-striped table-advance table-hover">
-
 
56
                        <tbody>
-
 
57
                        <tr>
-
 
58
                            <th>Referee Id</th>
-
 
59
                            <th>Referee Name</th>
-
 
60
                            <th>Referee Email</th>
-
 
61
                            <th>Business Name</th>
-
 
62
                            <th>Referee Mobile</th>
-
 
63
                            <th>Referal Name</th>
-
 
64
                            <th>Mobile</th>
-
 
65
                            <th>city</th>
-
 
66
                            <th>state</th>
-
 
67
                            <th>Created On</th>
-
 
68
                            <th>Updated On</th>
-
 
69
                            <th>Approved Timestamp</th>
-
 
70
 
-
 
71
                        </tr>
-
 
72
                            #if(!$oldPreMonthapproved.isEmpty())
-
 
73
                                #foreach( $oldPreMonthapprovedModel in $oldPreMonthapproved )
-
 
74
                                <tr class="refferal-table" data="$oldPreMonthapprovedModel.getId()">
-
 
75
                                    <td>$oldPreMonthapprovedModel.getId()</td>
-
 
76
                                    <td>$oldPreMonthapprovedModel.getRefereeName()</td>
-
 
77
                                    <td>$oldPreMonthapprovedModel.getRefereeEmail()</td>
-
 
78
                                    #if($customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName())
-
 
79
                                        <td>$customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
-
 
80
                                    #else
-
 
81
                                        <td></td>
-
 
82
                                    #end
-
 
83
                                    <td>$oldPreMonthapprovedModel.getRefereeMobile()</td>
-
 
84
                                    <td>$oldPreMonthapprovedModel.getFirstName() $oldPreMonthapprovedModel.getLastName()</td>
-
 
85
                                    <td>$oldPreMonthapprovedModel.getMobile()</td>
-
 
86
                                    <td>$oldPreMonthapprovedModel.getCity()</td>
-
 
87
                                    <td>$oldPreMonthapprovedModel.getState()</td>
-
 
88
                                    <td>$oldPreMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
-
 
89
                                    <td>$oldPreMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
-
 
90
                                    #if($oldPreMonthapprovedModel.getApprovedTimestamp())
-
 
91
                                        <td>$oldPreMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
-
 
92
                                    #else
-
 
93
                                        <td></td>
-
 
94
                                    #end
-
 
95
 
-
 
96
                                </tr>
-
 
97
                                #end
-
 
98
                            #else
-
 
99
                            <tr>
-
 
100
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
101
                            </tr>
-
 
102
                            #end
-
 
103
                        </tbody>
-
 
104
                    </table>
-
 
105
                </div>
-
 
106
            </div>
-
 
107
        </div>
-
 
108
 
-
 
109
    #end
-
 
110
 
-
 
111
    #if(!$preApproved.isEmpty())
-
 
112
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$previousMonth Refferals</h4>
-
 
113
        #foreach($pApproved in $preApproved.keySet())
-
 
114
            <div class="row">
-
 
115
 
-
 
116
                <div class="col-lg-2 form-group">
-
 
117
                    <input placeholder="month" id="previousMonth" name="previousMonth" type="text"
-
 
118
                           value="$previousMonth" class="form-control input-sm" readonly>
-
 
119
                </div>
-
 
120
 
-
 
121
                <div class="col-lg-2 form-group">
-
 
122
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
-
 
123
                           value="$pApproved" class="form-control input-sm" readonly>
-
 
124
                </div>
-
 
125
 
-
 
126
                <div class="col-lg-2 form-group">
-
 
127
                    <input placeholder="Count" id="count" name="count" type="text" value="$preApproved.get($pApproved)"
-
 
128
                           class="form-control input-sm" readonly>
-
 
129
                </div>
-
 
130
                #set($mul=0)
-
 
131
                #if($preApproved.get($pApproved)<=4)
-
 
132
                    #set($mul =$preApproved.get($pApproved) * 2000)
-
 
133
                #elseif($preApproved.get($pApproved)<=9)
-
 
134
                    #set($mul =$preApproved.get($pApproved) * 4000)
-
 
135
                #elseif($preApproved.get($pApproved))
-
 
136
                    #set($mul =8000)
-
 
137
                #end
-
 
138
                <div class="col-lg-2 form-group">
-
 
139
                    <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul"
-
 
140
                           class="form-control input-sm">
-
 
141
                </div>
-
 
142
 
-
 
143
 
-
 
144
                <div class="col-lg-2 form-group">
-
 
145
                    <button class="btn btn-primary" type="button"
-
 
146
                            onclick="refferalAmountSubmit(`$pApproved`,$preApproved.get($pApproved),`$previousMonth`)">
-
 
147
                        Add Money to wallet
-
 
148
                    </button>
-
 
149
                </div>
-
 
150
 
-
 
151
            </div>
-
 
152
        #end
-
 
153
        <div id="refferal-table">
-
 
154
            <div class="row">
-
 
155
                <div class="col-lg-12">
-
 
156
                    <table class="table table-striped table-advance table-hover">
-
 
157
                        <tbody>
-
 
158
                        <tr>
-
 
159
                            <th>Referee Id</th>
-
 
160
                            <th>Referee Name</th>
-
 
161
                            <th>Referee Email</th>
-
 
162
                            <th>Business Name</th>
-
 
163
                            <th>Referee Mobile</th>
-
 
164
                            <th>Referal Name</th>
-
 
165
                            <th>Mobile</th>
-
 
166
                            <th>city</th>
-
 
167
                            <th>state</th>
-
 
168
                            <th>Created On</th>
-
 
169
                            <th>Updated On</th>
-
 
170
                            <th>Approved Timestamp</th>
-
 
171
 
-
 
172
                        </tr>
-
 
173
                            #if(!$preCurrMonthapproved.isEmpty())
-
 
174
                                #foreach( $preCurrMonthapprovedModel in $preCurrMonthapproved )
-
 
175
                                <tr class="refferal-table" data="$preCurrMonthapprovedModel.getId()">
-
 
176
                                    <td>$preCurrMonthapprovedModel.getId()</td>
-
 
177
                                    <td>$preCurrMonthapprovedModel.getRefereeName()</td>
-
 
178
                                    <td>$preCurrMonthapprovedModel.getRefereeEmail()</td>
-
 
179
                                    #if($customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName())
-
 
180
                                        <td>$customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
-
 
181
                                    #else
-
 
182
                                        <td></td>
-
 
183
                                    #end
-
 
184
                                    <td>$preCurrMonthapprovedModel.getRefereeMobile()</td>
-
 
185
                                    <td>$preCurrMonthapprovedModel.getFirstName() $preCurrMonthapprovedModel.getLastName()</td>
-
 
186
                                    <td>$preCurrMonthapprovedModel.getMobile()</td>
-
 
187
                                    <td>$preCurrMonthapprovedModel.getCity()</td>
-
 
188
                                    <td>$preCurrMonthapprovedModel.getState()</td>
-
 
189
                                    <td>$preCurrMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
-
 
190
                                    <td>$preCurrMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
-
 
191
                                    #if($preCurrMonthapprovedModel.getApprovedTimestamp())
-
 
192
                                        <td>$preCurrMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
-
 
193
                                    #else
-
 
194
                                        <td></td>
-
 
195
                                    #end
-
 
196
 
-
 
197
                                </tr>
-
 
198
                                #end
-
 
199
                            #else
-
 
200
                            <tr>
-
 
201
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
202
                            </tr>
-
 
203
                            #end
-
 
204
                        </tbody>
-
 
205
                    </table>
-
 
206
                </div>
-
 
207
            </div>
-
 
208
        </div>
-
 
209
    #end
-
 
210
 
-
 
211
 
-
 
212
    #if($pastApproved)
-
 
213
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;"> Refferals</h4>
-
 
214
        #foreach($pstApproved in $pastApproved.keySet())
-
 
215
            <div class="row">
-
 
216
 
-
 
217
                <div class="col-lg-2 form-group">
-
 
218
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
-
 
219
                           value="$pstApproved" class="form-control input-sm" readonly>
-
 
220
                </div>
-
 
221
 
-
 
222
                <div class="col-lg-2 form-group">
-
 
223
                    <input placeholder="Count" id="count" name="count" type="text"
-
 
224
                           value="$pastApproved.get($pstApproved)" class="form-control input-sm" readonly>
-
 
225
                </div>
-
 
226
 
-
 
227
                #set($mul=0)
-
 
228
                #if($pastApproved.get($pstApproved)<=4)
-
 
229
                    #set($mul =$pastApproved.get($pstApproved) * 2000)
-
 
230
                #elseif($pastApproved.get($pstApproved)<=9)
-
 
231
                    #set($mul =$pastApproved.get($pstApproved) * 4000)
-
 
232
                #elseif($pastApproved.get($pstApproved))
-
 
233
                    #set($mul =8000)
-
 
234
                #end
-
 
235
                <div class="col-lg-2 form-group">
-
 
236
                    <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul"
-
 
237
                           class="form-control input-sm" readonly>
-
 
238
                </div>
-
 
239
 
-
 
240
 
-
 
241
                <div class="col-lg-2 form-group">
-
 
242
                    <button class="btn btn-primary" type="button"
-
 
243
                            onclick="refferalAmountSubmit(`$pstApproved`,$pastApproved.get($pstApproved),`$previousMonth`)">
-
 
244
                        Add Money to wallet
-
 
245
                    </button>
-
 
246
                </div>
-
 
247
 
-
 
248
            </div>
-
 
249
        #end
-
 
250
        <div id="refferal-table">
-
 
251
            <div class="row">
-
 
252
                <div class="col-lg-12">
-
 
253
                    <table class="table table-striped table-advance table-hover">
-
 
254
                        <tbody>
-
 
255
                        <tr>
-
 
256
                            <th>Referee Id</th>
-
 
257
                            <th>Referee Name</th>
-
 
258
                            <th>Referee Email</th>
-
 
259
                            <th>Business Name</th>
-
 
260
                            <th>Referee Mobile</th>
-
 
261
                            <th>Referal Name</th>
-
 
262
                            <th>Mobile</th>
-
 
263
                            <th>city</th>
-
 
264
                            <th>state</th>
-
 
265
                            <th>Created On</th>
-
 
266
                            <th>Updated On</th>
-
 
267
                            <th>Approved Timestamp</th>
-
 
268
 
-
 
269
                        </tr>
-
 
270
                            #if(!$pastrefferal.isEmpty())
-
 
271
                                #foreach( $pastrefferalModel in $pastrefferal )
-
 
272
                                <tr class="refferal-table" data="$pastrefferalModel.getId()">
-
 
273
                                    <td>$pastrefferalModel.getId()</td>
-
 
274
                                    <td>$pastrefferalModel.getRefereeName()</td>
-
 
275
                                    <td>$pastrefferalModel.getRefereeEmail()</td>
-
 
276
                                    #if($customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName())
-
 
277
                                        <td>$customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName()</td>
-
 
278
                                    #else
-
 
279
                                        <td></td>
-
 
280
                                    #end
-
 
281
                                    <td>$pastrefferalModel.getRefereeMobile()</td>
-
 
282
                                    <td>$pastrefferalModel.getFirstName() $pastrefferalModel.getLastName()</td>
-
 
283
                                    <td>$pastrefferalModel.getMobile()</td>
-
 
284
                                    <td>$pastrefferalModel.getCity()</td>
-
 
285
                                    <td>$pastrefferalModel.getState()</td>
-
 
286
                                    <td>$pastrefferalModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
-
 
287
                                    <td>$pastrefferalModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
-
 
288
                                    #if($pastrefferalModel.getApprovedTimestamp())
-
 
289
                                        <td>$pastrefferalModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
-
 
290
                                    #else
-
 
291
                                        <td></td>
-
 
292
                                    #end
-
 
293
 
-
 
294
                                </tr>
-
 
295
                                #end
-
 
296
                            #else
-
 
297
                            <tr>
-
 
298
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
299
                            </tr>
-
 
300
                            #end
-
 
301
                        </tbody>
-
 
302
                    </table>
-
 
303
                </div>
-
 
304
            </div>
-
 
305
        </div>
272
 
306
 
-
 
307
    #end
273
 
308
 
274
	
-
 
275
 
309
 
276
	</section>
-
 
277
310
</section>
-
 
311
278
312