-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinbox.html
653 lines (564 loc) · 34.3 KB
/
inbox.html
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Zaitoon Manager</title>
<link type='text/css' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400italic,600' rel='stylesheet'>
<link type="text/css" href="assets/fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link type="text/css" href="assets/fonts/themify-icons/themify-icons.css" rel="stylesheet">
<link type="text/css" href="assets/css/styles.css" rel="stylesheet">
<link type="text/css" href="assets/plugins/codeprettifier/prettify.css" rel="stylesheet">
<link type="text/css" href="assets/plugins/iCheck/skins/minimal/blue.css" rel="stylesheet">
<link type="text/css" href="assets/plugins/bootstrap-tokenfield/css/bootstrap-tokenfield.css" rel="stylesheet"> <!-- Tokenfield -->
<link type="text/css" href="assets/plugins/summernote/dist/summernote.css" rel="stylesheet"> <!-- Summernote -->
<link rel="shortcut icon" href="assets/icons/favicon.png">
<!-- Controller -->
<script src="assets/js/jquery.js"></script>
<script src="assets/js/angular.latest.min.js"></script>
<script src="assets/js/angular-cookies.min.js"></script>
<script src="assets/js/angular-sanitize.js"></script>
<script src="controllers/inbox.js"></script>
</head>
<body ng-app="inboxApp" ng-controller="inboxController" ng-cloak>
<header id="topnav" class="navbar navbar-default navbar-fixed-top" role="banner">
<div class="logo-area">
<span id="trigger-sidebar" class="toolbar-trigger toolbar-icon-bg">
<a data-toggle="tooltips" data-placement="right" title="Toggle Sidebar">
<span class="icon-bg">
<i class="ti ti-menu"></i>
</span>
</a>
</span>
<a class="navbar-brand" href="index.html" style="width: 125px"></a>
<h1 style="font-size: 18px; font-weight: bold; text-transform: uppercase">{{schoolFancyName}}</h1>
</div>
<ul class="nav navbar-nav toolbar pull-right">
<li class="toolbar-icon-bg hidden-xs" id="trigger-fullscreen">
<a href="#" class="toggle-fullscreen"><span class="icon-bg"><i class="ti ti-fullscreen"></i></span></i></a>
</li>
<li class="dropdown toolbar-icon-bg hidden-xs">
<a href="#" class="hasnotifications dropdown-toggle" data-toggle='dropdown'><span class="icon-bg"><i class="ti ti-email"></i></span><span
class="badge badge-deeporange">2</span></a>
<div class="dropdown-menu notifications arrow">
<div class="topnav-dropdown-header">
<span>Messages</span>
</div>
<div class="scroll-pane">
<ul class="media-list scroll-content">
<li class="media notification-message">
<a href="#">
<div class="media-left">
<img class="img-circle avatar" src="http://placehold.it/300&text=Placeholder" alt="" />
</div>
<div class="media-body">
<h4 class="notification-heading"><strong>Vincent Keller</strong> <span class="text-gray">‒ Design should be ...</span></h4>
<span class="notification-time">2 mins ago</span>
</div>
</a>
</li>
</ul>
</div>
<div class="topnav-dropdown-footer">
<a href="#">See all messages</a>
</div>
</div>
</li>
<li class="dropdown toolbar-icon-bg">
<a href="#" class="hasnotifications dropdown-toggle" data-toggle='dropdown'><span class="icon-bg"><i class="ti ti-bell"></i></span><span class="badge badge-deeporange">2</span></a>
<div class="dropdown-menu notifications arrow">
<div class="topnav-dropdown-header">
<span>Notifications</span>
</div>
<div class="scroll-pane">
<ul class="media-list scroll-content">
<li class="media notification-success" ng-repeat="highlight in highlightsList">
<a href="#">
<div class="media-left">
<span class="notification-icon"><i>A</i></span>
</div>
<div class="media-body">
<h4 class="notification-heading">{{highlight.brief}}</h4>
<span class="notification-time">{{highlight.timeLapsed}} from {{highlight.user}}</span>
</div>
</a>
</li>
<li class="media notification-info">
<a href="#">
<div class="media-left">
<span class="notification-icon"><i class="ti ti-check"></i></span>
</div>
<div class="media-body">
<h4 class="notification-heading">Update 1.0.3 successfully pushed</h4>
<span class="notification-time">24 mins ago</span>
</div>
</a>
</li>
<li class="media notification-teal">
<a href="#">
<div class="media-left">
<span class="notification-icon"><i class="ti ti-check"></i></span>
</div>
<div class="media-body">
<h4 class="notification-heading">Update 1.0.2 successfully pushed</h4>
<span class="notification-time">16 hours ago</span>
</div>
</a>
</li>
<li class="media notification-indigo">
<a href="#">
<div class="media-left">
<span class="notification-icon"><i class="ti ti-check"></i></span>
</div>
<div class="media-body">
<h4 class="notification-heading">Update 1.0.1 successfully pushed</h4>
<span class="notification-time">2 days ago</span>
</div>
</a>
</li>
<li class="media notification-danger">
<a href="#">
<div class="media-left">
<span class="notification-icon"><i class="ti ti-arrow-up"></i></span>
</div>
<div class="media-body">
<h4 class="notification-heading">Initial Release 1.0</h4>
<span class="notification-time">4 days ago</span>
</div>
</a>
</li>
</ul>
</div>
<div class="topnav-dropdown-footer">
<a href="#">See all notifications</a>
</div>
</div>
</li>
<li class="dropdown toolbar-icon-bg">
<a href="#" class="dropdown-toggle username" data-toggle="dropdown">
<img class="img-circle" src="http://placehold.it/300&text=Placeholder" alt="" />
</a>
<ul class="dropdown-menu userinfo arrow">
<li><a href="#/"><i class="ti ti-settings"></i><span>Account Settings</span></a></li>
<li><a href="#/" ng-click="logoutNow()"><i class="ti ti-shift-right"></i><span>Sign Out</span></a></li>
</ul>
</li>
</ul>
</header>
<div id="wrapper">
<div id="layout-static">
<div class="static-sidebar-wrapper sidebar-default">
<div class="static-sidebar">
<div class="sidebar">
<div class="widget stay-on-collapse" id="widget-sidebar">
<nav role="navigation" class="widget-body">
<ul class="acc-menu">
<li><a href="index.html"><i class="ti ti-layout-grid2"></i><span>Dashboard</span><span class="badge badge-teal">2</span></a></li>
<li><a href="events.html"><i class="ti ti-bell"></i><span>Events & Notifications</span></span></a></li>
<li><a href="attendance.html"><i class="ti ti-upload"></i><span>Upload Attendance</span></span></a></li>
<li><a href="javascript:;"><i class="ti ti-reload"></i><span>Workflow</span></a>
<ul class="acc-menu">
<li><a href="leaves.html">Leaves</a></li>
<li><a href="payments.html">Payments</a></li>
<li><a href="service-requests.html">Requests</a></li>
</ul>
</li>
<li><a href="inbox.html"><i class="ti ti-email"></i><span>Inbox</span></span></a></li>
<li><a href="calendar.html"><i class="ti ti-calendar"></i><span></span>Calendar</span></a></li>
<li><a href="student-profile.html"><i class="ti ti-search"></i><span>Search Student</span></span></a></li>
<li><a href="javascript:;"><i class="ti ti-settings"></i><span>Tools</span></a>
<ul class="acc-menu">
<li><a href="home-works.html">Upload Homeworks</a></li>
<li><a href="marklists.html">Upload Marklist</a></li>
<li><a href="messenger.html">Send Message</a></li>
<li><a href="progress-report.html">Progress Report Generator</a></li>
<li><a href="tc-generator.html">TC Generator</a></li>
</ul>
</li>
<li><a href="javascript:;"><i class="ti ti-user"></i><span>Profiles</span></a>
<ul class="acc-menu">
<li><a href="student-profile.html">Students</a></li>
<li><a href="teacher-profile.html">Teachers</a></li>
<li><a href="admin-profile.html">Administrators</a></li>
</ul>
</li>
<li><a href="javascript:;"><i class="ti ti-folder"></i><span>Resources</span></a>
<ul class="acc-menu">
<li><a href="class-management.html">Classes</a></li>
<li><a href="courses.html">Courses</a></li>
<li><a href="time-table.html">Time Tables</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div class="static-content-wrapper">
<div class="static-content">
<div class="page-content">
<ol class="breadcrumb" style="margin: 0">
</ol>
<div class="container-fluid">
<div class="row" id="displayPanel">
<div class="col-sm-3">
<a class="btn btn-lg btn-indigo btn-block mb-xl" ng-click="openCompose()">Compose</a>
<div class="list-group inbox-menu list-group-alternate">
<a href="#" class="list-group-item active" ng-click="loadPage(1)"><i class="ti ti-email"></i>Inbox <span class="badge badge-primary">{{unreadTotal}}</span></a>
<a href="#" class="list-group-item"><i class="ti ti-share"></i>Sent </a>
<a href="#" class="list-group-item"><i class="ti ti-file"></i>Drafts <span class="badge badge-orange">1</span></a>
<a href="#" class="list-group-item"><i class="ti ti-trash"></i>Trash</a>
<a href="#" class="list-group-item" ng-click="shortlistQueries('GENERAL')"><i class="ti ti-star"></i>Stared</a>
</div>
</div><!-- col-sm-3 -->
<div class="col-sm-9">
<div ng-if="!isQueriesFound">
<p style="font-size: 24px; color: #bdc3c7; font-weight: 200; text-align: center; padding-top: 45px;">Your inbox is so empty. <i class="ti ti-face-sad"></i></p>
</div>
<!-- READ MAIL -->
<div class="panel panel-inbox-read" ng-if="displayQueryFlag">
<div class="panel-body">
<div class="inbox-mail-heading">
<div class="clearfix">
<div class="pull-left">
<a href="#" class="btn btn-lg btn-default" ng-click="clearDisplay()"><i class="ti ti-arrow-circle-left"></i></a>
</div>
<p style="color: #27ae60; float: right; padding: 5px 10px 0px 0px; margin:0; font-size: 18px"><i class="fa fa-phone"></i> {{displayContent.fromID}}</p>
</div>
</div>
<div class="clearfix" ng-if="displayContent.isRefund">
<h4 class="inbox-read-title pull-left" style="font-size: 16px"><tag style="background: #3498db; color: #FFF; padding: 2px 4px; font-size: 12px; font-weight: bold;">REFUND REQUEST</tag> <my style="color: #95a5a6; padding-left: 15px">Payment Reference:</my> <strong id="copyName">{{displayContent.remarks}}</strong><span ng-click="copyToClipboardPaymentID('#copyName')" class="btn btn-info-alt btn-xs copyNameButtonCls" id="copyNameButton" style="text-transform: none; margin-left: 5px; border: none"><i class="ti ti-files"></i></span></h4>
</div>
<hr class=" mb10">
<div class="inbox-read-details clearfix">
<div class="pull-left">
<i class="ti ti-user img-rounded" style="float: left; padding-right: 5px"></i>
<span class="inbox-read-sender-name pull-left" style="color: #3498db">{{displayContent.fromName}}</span>
<span class="inbox-read-sender-email">{{displayContent.fromBrief}}</span>
</div>
<div class="pull-right">
<span class="inbox-read-sent-info">Received at {{displayContent.date}} </span>
<div class="btn-group" ng-if="!isReplyRequested && displayContent.status == 0">
<a href="#" id="myReplyButtonOne" class="btn btn-sm btn-midnightblue"><i class="ti ti-share visible-xs"></i><span class="hidden-xs">Reply</span></a>
<a href="#" class="btn btn-sm btn-midnightblue dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</a>
<ul class="dropdown-menu" role="menu" id="myReplyButtonTwo">
<li><a href="#" ng-click="openReplyWindow(displayContent, 'REPLY_CUSTOM')">Custom Reply</a></li>
<li ng-if="!displayContent.isRefund"><a href="#" ng-click="openReplyWindow(displayContent, 'REPLY_ORDER_QUERY')">Order Status</a></li>
<li ng-if="!displayContent.isRefund"><a href="#" ng-click="openReplyWindow(displayContent, 'REPLY_DELAYED_ORDER')">Delay in Delivery</a></li>
<li ng-if="!displayContent.isRefund"><a href="#" ng-click="openReplyWindow(displayContent, 'REPLY_FEEDBACK_POSITIVE')">Positive Feedback</a></li>
<li ng-if="!displayContent.isRefund"><a href="#" ng-click="openReplyWindow(displayContent, 'REPLY_FEEDBACK_NEGATIVE')">Negative Feedback</a></li>
</ul>
</div>
</div>
</div>
<hr>
<div class="msg-body">
<p style="font-size: 16px">{{displayContent.content}}</p>
<br>
<p>Regards,<br>
<strong>{{displayContent.userName}}</strong><br>{{displayContent.fromBrief}}<br>{{displayContent.fromID}}
<button type="button" ng-if="displayContent.status == 0" class="btn btn-primary" style="float: right" ng-click="markSpamOpen(displayContent.id, displayContent.userName)" id="myMarkResolveButton">Mark Resolved</button>
<tag ng-if="displayContent.status == 2" style="float: right" class="btn btn-midnightblue-alt btn-sm">Marked Resolved</tag>
</p>
</div>
<hr>
<!-- Your Comment -->
<div ng-if="displayContent.status == 0">
<hr ng-if="displayContent.isRefund">
<div class="inbox-read-details clearfix">
<div class="pull-left">
<i class="ti ti-headphone-alt img-rounded" style="float: left; padding-right: 5px"></i>
<span class="inbox-read-sender-name pull-left" style="color: #3498db">{{displayContent.replyAgent}}</span>
<span class="inbox-read-sender-email"><[email protected]></span>
</div>
<div class="pull-right">
<span class="inbox-read-sent-info">Replied at {{displayContent.replyDate}} </span>
</div>
</div>
<hr>
<div class="msg-body">
<p style="font-size: 16px;" ng-bind-html="getFormattedContent(displayContent.replyContent)"></p>
</div>
</div>
<!-- REPLY -->
<div ng-if="isReplyRequested">
<form role="form" id="inbox-compose-form" class="form-horizontal p-md">
<div class="form-group mb-sm">
<div class="col-md-12">
<div class="input-group input-group-lg">
<span class="input-group-addon">To:</span>
<input type="text" class="form-control input-lg" ng-model="replyContent.userEmail">
</div>
</div>
</div>
<div class="form-group mb-sm" style="display:none;">
<div class="col-md-12"><input type="text" class="form-control"></div>
</div>
<div class="form-group mb-sm">
<div class="col-md-12"><input type="text" class="form-control input-lg" ng-model="replyContent.replySubject" placeholder="Subject for Email"></div>
</div>
<div class="form-group mb-n">
<div class="col-md-12"><textarea rows="10" class="form-control input-lg" ng-model="replyContent.replyMessage" style="color: #2980b9"></textarea></div>
</div>
<br>
<div class="clearfix">
<div class="pull-left">
<a href="#" ng-click="cancelReplyMode()" class="btn btn-lg btn-default">Cancel</a>
</div>
<div class="pull-right">
<a href="#" ng-click="submitReply()" class="btn btn-lg btn-success"><i class="ti ti-arrow-right visible-xs"></i><span class="hidden-xs">Send</span></a>
</div>
</div>
</form>
</div>
<!--reply end. -->
</div>
</div>
<!-- READ MAIL -->
<!-- MAIL BOX -->
<div ng-if="!displayQueryFlag">
<div class="input-group mb-xl" ng-if="isQueriesFound">
<input type="text" class="form-control input-lg" id="searchBox" ng-model="searchKey.value" placeholder="Search with Mobile Number or Name or Email ID">
<span class="input-group-btn">
<button class="btn btn-default btn-lg" type="button" ng-click="searchHelp()"><i class="ti ti-search"></i></button>
</span>
</div><!-- /input-group -->
<div class="panel panel-inbox" ng-if="isQueriesFound">
<p ng-if="!queryList.length" style="font-size: 18px; color: #bdc3c7; font-weight: 200; text-align: center; padding-top: 20px;">Sorry. No results matching your search.
<br><br><a href="#" class="btn btn-lg btn-default" ng-if="isFilterRequested" ng-click="clearSearch()" style="margin-left: 5px; font-weight: 200"><i class="ti ti-close"></i> Clear Search</a
</p>
<div class="panel-body" ng-if="queryList.length > 0">
<div class="inbox-mail-heading">
<div class="clearfix">
<div class="pull-left">
<div class="btn-group">
<a href="#" class="btn btn-lg btn-default" ng-click="loadPage(1)"><i class="ti ti-reload"></i></a>
<a href="#" class="btn btn-lg btn-default" ng-if="isFilterRequested" ng-click="clearSearch()" style="margin-left: 5px; font-weight: 200"><i class="ti ti-close"></i> Clear Search</a>
<a href="#" class="btn btn-lg btn-clear" style="color: #27ae60; margin-left: 15px; text-transform: none; font-weight: 200; font-size: 18px" ng-if="isFilterRequested" ng-click="clearSearch()">{{searchResultCount}} Results</a>
</div>
</div>
<div class="pull-right hidden-xs">
<strong>{{currentPage}}</strong> of <strong>{{totalQueries}}</strong>
<div class="btn-group ml-sm" ng-if="totalQueries != 1">
<a href="#" class="btn btn-lg btn-default" ng-if="currentPage != 1" ng-click="loadPage(currentPage-1)"><i class="ti ti-angle-left"></i></a>
<a href="#" class="btn btn-lg btn-default" ng-if="currentPage != totalQueries" ng-click="loadPage(currentPage+1)"><i class="ti ti-angle-right"></i></a>
</div>
</div>
</div>
</div>
<table class="table table-hover table-inbox table-vam">
<tbody>
<tr ng-repeat="query in queryList" ng-class="checkUnread(query)" ng-click="displayQuery(query)">
<td class="inbox-msg-from hidden-xs hidden-sm" width="20%"><div style="padding-left: 5px">{{query.fromName}}</div></td>
<td class="inbox-msg-snip"><span class="label label-primary" width="60%" ng-if="query.type">{{query.type}}</span><i ng-if="query.isStar" class="fa fa-star" style="padding-right: 5px" aria-hidden="true"></i>{{(query.content).substring(0, 51)}} <tag ng-if="(query.content).length > 51">...</tag></td>
<td class="inbox-msg-time" width="20%">{{query.date}}</td>
</tr>
</tbody>
</table>
<div class="inbox-mail-footer">
<div class="clearfix">
<div class="pull-right">
<strong>{{currentPage}}</strong> of <strong>{{totalQueries}}</strong>
<div class="btn-group ml-sm" ng-if="totalQueries != 1">
<a href="#" class="btn btn-lg btn-default" ng-if="currentPage != 1" ng-click="loadPage(currentPage-1)"><i class="ti ti-angle-left"></i></a>
<a href="#" class="btn btn-lg btn-default" ng-if="currentPage != totalQueries" ng-click="loadPage(currentPage+1)"><i class="ti ti-angle-right"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MAIL BOX -->
</div><!-- col-sm-9 -->
</div>
</div> <!-- .container-fluid -->
<!-- Confirmation Modal -->
<div class="modal fade" id="confirmationModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<p style="color: #34495e; font-weight: 400; font-size: 18px">Do you want to mark this mail from {{confirmContentName}} to 'Resolved' status?<br>You will not be able to reply to this message then.</p>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" ng-click="markSpam(confirmContentId)" style="float: right">Mark Resolved</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- View Modal -->
<div class="modal fade" id="viewModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="position: absolute; top:0; right: 0; z-index: 2; border: none; margin: 8px; padding: 10px; background: #c0392b;">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" style="color: #FFF; text-shadow: none">x</span></button>
</div>
<div class="modal-body" style="padding: 0">
<div class="panel panel-bluegray">
<div class="panel-heading" style="background: #D7DBDD">
<h2 style="color: #5D6D7E; font-size: 21px;">
#{{displayOrderContent.orderID}}
<tag ng-if="displayOrderContent.isPrepaid && displayOrderContent.isVerfied" style="font-size: 12px; float: right; margin-left: 10px; padding: 1px 3px; font-weight: bold; border: 1px solid #2980b9; color: #2980b9">PREPAID ORDER</tag>
<tag ng-if="displayOrderContent.isPrepaid && !displayOrderContent.isVerfied" style="font-size: 12px; float: right; margin-left: 10px; padding: 1px 3px; font-weight: bold; border: 1px solid #e74c3c; color: #e74c3c">FAILED ORDER</tag>
<tag ng-if="!displayOrderContent.isPrepaid" style="font-size: 12px; float: right; margin-left: 10px; padding: 1px 3px; font-weight: bold; background: #2ecc71; color: #FFF">CASH ON DELIVERY</tag>
</h2>
<tag style="float: right">
<h2 ng-if="displayOrderType" style="margin: 12px 10px 0px 10px; float: left; padding: 2px 4px; font-weight: bold; background: #2980b9; color: #FFF">
TAKE AWAY ORDER
</h2>
</tag>
<h3 style="float: right; color: #34495e; font-weight: 300; margin: 0; padding: 14px 0; margin-right: 45px">{{displayOrderContent.outlet}}</h3>
</div>
<div class="panel-heading" style="background: #F1F2F2">
<div class="row">
<div class="col-sm-12">
<p ng-if="displayOrderContent.status == 5" style="color: #c0392b; margin: 0px">
This order was cancelled.
<date style="float: right">
{{displayOrderContent.date}}
<platform style="float: right; padding-left: 5px" ng-if="displayOrderContent.platform == 'WEB'">
<i class="fa fa-desktop" aria-hidden="true"></i>
</platform>
<platform style="float: right; padding-left: 5px" ng-if="displayOrderContent.platform == 'MOB'"><i class="fa fa-android" aria-hidden="true"></i></platform>
<platform style="float: right; padding-left: 5px" ng-if="displayOrderContent.platform == 'IOS'"><i class="fa fa-apple" aria-hidden="true"></i></platform>
</date>
</p>
<p style="color: #5D6D7E; margin: 0px" ng-if="displayOrderContent.status != 5">
<i class="fa fa-clock-o"></i> Placed at <b>{{displayOrderContent.timePlace}}</b>
<tag ng-if="displayOrderContent.status > 0"> <i class="fa fa-check-square-o" style="padding-left: 10px"></i> Confirmed at <b>{{displayOrderContent.timeConfirm}}</b></tag>
<tag ng-if="!displayOrderType && displayOrderContent.status > 1"> <i class="fa fa-truck" style="padding-left: 10px"></i> Dispated at <b>{{displayOrderContent.timeDispatch}}</b></tag>
<tag ng-if="displayOrderType && displayOrderContent.status > 1"> <i class="fa fa-gift" style="padding-left: 10px"></i> Ready for Pickup at <b>{{displayOrderContent.timeDispatch}}</b></tag>
<date style="float: right">
{{displayOrderContent.date}}
<platform style="float: right; padding-left: 5px" ng-if="displayOrderContent.platform == 'WEB'">
<i class="fa fa-desktop" aria-hidden="true"></i>
</platform>
<platform style="float: right; padding-left: 5px" ng-if="displayOrderContent.platform == 'MOB'"><i class="fa fa-android" aria-hidden="true"></i></platform>
<platform style="float: right; padding-left: 5px" ng-if="displayOrderContent.platform == 'IOS'"><i class="fa fa-apple" aria-hidden="true"></i></platform>
</date>
<rating style="float: right; margin-right: 10px; font-size: 14px;">
<tag ng-if="displayOrderContent.feedback.rating == 5" style="color: #2ecc71"> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i> </tag>
<tag ng-if="displayOrderContent.feedback.rating == 4" style="color: #cddc39"> <i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i> </tag>
<tag ng-if="displayOrderContent.feedback.rating == 3" style="color: #cddc39"> <i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i> </tag>
<tag ng-if="displayOrderContent.feedback.rating == 2" style="color: #cddc39"> <i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i> </tag>
<tag ng-if="displayOrderContent.feedback.rating == 1" style="color: #e74c3c"> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star-o" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i><i class="fa fa-star-o" aria-hidden="true"></i> </tag>
</rating>
</p>
</div>
</div>
</div>
<div class="panel-body">
<div id="earnings" class="mt-sm mb-sm">
<!-- Order Data -->
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Item Name</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Sub Total</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in displayOrderContent.cart.items track by $index">
<td align="left">{{$index+1}}</td>
<td>{{item.itemName}} <span ng-if="item.isCustom" class="text-warning" style="font-size: 11px;">{{item.variant}}</span></td>
<td>{{item.qty}}</td>
<td>{{item.itemPrice}}</td>
<td>{{item.itemPrice*item.qty}}</td>
</tr>
<tr>
<td colspan="2" style="padding: 1px"></td>
<td colspan="2" style="padding: 1px">Sub Total</td>
<td style="padding: 1px"><i class="fa fa-inr"></i> {{displayOrderContent.cart.cartTotal + displayOrderContent.cart.cartDiscount}}</td>
</tr>
<tr>
<td colspan="2" style="padding: 1px"></td>
<td colspan="2" style="padding: 1px">Parcel Charges</td>
<td style="padding: 1px"><i class="fa fa-inr"></i> {{displayOrderContent.cart.cartExtra}}</td>
</tr>
<tr>
<td colspan="2" style="padding: 1px"></td>
<td colspan="2" style="padding: 1px">Discounts</td>
<td style="padding: 1px"><i class="fa fa-inr"></i> {{displayOrderContent.cart.cartDiscount}}</td>
</tr>
<tr style="font-size: 110%; font-weight: bold;">
<td colspan="2" style="padding: 1px"></td>
<td colspan="2" style="padding: 1px" ng-if="displayOrderContent.isPrepaid">Total Received Amount</td>
<td colspan="2" style="padding: 1px" ng-if="!displayOrderContent.isPrepaid && displayOrderContent.status < 2">Total Cash to Collect</td>
<td colspan="2" style="padding: 1px" ng-if="!displayOrderContent.isPrepaid && displayOrderContent.status > 1">Total Cash Collected</td>
<td style="padding: 1px"><i class="fa fa-inr"></i> {{displayOrderContent.amount}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="alert" style="background: none; border: 1px solid #bdc3c7; color: #34495e" ng-if="!displayOrderType">
<h3 style="font-weight: 200; font-size: 18px">DELIVERY ADDRESS</h3>
<hr>
<p>{{displayOrderContent.deliveryAddress.name}}<br>
{{displayOrderContent.deliveryAddress.flatNo}}, {{displayOrderContent.deliveryAddress.flatName}}<br>
{{displayOrderContent.deliveryAddress.area}}<br>
{{displayOrderContent.deliveryAddress.landmark}}<br>
Mob. <strong>{{displayOrderContent.deliveryAddress.contact}}</strong>
</p>
</div>
<div class="alert" style="background: none; border: 1px solid #bdc3c7; color: #34495e" ng-if="displayOrderType">
<h3 style="font-weight: 200; font-size: 18px">CUSTOMER DETAILS</h3>
<hr>
<p style="font-size: 21px">{{displayOrderContent.userName}}<br>
Mob. <strong>{{displayOrderContent.userID}}</strong>
</p>
</div>
</div>
<!-- PENDING ORDER CASE -->
<div class="col-md-6" ng-if="displayOrderContent.comments != ''">
<div class="alert" style="background: none; border: 2px solid #3498db; color: #3498db">
<h3 style="color: #3498db; font-weight: 200; font-size: 18px">COMMENTS TO CHEF</h3>
<hr>
<p style="font-size: 16px;">{{displayOrderContent.comments}}</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<tag ng-if="displayOrderContent.status == 2 && !displayOrderType" style="font-size: 16px; margin-left: 10px; color: #2ecc71;">Order was dispatched through <b>{{displayOrderContent.agentName}}</b> ({{displayOrderContent.agentCode}}) at {{displayOrderContent.timeDispatch}}</tag>
</div>
</div>
</div>
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
<!-- #page-content -->
</div>
</div>
</div>
</div>
<!-- Load site level scripts -->
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> -->
<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script> <!-- Load jQuery -->
<script type="text/javascript" src="assets/js/jqueryui-1.10.3.min.js"></script> <!-- Load jQueryUI -->
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script> <!-- Load Bootstrap -->
<script type="text/javascript" src="assets/js/enquire.min.js"></script> <!-- Load Enquire -->
<script type="text/javascript" src="assets/plugins/velocityjs/velocity.min.js"></script> <!-- Load Velocity for Animated Content -->
<script type="text/javascript" src="assets/plugins/velocityjs/velocity.ui.min.js"></script>
<script type="text/javascript" src="assets/plugins/wijets/wijets.js"></script> <!-- Wijet -->
<script type="text/javascript" src="assets/plugins/codeprettifier/prettify.js"></script> <!-- Code Prettifier -->
<script type="text/javascript" src="assets/plugins/bootstrap-switch/bootstrap-switch.js"></script> <!-- Swith/Toggle Button -->
<script type="text/javascript" src="assets/plugins/bootstrap-tabdrop/js/bootstrap-tabdrop.js"></script> <!-- Bootstrap Tabdrop -->
<script type="text/javascript" src="assets/plugins/iCheck/icheck.min.js"></script> <!-- iCheck -->
<script type="text/javascript" src="assets/plugins/nanoScroller/js/jquery.nanoscroller.min.js"></script> <!-- nano scroller -->
<script type="text/javascript" src="assets/js/application.js"></script>
<script type="text/javascript" src="assets/demo/demo.js"></script>
</body>
</html>