@@ -52,7 +52,10 @@ |
||
52 | 52 | </thead> |
53 | 53 | <tbody> |
54 | 54 | @foreach($statuss as $status) |
55 | - <?php if ($status->name == 'Deleted') continue; ?> |
|
55 | + <?php if ($status->name == 'Deleted') { |
|
56 | + continue; |
|
57 | +} |
|
58 | +?> |
|
56 | 59 | <tr> |
57 | 60 | <td>{!! $status->name !!}</td> |
58 | 61 | <td>{!! $status->sort !!}</td> |
@@ -93,7 +93,10 @@ |
||
93 | 93 | </tr> |
94 | 94 | <!-- Foreach @var templates as @var template --> |
95 | 95 | @foreach($directories as $dir) |
96 | - <?php if ($dir === '.' or $dir === '..' or $dir === 'notifications') continue; ?> |
|
96 | + <?php if ($dir === '.' or $dir === '..' or $dir === 'notifications') { |
|
97 | + continue; |
|
98 | +} |
|
99 | +?> |
|
97 | 100 | <?php //dd($directory); ?> |
98 | 101 | <tr> |
99 | 102 | <!-- Template Name with Link to Edit page along Id --> |
@@ -65,7 +65,10 @@ |
||
65 | 65 | <!-- Foreach @var templates as @var template --> |
66 | 66 | |
67 | 67 | @foreach($templates as $template) |
68 | - <?php if ($template === '.' or $template === '..') continue; ?> |
|
68 | + <?php if ($template === '.' or $template === '..') { |
|
69 | + continue; |
|
70 | +} |
|
71 | +?> |
|
69 | 72 | <tr> |
70 | 73 | <!-- Template Name with Link to Edit page along Id --> |
71 | 74 | <td><a href="{{route('template.read',[$template,$directory])}}"><?php $parts = explode('.',$template); $names = $parts[0]; $name = str_replace('-', ' ', $names); $cname = ucfirst($name); echo $cname?></a></td> |
@@ -290,8 +290,9 @@ |
||
290 | 290 | if ($tickets->source > 0) { |
291 | 291 | $ticket_source = App\Model\helpdesk\Ticket\Ticket_source::where('id', '=', $tickets->source)->first(); |
292 | 292 | $ticket_source = $ticket_source->value; |
293 | - } else |
|
294 | - $ticket_source = $tickets->source; |
|
293 | + } else { |
|
294 | + $ticket_source = $tickets->source; |
|
295 | + } |
|
295 | 296 | ?> |
296 | 297 | <table class="table table-hover"> |
297 | 298 | <div id="refresh3"> |
@@ -133,9 +133,9 @@ discard block |
||
133 | 133 | { |
134 | 134 | $ticket_source = App\Model\Ticket\Ticket_source::where('id','=',$ticket->source)->first(); |
135 | 135 | $ticket_source = $ticket_source->value; |
136 | - } |
|
137 | - else |
|
138 | - $ticket_source = $ticket->source; |
|
136 | + } else { |
|
137 | + $ticket_source = $ticket->source; |
|
138 | + } |
|
139 | 139 | |
140 | 140 | ?> |
141 | 141 | <table class="table table-hover"> |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | <li> |
379 | 379 | <?php if($conversation->is_internal) { ?> |
380 | 380 | <i class="fa fa-tag bg-purple" title="Posted by System"></i> |
381 | - <?php }else{ if ($role->role == 'agent' || $role->role == 'admin') { ?> |
|
381 | + <?php } else{ if ($role->role == 'agent' || $role->role == 'admin') { ?> |
|
382 | 382 | <i class="fa fa-mail-reply-all bg-yellow" title="Posted by Support Team"></i> |
383 | 383 | <?php } elseif ($role->role == 'user') { ?> |
384 | 384 | <i class="fa fa-user bg-aqua" title="Posted by Customer"></i> |
@@ -388,8 +388,7 @@ discard block |
||
388 | 388 | $attachment = App\Model\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->first(); |
389 | 389 | if($attachment == null ) { |
390 | 390 | $body = $conversation->body; |
391 | - } |
|
392 | - else { |
|
391 | + } else { |
|
393 | 392 | // dd($attachment->file); |
394 | 393 | // print $attachment->file; |
395 | 394 | // header("Content-type: image/jpeg"); |
@@ -407,11 +406,10 @@ discard block |
||
407 | 406 | if($attachment->type == 'pdf') |
408 | 407 | { |
409 | 408 | // echo "hello"; |
410 | - }elseif($attachment->type == 'docx') |
|
409 | + } elseif($attachment->type == 'docx') |
|
411 | 410 | { |
412 | 411 | // echo "hello"; |
413 | - } |
|
414 | - else |
|
412 | + } else |
|
415 | 413 | { |
416 | 414 | $image = imagecreatefromstring($attachment->file); |
417 | 415 | ob_start(); |
@@ -429,8 +427,7 @@ discard block |
||
429 | 427 | $end = "</head>"; |
430 | 428 | if(strpos($string,$start) == false || strpos($string,$start) == false) |
431 | 429 | { |
432 | - } |
|
433 | - else |
|
430 | + } else |
|
434 | 431 | { |
435 | 432 | $ini = strpos($string,$start); |
436 | 433 | $ini += strlen($start); |
@@ -454,8 +451,7 @@ discard block |
||
454 | 451 | $end = "</head>"; |
455 | 452 | if(strpos($string,$start) == false || strpos($string,$start) == false) |
456 | 453 | { |
457 | - } |
|
458 | - else |
|
454 | + } else |
|
459 | 455 | { |
460 | 456 | $ini = strpos($string,$start); |
461 | 457 | $ini += strlen($start); |
@@ -473,8 +469,7 @@ discard block |
||
473 | 469 | { |
474 | 470 | $color = '#046380'; |
475 | 471 | echo $color; |
476 | - } |
|
477 | - else |
|
472 | + } else |
|
478 | 473 | { |
479 | 474 | if ($role->role == 'agent' || $role->role == 'admin') |
480 | 475 | { |
@@ -538,8 +533,7 @@ discard block |
||
538 | 533 | |
539 | 534 | |
540 | 535 | echo '<li style="background-color:#f4f4f4;"><span class="mailbox-attachment-icon has-img">'.$var.'</span><div class="mailbox-attachment-info"><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></div></li>'; |
541 | - } |
|
542 | - else |
|
536 | + } else |
|
543 | 537 | { |
544 | 538 | $var = '<a style="max-width:200px;height:133px;color:#666;" href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><span class="mailbox-attachment-icon" style="background-color:#fff;">'.strtoupper($attachment->type).'</span><div class="mailbox-attachment-info"><span ><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></span></div></a>'; |
545 | 539 | echo '<li style="background-color:#f4f4f4;">'.$var.'</li>'; |
@@ -155,9 +155,9 @@ discard block |
||
155 | 155 | { |
156 | 156 | $ticket_source = App\Model\Ticket\Ticket_source::where('id','=',$tickets->source)->first(); |
157 | 157 | $ticket_source = $ticket_source->value; |
158 | - } |
|
159 | - else |
|
160 | - $ticket_source = $tickets->source; |
|
158 | + } else { |
|
159 | + $ticket_source = $tickets->source; |
|
160 | + } |
|
161 | 161 | |
162 | 162 | ?> |
163 | 163 | <table class="table table-hover"> |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | <li> |
420 | 420 | <?php if($conversation->is_internal) { ?> |
421 | 421 | <i class="fa fa-tag bg-purple" title="Posted by System"></i> |
422 | - <?php }else{ if ($role->role == 'agent' || $role->role == 'admin') { ?> |
|
422 | + <?php } else{ if ($role->role == 'agent' || $role->role == 'admin') { ?> |
|
423 | 423 | <i class="fa fa-mail-reply-all bg-yellow" title="Posted by Support Team"></i> |
424 | 424 | <?php } elseif ($role->role == 'user') { ?> |
425 | 425 | <i class="fa fa-user bg-aqua" title="Posted by Customer"></i> |
@@ -429,8 +429,7 @@ discard block |
||
429 | 429 | $attachment = App\Model\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->first(); |
430 | 430 | if($attachment == null ) { |
431 | 431 | $body = $conversation->body; |
432 | - } |
|
433 | - else { |
|
432 | + } else { |
|
434 | 433 | // dd($attachment->file); |
435 | 434 | // print $attachment->file; |
436 | 435 | // header("Content-type: image/jpeg"); |
@@ -448,11 +447,10 @@ discard block |
||
448 | 447 | if($attachment->type == 'pdf') |
449 | 448 | { |
450 | 449 | // echo "hello"; |
451 | - }elseif($attachment->type == 'docx') |
|
450 | + } elseif($attachment->type == 'docx') |
|
452 | 451 | { |
453 | 452 | // echo "hello"; |
454 | - } |
|
455 | - else |
|
453 | + } else |
|
456 | 454 | { |
457 | 455 | $image = imagecreatefromstring($attachment->file); |
458 | 456 | ob_start(); |
@@ -470,8 +468,7 @@ discard block |
||
470 | 468 | $end = "</head>"; |
471 | 469 | if(strpos($string,$start) == false || strpos($string,$start) == false) |
472 | 470 | { |
473 | - } |
|
474 | - else |
|
471 | + } else |
|
475 | 472 | { |
476 | 473 | $ini = strpos($string,$start); |
477 | 474 | $ini += strlen($start); |
@@ -495,8 +492,7 @@ discard block |
||
495 | 492 | $end = "</head>"; |
496 | 493 | if(strpos($string,$start) == false || strpos($string,$start) == false) |
497 | 494 | { |
498 | - } |
|
499 | - else |
|
495 | + } else |
|
500 | 496 | { |
501 | 497 | $ini = strpos($string,$start); |
502 | 498 | $ini += strlen($start); |
@@ -514,8 +510,7 @@ discard block |
||
514 | 510 | { |
515 | 511 | $color = '#046380'; |
516 | 512 | echo $color; |
517 | - } |
|
518 | - else |
|
513 | + } else |
|
519 | 514 | { |
520 | 515 | if ($role->role == 'agent' || $role->role == 'admin') |
521 | 516 | { |
@@ -567,8 +562,7 @@ discard block |
||
567 | 562 | ob_end_clean(); |
568 | 563 | $var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img src="data:image/jpg;base64,' . base64_encode($data) . '"/></a>'; |
569 | 564 | echo '<li><span class="mailbox-attachment-icon has-img">'.$var.'</span></li>'; |
570 | - } |
|
571 | - else |
|
565 | + } else |
|
572 | 566 | { |
573 | 567 | $var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank">'.$attachment->name.'</a>'; |
574 | 568 | echo '<li>'.$var.'</li>'; |
@@ -203,8 +203,7 @@ discard block |
||
203 | 203 | $end = "</head>"; |
204 | 204 | if(strpos($string,$start) == false || strpos($string,$start) == false) |
205 | 205 | { |
206 | - } |
|
207 | - else |
|
206 | + } else |
|
208 | 207 | { |
209 | 208 | $ini = strpos($string,$start); |
210 | 209 | $ini += strlen($start); |
@@ -221,8 +220,7 @@ discard block |
||
221 | 220 | $end = "</head>"; |
222 | 221 | if(strpos($string,$start) == false || strpos($string,$start) == false) |
223 | 222 | { |
224 | - } |
|
225 | - else |
|
223 | + } else |
|
226 | 224 | { |
227 | 225 | $ini = strpos($string,$start); |
228 | 226 | $ini += strlen($start); |
@@ -307,8 +305,7 @@ discard block |
||
307 | 305 | |
308 | 306 | |
309 | 307 | echo '<li style="background-color:#f4f4f4;"><span class="mailbox-attachment-icon has-img">'.$var.'</span><div class="mailbox-attachment-info"><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></div></li>'; |
310 | - } |
|
311 | - else |
|
308 | + } else |
|
312 | 309 | { |
313 | 310 | $var = '<a style="max-width:200px;height:133px;color:#666;" href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><span class="mailbox-attachment-icon" style="background-color:#fff;">'.strtoupper($attachment->type).'</span><div class="mailbox-attachment-info"><span ><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></span></div></a>'; |
314 | 311 | echo '<li style="background-color:#f4f4f4;">'.$var.'</li>'; |
@@ -26,7 +26,10 @@ |
||
26 | 26 | |
27 | 27 | <ul class="dropdown-menu" id='cc_page'> |
28 | 28 | @foreach($statuses as $status) |
29 | - <?php if ($status->name == 'Deleted' or $status->name == 'Accepted') continue; ?> |
|
29 | + <?php if ($status->name == 'Deleted' or $status->name == 'Accepted') { |
|
30 | + continue; |
|
31 | +} |
|
32 | +?> |
|
30 | 33 | <li class="search_r"><a href="#" onclick="changeStatus({!! $status->id !!})"><i class="{!! $status->icon_class !!}" style="color:#FFD600;"> </i>{!! $status->name !!}</a> |
31 | 34 | </li> |
32 | 35 | @endforeach |