@@ -173,9 +173,9 @@ discard block |
||
173 | 173 | <?php |
174 | 174 | $counted = count(App\Model\helpdesk\Ticket\Tickets::whereIn('user_id', $user_orga_relation_id)->where('status', '=', '1')->get()); |
175 | 175 | if ($counted < 20) { |
176 | - echo $counted . "/" . $counted; |
|
176 | + echo $counted."/".$counted; |
|
177 | 177 | } else { |
178 | - echo "20/" . $counted; |
|
178 | + echo "20/".$counted; |
|
179 | 179 | } |
180 | 180 | ?> |
181 | 181 | </div> |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | |
214 | 214 | if (strlen($string) > 40) { |
215 | 215 | $stringCut = substr($string, 0, 40); |
216 | - $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...'; |
|
216 | + $string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...'; |
|
217 | 217 | } |
218 | 218 | $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id'); |
219 | 219 | $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first(); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | $username = $LastResponse->user_name; |
224 | 224 | } else { |
225 | 225 | $rep = "#000"; |
226 | - $username = $LastResponse->first_name . " " . $LastResponse->last_name; |
|
226 | + $username = $LastResponse->first_name." ".$LastResponse->last_name; |
|
227 | 227 | if ($LastResponse->first_name == null || $LastResponse->last_name == null) { |
228 | 228 | $username = $LastResponse->user_name; |
229 | 229 | } |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | if ($assigned_to == null) { |
238 | 238 | $assigned = "Unassigned"; |
239 | 239 | } else { |
240 | - $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; |
|
240 | + $assigned = $assigned_to->first_name." ".$assigned_to->last_name; |
|
241 | 241 | } |
242 | 242 | ?> |
243 | 243 | <td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i> |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | </tbody> |
256 | 256 | </table><!-- /.table --> |
257 | 257 | <div class="pull-right"> |
258 | - <?php echo $tickets->setPath(url('/organizations/' . $orgs->id))->render(); ?> |
|
258 | + <?php echo $tickets->setPath(url('/organizations/'.$orgs->id))->render(); ?> |
|
259 | 259 | </div> |
260 | 260 | </div><!-- /.mail-box-messages --> |
261 | 261 | {!! Form::close() !!} |
@@ -292,9 +292,9 @@ discard block |
||
292 | 292 | <?php |
293 | 293 | $counted = count(App\Model\helpdesk\Ticket\Tickets::whereIn('user_id', $user_orga_relation_id)->where('status', '=', '2')->get()); |
294 | 294 | if ($counted < 20) { |
295 | - echo $counted . "/" . $counted; |
|
295 | + echo $counted."/".$counted; |
|
296 | 296 | } else { |
297 | - echo "20/" . $counted; |
|
297 | + echo "20/".$counted; |
|
298 | 298 | } |
299 | 299 | ?> |
300 | 300 | </div> |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | |
332 | 332 | if (strlen($string) > 40) { |
333 | 333 | $stringCut = substr($string, 0, 40); |
334 | - $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...'; |
|
334 | + $string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...'; |
|
335 | 335 | } |
336 | 336 | $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id'); |
337 | 337 | $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first(); |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | $username = $LastResponse->user_name; |
342 | 342 | } else { |
343 | 343 | $rep = "#000"; |
344 | - $username = $LastResponse->first_name . " " . $LastResponse->last_name; |
|
344 | + $username = $LastResponse->first_name." ".$LastResponse->last_name; |
|
345 | 345 | if ($LastResponse->first_name == null || $LastResponse->last_name == null) { |
346 | 346 | $username = $LastResponse->user_name; |
347 | 347 | } |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | if ($assigned_to == null) { |
356 | 356 | $assigned = "Unassigned"; |
357 | 357 | } else { |
358 | - $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; |
|
358 | + $assigned = $assigned_to->first_name." ".$assigned_to->last_name; |
|
359 | 359 | } |
360 | 360 | ?> |
361 | 361 | <td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i> |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | </table><!-- /.table --> |
375 | 375 | |
376 | 376 | <div class="pull-right"> |
377 | - <?php echo $tickets->setPath(url('/organizations/' . $orgs->id))->render(); ?> |
|
377 | + <?php echo $tickets->setPath(url('/organizations/'.$orgs->id))->render(); ?> |
|
378 | 378 | </div> |
379 | 379 | </div><!-- /.mail-box-messages --> |
380 | 380 | {!! Form::close() !!} |
@@ -413,9 +413,9 @@ discard block |
||
413 | 413 | <?php |
414 | 414 | $counted = count(App\Model\helpdesk\Ticket\Tickets::whereIn('user_id', $user_orga_relation_id)->where('status', '=', '5')->get()); |
415 | 415 | if ($counted < 20) { |
416 | - echo $counted . "/" . $counted; |
|
416 | + echo $counted."/".$counted; |
|
417 | 417 | } else { |
418 | - echo "20/" . $counted; |
|
418 | + echo "20/".$counted; |
|
419 | 419 | } |
420 | 420 | ?> |
421 | 421 | </div> |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | |
454 | 454 | if (strlen($string) > 40) { |
455 | 455 | $stringCut = substr($string, 0, 40); |
456 | - $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...'; |
|
456 | + $string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...'; |
|
457 | 457 | } |
458 | 458 | $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id'); |
459 | 459 | $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first(); |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | $username = $LastResponse->user_name; |
464 | 464 | } else { |
465 | 465 | $rep = "#000"; |
466 | - $username = $LastResponse->first_name . " " . $LastResponse->last_name; |
|
466 | + $username = $LastResponse->first_name." ".$LastResponse->last_name; |
|
467 | 467 | if ($LastResponse->first_name == null || $LastResponse->last_name == null) { |
468 | 468 | $username = $LastResponse->user_name; |
469 | 469 | } |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | if ($assigned_to == null) { |
478 | 478 | $assigned = "Unassigned"; |
479 | 479 | } else { |
480 | - $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; |
|
480 | + $assigned = $assigned_to->first_name." ".$assigned_to->last_name; |
|
481 | 481 | } |
482 | 482 | ?> |
483 | 483 | <td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i> |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | </table><!-- /.table --> |
497 | 497 | |
498 | 498 | <div class="pull-right"> |
499 | - <?php echo $tickets->setPath(url('/organizations/' . $orgs->id))->render(); ?> |
|
499 | + <?php echo $tickets->setPath(url('/organizations/'.$orgs->id))->render(); ?> |
|
500 | 500 | </div> |
501 | 501 | </div><!-- /.mail-box-messages --> |
502 | 502 | {!! Form::close() !!} |
@@ -525,9 +525,9 @@ discard block |
||
525 | 525 | $created_date = $start_date->created_at; |
526 | 526 | $created_date = explode(' ', $created_date); |
527 | 527 | $created_date = $created_date[0]; |
528 | - $start_date = date("m/d/Y", strtotime($created_date . ' -1 months')); |
|
528 | + $start_date = date("m/d/Y", strtotime($created_date.' -1 months')); |
|
529 | 529 | } else { |
530 | - $start_date = date("m/d/Y", strtotime(date("m/d/Y") . ' -1 months')); |
|
530 | + $start_date = date("m/d/Y", strtotime(date("m/d/Y").' -1 months')); |
|
531 | 531 | } |
532 | 532 | ?> |
533 | 533 | <script type="text/javascript"> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | $term = $_GET["term"]; |
4 | -$organizations =App\Model\helpdesk\Agent_panel\Organization::where('name', 'LIKE', '%' . $term . '%')->get(); |
|
4 | +$organizations = App\Model\helpdesk\Agent_panel\Organization::where('name', 'LIKE', '%'.$term.'%')->get(); |
|
5 | 5 | $json = array(); |
6 | 6 | |
7 | 7 | foreach ($organizations as $organization) { |
@@ -135,20 +135,20 @@ discard block |
||
135 | 135 | <ul class="dropdown-menu"> |
136 | 136 | <li id="open"><a href="#"><i class="fa fa-folder-open-o" style="color:red;"> </i>{!! Lang::get('lang.open') !!}</a></li> |
137 | 137 | |
138 | - <?php if ( $tickets_approval->status==7) {?> |
|
138 | + <?php if ($tickets_approval->status == 7) {?> |
|
139 | 139 | @if(Auth::user()->role == 'admin') |
140 | 140 | <li id="approval_close"><a href="#"><i class="glyphicon glyphicon-thumbs-up" style="color:red;"> </i>{!! Lang::get('lang.approval') !!}</a></li> |
141 | 141 | @endif |
142 | 142 | |
143 | 143 | <?php } ?> |
144 | 144 | |
145 | - <?php if ( $tickets_approval->status==3) {?> |
|
145 | + <?php if ($tickets_approval->status == 3) {?> |
|
146 | 146 | <?php if ($group->can_edit_ticket == 1) {?> |
147 | 147 | <li id="close"><a href="#"><i class="fa fa-check" style="color:green;"> </i>{!! Lang::get('lang.close') !!}</a></li> |
148 | 148 | <?php } ?> |
149 | 149 | <?php } ?> |
150 | 150 | |
151 | - <?php if ( $tickets_approval->status==1) {?> |
|
151 | + <?php if ($tickets_approval->status == 1) {?> |
|
152 | 152 | <?php if ($group->can_edit_ticket == 1) {?> |
153 | 153 | <li id="close"><a href="#"><i class="fa fa-check" style="color:green;"> </i>{!! Lang::get('lang.close') !!}</a></li> |
154 | 154 | <?php } ?> |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | <?php if ($group->can_ban_email == 1) { ?> |
174 | 174 | <li data-toggle="modal" data-target="#banemail"><a href="#"><i class="fa fa-ban" style="color:red;"></i>{!! Lang::get('lang.ban_email') !!}</a></li> |
175 | 175 | <?php |
176 | - \Event::fire('ticket.details.more.list',[$tickets]); |
|
176 | + \Event::fire('ticket.details.more.list', [$tickets]); |
|
177 | 177 | } |
178 | 178 | ?> </ul> |
179 | 179 | </div> |
@@ -277,12 +277,12 @@ discard block |
||
277 | 277 | $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); |
278 | 278 | if ($LastResponse->role == "user") { |
279 | 279 | $rep = "#F39C12"; |
280 | - $username = $LastResponse->first_name . " " . $LastResponse->last_name; |
|
280 | + $username = $LastResponse->first_name." ".$LastResponse->last_name; |
|
281 | 281 | if ($LastResponse->first_name == null || $LastResponse->first_name == '') { |
282 | 282 | $username = $LastResponse->user_name; |
283 | 283 | } } else { |
284 | 284 | $rep = "#000"; |
285 | - $username = $LastResponse->first_name . " " . $LastResponse->last_name; |
|
285 | + $username = $LastResponse->first_name." ".$LastResponse->last_name; |
|
286 | 286 | if ($LastResponse->first_name == null || $LastResponse->last_name == null) { |
287 | 287 | $username = $LastResponse->user_name; |
288 | 288 | } |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | </div> |
312 | 312 | </div> |
313 | 313 | </div> |
314 | -<?php Event::fire('ticket.timeline.marble',array($TicketData));?> |
|
314 | +<?php Event::fire('ticket.timeline.marble', array($TicketData)); ?> |
|
315 | 315 | <div id="gifshow" style="display:none"> |
316 | 316 | <img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"> |
317 | 317 | </div> <!-- added 05/05/2016--> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | <ul class="nav nav-tabs"> |
325 | 325 | <li class="active"><a href="#General" data-toggle="tab" style="color:#27C116;" id="aa"><i class="fa fa-reply-all"> </i> {!! Lang::get('lang.reply') !!}</a></li> |
326 | 326 | <li><a href="#Internal" data-toggle="tab" style="color:#0495FF;" id="bb"><i class="fa fa-file-text"> </i> {!! Lang::get('lang.internal_notes') !!}</a></li> |
327 | - <?php Event::fire('timeline.tab.list',[$TicketData]); ?> |
|
327 | + <?php Event::fire('timeline.tab.list', [$TicketData]); ?> |
|
328 | 328 | <!-- <li><a href="#Reply" data-toggle="tab" style="color:orange;"><i class="fa fa-mail-forward" > </i> Forward</a></li> --> |
329 | 329 | </ul> |
330 | 330 | <div class="tab-content"> |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | {!!Form::close()!!} |
532 | 532 | </div> |
533 | 533 | </div> |
534 | - <?php Event::fire('timeline.tab.content',[$tickets]); ?> |
|
534 | + <?php Event::fire('timeline.tab.content', [$tickets]); ?> |
|
535 | 535 | </div> |
536 | 536 | </div> |
537 | 537 | <!-- ticket conversations --> |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | } |
550 | 550 | </style> |
551 | 551 | <ul class="pull-right" style="padding-right:40px" > |
552 | - <?php echo $conversations->setPath(url('/thread/' . $tickets->id))->render(); ?> |
|
552 | + <?php echo $conversations->setPath(url('/thread/'.$tickets->id))->render(); ?> |
|
553 | 553 | </ul> |
554 | 554 | |
555 | 555 | <div class="col-md-12" > |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | </span> <?php |
583 | 583 | $data = $ConvDate[0]; |
584 | 584 | } |
585 | - if($conversation->user_id != null) { |
|
585 | + if ($conversation->user_id != null) { |
|
586 | 586 | $role = $conversation->user; |
587 | 587 | } else { |
588 | 588 | $role = null; |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | <i class="fa fa-tag bg-purple" title="Posted by System"></i> |
595 | 595 | <?php |
596 | 596 | } else { |
597 | - if($conversation->user_id != null) { |
|
597 | + if ($conversation->user_id != null) { |
|
598 | 598 | if ($role->role == 'agent' || $role->role == 'admin') { |
599 | 599 | ?> |
600 | 600 | <i class="fa fa-mail-reply-all bg-yellow" title="Posted by Support Team"></i> |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | } |
612 | 612 | } |
613 | 613 | |
614 | - if($conversation->user_id != null) { |
|
614 | + if ($conversation->user_id != null) { |
|
615 | 615 | if ($conversation->is_internal) { |
616 | 616 | $color = '#A19CFF'; |
617 | 617 | // echo $color; |
@@ -660,11 +660,11 @@ discard block |
||
660 | 660 | <h3 class="timeline-header"> |
661 | 661 | <?php |
662 | 662 | |
663 | - if($conversation->user_id != null) { |
|
663 | + if ($conversation->user_id != null) { |
|
664 | 664 | if ($role->first_name == '' || $role->first_name == null) { |
665 | 665 | $usernam = $role->user_name; |
666 | 666 | } else { |
667 | - $usernam = $role->first_name . " " . $role->last_name; |
|
667 | + $usernam = $role->first_name." ".$role->last_name; |
|
668 | 668 | } |
669 | 669 | } else { |
670 | 670 | $usernam = Lang::get('lang.system'); |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | <i class="fa fa-clock-o bg-gray"></i> |
790 | 790 | </li> |
791 | 791 | <ul class="pull-right" style="padding-right:40px" > |
792 | - <?php echo $conversations->setPath(url('/thread/' . $tickets->id))->render(); ?> |
|
792 | + <?php echo $conversations->setPath(url('/thread/'.$tickets->id))->render(); ?> |
|
793 | 793 | </ul> |
794 | 794 | </ul> |
795 | 795 | </div><!-- /.col --> |
@@ -871,7 +871,7 @@ discard block |
||
871 | 871 | <div class="col-md-6"> |
872 | 872 | <div class="form-group"> |
873 | 873 | <label>{!! Lang::get('lang.priority') !!} <span class="text-red"> *</span></label> |
874 | - <?php $ticket_prioritys = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?> |
|
874 | + <?php $ticket_prioritys = App\Model\helpdesk\Ticket\Ticket_Priority::where('status', '=', 1)->get(); ?> |
|
875 | 875 | <select class="form-control" name="ticket_priority"> |
876 | 876 | @foreach($ticket_prioritys as $ticket_priority) |
877 | 877 | <option value="{!! $ticket_priority->priority_id !!}" <?php |
@@ -928,7 +928,7 @@ discard block |
||
928 | 928 | </div><!-- /.modal-dialog --> |
929 | 929 | </div><!-- /.modal --> |
930 | 930 | <?php } |
931 | - \Event::fire('ticket.detail.modelpopup',[$tickets]); |
|
931 | + \Event::fire('ticket.detail.modelpopup', [$tickets]); |
|
932 | 932 | ?> |
933 | 933 | <!-- Change Owner Modal --> |
934 | 934 | <div class="modal fade" id="ChangeOwner"> |
@@ -2123,7 +2123,7 @@ discard block |
||
2123 | 2123 | |
2124 | 2124 | } |
2125 | 2125 | var locktime = '<?php echo $var->collision_avoid; ?>' * 60 * 1000; |
2126 | - var ltf = '<?php echo $var->lock_ticket_frequency;?>'; |
|
2126 | + var ltf = '<?php echo $var->lock_ticket_frequency; ?>'; |
|
2127 | 2127 | if (locktime > 0 && ltf != 0) { |
2128 | 2128 | lockAjaxCall(locktime); |
2129 | 2129 | if (ltf == 2) { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if (Auth::user()->role == 'admin' || Auth::user()->role == 'agent') { |
48 | 48 | $todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->get()); |
49 | 49 | } else { |
50 | - $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); |
|
50 | + $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); |
|
51 | 51 | $todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->where('dept_id', '=', $dept->id)->count(); |
52 | 52 | } |
53 | 53 | ?> |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | $term = $_GET["term"]; |
4 | -$users = app\User::where('email', 'LIKE', '%' . $term . '%')->where('active', '=', 1)->where('role', '=', 'user')->get(); |
|
4 | +$users = app\User::where('email', 'LIKE', '%'.$term.'%')->where('active', '=', 1)->where('role', '=', 'user')->get(); |
|
5 | 5 | $json = array(); |
6 | 6 | |
7 | 7 | foreach ($users as $user) { |
8 | 8 | |
9 | 9 | $json[] = array( |
10 | 10 | 'value' => $user["email"], |
11 | - 'label' => 'Name: '.$user["first_name"] .' '.$user["last_name"].' | '.('Email: <'.$user["email"].'>'), |
|
11 | + 'label' => 'Name: '.$user["first_name"].' '.$user["last_name"].' | '.('Email: <'.$user["email"].'>'), |
|
12 | 12 | 'email' => $user["email"], |
13 | 13 | 'user_name' => $user["user_name"], |
14 | 14 | 'first_name' => $user["first_name"], |
@@ -225,7 +225,7 @@ |
||
225 | 225 | <label>{!! Lang::get('lang.priority') !!}:</label> |
226 | 226 | </div> |
227 | 227 | <div class="col-md-3"> |
228 | - <?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?> |
|
228 | + <?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status', '=', 1)->get(); ?> |
|
229 | 229 | {!! Form::select('priority', ['Priority'=>$Priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!} |
230 | 230 | </div> |
231 | 231 |
@@ -3,20 +3,20 @@ |
||
3 | 3 | Lang::get('lang.status')=>$status->name, |
4 | 4 | Lang::get('lang.priority')=>$priority->priority_desc, |
5 | 5 | Lang::get('lang.department')=>$dept123->name, |
6 | - Lang::get('lang.email')=>str_limit($user->email,30), |
|
6 | + Lang::get('lang.email')=>str_limit($user->email, 30), |
|
7 | 7 | Lang::get('lang.source')=>$ticket_source, |
8 | 8 | Lang::get('lang.help_topic')=>$help_topic->topic, |
9 | - Lang::get('lang.last_message')=>str_limit($username,30), |
|
9 | + Lang::get('lang.last_message')=>str_limit($username, 30), |
|
10 | 10 | Lang::get('lang.organization') => $LastResponse->getOrgWithLink(), |
11 | 11 | ]; |
12 | 12 | |
13 | - if($user->ban > 0){ |
|
13 | + if ($user->ban > 0) { |
|
14 | 14 | array_push($array, [Lang::get('lang.this_ticket_is_under_banned_user')=>'']); |
15 | 15 | } |
16 | - if($user->phone_number !=null){ |
|
16 | + if ($user->phone_number != null) { |
|
17 | 17 | array_push($array, [Lang::get('lang.phone')=>$user->phone_number]); |
18 | 18 | } |
19 | - if($user->mobile !=null){ |
|
19 | + if ($user->mobile != null) { |
|
20 | 20 | array_push($array, [Lang::get('lang.mobile')=>$user->mobile]); |
21 | 21 | } |
22 | 22 | $collection = collect($array); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first(); |
69 | 69 | |
70 | 70 | $ovadate = $overdue->created_at; |
71 | - $new_date = date_add($ovadate, date_interval_create_from_date_string($sla_plan->grace_period)) . '<br/><br/>'; |
|
71 | + $new_date = date_add($ovadate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br/><br/>'; |
|
72 | 72 | if (date('Y-m-d H:i:s') > $new_date) { |
73 | 73 | $j++; |
74 | 74 | //$value[] = $overdue; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | if (Auth::user()->role == 'admin' || Auth::user()->role == 'agent') { |
87 | 87 | $todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->get()); |
88 | 88 | } else { |
89 | - $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); |
|
89 | + $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); |
|
90 | 90 | $todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->where('dept_id', '=', $dept->id)->get()); |
91 | 91 | } |
92 | 92 | ?> |
@@ -176,9 +176,9 @@ discard block |
||
176 | 176 | $created_date = $start_date->created_at; |
177 | 177 | $created_date = explode(' ', $created_date); |
178 | 178 | $created_date = $created_date[0]; |
179 | - $start_date = date("m/d/Y", strtotime($created_date . ' -1 months')); |
|
179 | + $start_date = date("m/d/Y", strtotime($created_date.' -1 months')); |
|
180 | 180 | } else { |
181 | - $start_date = date("m/d/Y", strtotime(date("m/d/Y") . ' -1 months')); |
|
181 | + $start_date = date("m/d/Y", strtotime(date("m/d/Y").' -1 months')); |
|
182 | 182 | } |
183 | 183 | ?> |
184 | 184 | <script type="text/javascript"> |
@@ -95,10 +95,10 @@ discard block |
||
95 | 95 | <div class="col-md-2" style="width:20%;"> |
96 | 96 | <?php |
97 | 97 | if (Auth::user()->role == 'admin') { |
98 | - $todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereDate('tickets.duedate','=', \Carbon\Carbon::now()->format('Y-m-d'))->count(); |
|
98 | + $todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereDate('tickets.duedate', '=', \Carbon\Carbon::now()->format('Y-m-d'))->count(); |
|
99 | 99 | } else { |
100 | - $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); |
|
101 | - $todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereDate('tickets.duedate','=', \Carbon\Carbon::now()->format('Y-m-d'))->where('dept_id', '=', $dept->id)->count(); |
|
100 | + $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); |
|
101 | + $todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereDate('tickets.duedate', '=', \Carbon\Carbon::now()->format('Y-m-d'))->where('dept_id', '=', $dept->id)->count(); |
|
102 | 102 | } |
103 | 103 | ?> |
104 | 104 | <a href="{!! route('ticket.duetoday') !!}"> |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | $created_date = $start_date->created_at; |
133 | 133 | $created_date = explode(' ', $created_date); |
134 | 134 | $created_date = $created_date[0]; |
135 | - $start_date = date("m/d/Y", strtotime($created_date . ' -1 months')); |
|
135 | + $start_date = date("m/d/Y", strtotime($created_date.' -1 months')); |
|
136 | 136 | } else { |
137 | - $start_date = date("m/d/Y", strtotime(date("m/d/Y") . ' -1 months')); |
|
137 | + $start_date = date("m/d/Y", strtotime(date("m/d/Y").' -1 months')); |
|
138 | 138 | } |
139 | 139 | ?> |
140 | 140 | <script type="text/javascript"> |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | <table class="table table-hover table-bordered"> |
198 | 198 | <?php |
199 | 199 | // dd($department); |
200 | - $flattened = $department->flatMap(function ($values) { |
|
200 | + $flattened = $department->flatMap(function($values) { |
|
201 | 201 | return $values->keyBy('status'); |
202 | 202 | }); |
203 | 203 | $statuses = $flattened->keys(); |