Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                         }
297 297
                     }
298 298
                     if ($i > 0) {
299
-                        echo "<hr style='border-top: 1px dotted #FFFFFF;margin-top:0px;margin-bottom:0px;background-color:#8B8C90;'><h4 class='box-title'><b>" . $i . " </b> Attachments</h4>";
299
+                        echo "<hr style='border-top: 1px dotted #FFFFFF;margin-top:0px;margin-bottom:0px;background-color:#8B8C90;'><h4 class='box-title'><b>".$i." </b> Attachments</h4>";
300 300
                     }
301 301
                     ?>
302 302
                     <ul class='mailbox-attachments clearfix'>
@@ -305,17 +305,17 @@  discard block
 block discarded – undo
305 305
                             $size = $attachment->size;
306 306
                             $units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
307 307
                             $power = $size > 0 ? floor(log($size, 1024)) : 0;
308
-                            $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power];
308
+                            $value = number_format($size / pow(1024, $power), 2, '.', ',').' '.$units[$power];
309 309
                             if ($attachment->poster == 'ATTACHMENT') {
310 310
                                 if (mime($attachment->type) == true) {
311
-                                    $var = '<a href="' . URL::route('image', array('image_id' => $attachment->id)) . '" target="_blank"><img style="max-width:200px;height:133px;" src="data:image/jpg;base64,' . $attachment->file . '"/></a>';
311
+                                    $var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img style="max-width:200px;height:133px;" src="data:image/jpg;base64,'.$attachment->file.'"/></a>';
312 312
 
313
-                                    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>';
313
+                                    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>';
314 314
                                 } else {
315 315
                                     //$var = '<a href="' . URL::route('image', array('image_id' => $attachment->id)) . '" target="_blank"><img style="max-width:200px;height:133px;" src="data:'.$attachment->type.';base64,' . base64_encode($data) . '"/></a>';
316
-                                    $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; font-size:18px;">' . 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>';
316
+                                    $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; font-size:18px;">'.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>';
317 317
 
318
-                                    echo '<li style="background-color:#f4f4f4;">' . $var . '</li>';
318
+                                    echo '<li style="background-color:#f4f4f4;">'.$var.'</li>';
319 319
                                 }
320 320
                             }
321 321
                         }
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 <?php }
334 334
 ?>
335 335
 <div class="pull-right" style="margin-top:-30px;margin-bottom:-30px">
336
-    <?php echo $conversations->setPath(url('check_ticket/{' . $id . '}'))->render(); ?>
336
+    <?php echo $conversations->setPath(url('check_ticket/{'.$id.'}'))->render(); ?>
337 337
 </div>
338 338
 <br/><br/>
339 339
 @if(Session::has('success1'))
Please login to merge, or discard this patch.
resources/views/themes/default1/client/helpdesk/mytickets.blade.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                                     $string = $stringCut.'....';
79 79
                                 }
80 80
                                 $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)
81
-                                    ->where('user_id', '!=' , null)
81
+                                    ->where('user_id', '!=', null)
82 82
                                     ->max('id');
83 83
                                 $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
84 84
                                 $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                                     $username = $LastResponse->user_name;
88 88
                                 } else {
89 89
                                     $rep = "#000";
90
-                                    $username = $LastResponse->first_name . " " . $LastResponse->last_name;
90
+                                    $username = $LastResponse->first_name." ".$LastResponse->last_name;
91 91
                                     if ($LastResponse->first_name == null || $LastResponse->last_name == null) {
92 92
                                         $username = $LastResponse->user_name;
93 93
                                     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                                 $string = strip_tags($title->title);
165 165
                                 if (strlen($string) > 40) {
166 166
                                     $stringCut = substr($string, 0, 40);
167
-                                    $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...';
167
+                                    $string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
168 168
                                 }
169 169
                                 $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
170 170
                                 $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                                     $username = $LastResponse->user_name;
175 175
                                 } else {
176 176
                                     $rep = "#000";
177
-                                    $username = $LastResponse->first_name . " " . $LastResponse->last_name;
177
+                                    $username = $LastResponse->first_name." ".$LastResponse->last_name;
178 178
                                     if ($LastResponse->first_name == null || $LastResponse->last_name == null) {
179 179
                                         $username = $LastResponse->user_name;
180 180
                                     }
Please login to merge, or discard this patch.
views/themes/default1/client/helpdesk/guest-user/checkticket.blade.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 @extends('themes.default1.client.layout.client')
2
-<?php $user = App\User::where('id','=',$tickets->user_id)->first();?>
2
+<?php $user = App\User::where('id', '=', $tickets->user_id)->first(); ?>
3 3
 
4 4
 @section('nav1')
5 5
 class="active"
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
                                 <section class="content"  id="refresh">
77 77
                                     <div class="col-md-12"> 
78 78
                                         <?php 
79
-                                        $priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();
79
+                                        $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first();
80 80
                                         ?>
81 81
                                         <div class="callout callout-{!! $priority->priority_color !!}">
82 82
                                             <div class="row">
83 83
                                                 <div class="col-md-3"> 
84 84
                                                 <?php
85 85
                                                 $sla = $tickets->sla;
86
-                                                $SlaPlan = App\Model\Manage\Sla_plan::where('id','=',1)->first();?>
86
+                                                $SlaPlan = App\Model\Manage\Sla_plan::where('id', '=', 1)->first(); ?>
87 87
                                                     <b>SLA Plan: {{$SlaPlan->grace_period}} </b> 
88 88
                                                 </div>
89 89
                                                 <div class="col-md-3"> 
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
                                                     ?>
100 100
                                                 </div>
101 101
                                                 <div class="col-md-3">
102
-                                                <?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->get();?>
102
+                                                <?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
103 103
                                                 @foreach($response as $last)
104
-                                                <?php $ResponseDate  = $last->created_at; ?>
104
+                                                <?php $ResponseDate = $last->created_at; ?>
105 105
                                                 @endforeach
106 106
                                                     <b>Last Response: </b> {{date_format($ResponseDate, 'd/m/Y H:i:s')}} 
107 107
                                                 </div>
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
                                     <div class="col-md-6"> 
112 112
                                         <table class="table table-hover">
113 113
                                             <!-- <tr><th></th><th></th></tr> -->
114
-                                            <tr><td><b>Status:</b></td>       <?php $status = App\Model\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?><td title="{{$status->properties}}">{{$status->state}}</td></tr>
115
-                                            <tr><td><b>Priority:</b></td>     <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?><td title="{{$priority->priority_desc}}">{{$priority->priority}}</td></tr>
116
-                                            <tr><td><b>Department:</b></td>   <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->department}}</td></tr>                                            
114
+                                            <tr><td><b>Status:</b></td>       <?php $status = App\Model\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?><td title="{{$status->properties}}">{{$status->state}}</td></tr>
115
+                                            <tr><td><b>Priority:</b></td>     <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?><td title="{{$priority->priority_desc}}">{{$priority->priority}}</td></tr>
116
+                                            <tr><td><b>Department:</b></td>   <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->department}}</td></tr>                                            
117 117
                                             
118 118
                                         </table>
119 119
                                         <!-- </div> -->
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                                         <!-- <div class="callout callout-success"> -->
123 123
                                         <table class="table table-hover">
124 124
                                             <!-- <tr><th></th><th></th></tr> -->
125
-                                            <tr><td><b>Help Topic:</b></td>     <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
125
+                                            <tr><td><b>Help Topic:</b></td>     <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
126 126
                                             <tr><td><b>Last Message:</b></td>   <td>{{$last->poster}}</td></tr>
127 127
                                         </table>
128 128
                                     </div>
@@ -305,18 +305,18 @@  discard block
 block discarded – undo
305 305
                                     <!-- The time line -->
306 306
                                     <ul class="timeline">
307 307
                                         <!-- timeline time label -->
308
-                                        <?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->paginate(2);
308
+                                        <?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->paginate(2);
309 309
                                         foreach ($conversations as $conversation) { 
310 310
                                         ?>
311 311
                                             <li class="time-label">
312 312
                                                     <?php 
313 313
                                                     $ConvDate1 = $conversation->created_at;
314
-                                                    $ConvDate = explode(' ',$ConvDate1);
314
+                                                    $ConvDate = explode(' ', $ConvDate1);
315 315
 
316 316
                                                     $date = $ConvDate[0];
317 317
                                                     $time = $ConvDate[1];
318 318
                                                     $time = substr($time, 0, -3);
319
-                                                    if(isset($data) && $date==$data){ 
319
+                                                    if (isset($data) && $date == $data) { 
320 320
                                                     } else {
321 321
                                                         ?> <span class="bg-green">
322 322
                                                         {{date_format($conversation->created_at, 'd/m/Y')}}
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
                                                     ?>
327 327
                                             </li>
328 328
                                             <li>
329
-                                            <?php if($conversation->staff_id > 0) { ?>
329
+                                            <?php if ($conversation->staff_id > 0) { ?>
330 330
                                                 <i class="fa fa-group bg-yellow" title="Posted by Support Team"></i>
331
-                                            <?php } elseif($conversation->user_id > 0) { ?>   
331
+                                            <?php } elseif ($conversation->user_id > 0) { ?>   
332 332
                                                 <i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
333 333
                                             <?php } else { ?>   
334 334
                                                 <i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
                                             <i class="fa fa-clock-o bg-gray"></i>
348 348
                                         </li>
349 349
                                         <ul class="pull-right">
350
-                                            <?php echo $conversations->setPath( url('/thread/'.'1'))->render(); ?>
350
+                                            <?php echo $conversations->setPath(url('/thread/'.'1'))->render(); ?>
351 351
                                         </ul>
352 352
                                     </ul>
353 353
                                 </div><!-- /.col -->
Please login to merge, or discard this patch.
views/themes/default1/client/helpdesk/guest-user/checkticket2.blade.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 @extends('themes.default1.client.layout.client')
2
-<?php $user = App\User::where('id','=',$tickets->user_id)->first();?>
2
+<?php $user = App\User::where('id', '=', $tickets->user_id)->first(); ?>
3 3
 
4 4
 @section('nav1')
5 5
 class="active"
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
                                 <section class="content"  id="refresh">
77 77
                                     <div class="col-md-12"> 
78 78
                                         <?php 
79
-                                        $priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();
79
+                                        $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first();
80 80
                                         ?>
81 81
                                         <div class="callout callout-{!! $priority->priority_color !!}">
82 82
                                             <div class="row">
83 83
                                                 <div class="col-md-3"> 
84 84
                                                 <?php
85 85
                                                 $sla = $tickets->sla;
86
-                                                $SlaPlan = App\Model\Manage\Sla_plan::where('id','=',1)->first();?>
86
+                                                $SlaPlan = App\Model\Manage\Sla_plan::where('id', '=', 1)->first(); ?>
87 87
                                                     <b>SLA Plan: {{$SlaPlan->grace_period}} </b> 
88 88
                                                 </div>
89 89
                                                 <div class="col-md-3"> 
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
                                                     ?>
100 100
                                                 </div>
101 101
                                                 <div class="col-md-3">
102
-                                                <?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->get();?>
102
+                                                <?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
103 103
                                                 @foreach($response as $last)
104
-                                                <?php $ResponseDate  = $last->created_at; ?>
104
+                                                <?php $ResponseDate = $last->created_at; ?>
105 105
                                                 @endforeach
106 106
                                                     <b>Last Response: </b> {{date_format($ResponseDate, 'd/m/Y H:i:s')}} 
107 107
                                                 </div>
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
                                     <div class="col-md-6"> 
112 112
                                         <table class="table table-hover">
113 113
                                             <!-- <tr><th></th><th></th></tr> -->
114
-                                            <tr><td><b>Status:</b></td>       <?php $status = App\Model\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?><td title="{{$status->properties}}">{{$status->state}}</td></tr>
115
-                                            <tr><td><b>Priority:</b></td>     <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?><td title="{{$priority->priority_desc}}">{{$priority->priority}}</td></tr>
116
-                                            <tr><td><b>Department:</b></td>   <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->department}}</td></tr>                                            
114
+                                            <tr><td><b>Status:</b></td>       <?php $status = App\Model\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?><td title="{{$status->properties}}">{{$status->state}}</td></tr>
115
+                                            <tr><td><b>Priority:</b></td>     <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?><td title="{{$priority->priority_desc}}">{{$priority->priority}}</td></tr>
116
+                                            <tr><td><b>Department:</b></td>   <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->department}}</td></tr>                                            
117 117
                                             
118 118
                                         </table>
119 119
                                         <!-- </div> -->
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                                         <!-- <div class="callout callout-success"> -->
123 123
                                         <table class="table table-hover">
124 124
                                             <!-- <tr><th></th><th></th></tr> -->
125
-                                            <tr><td><b>Help Topic:</b></td>     <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
125
+                                            <tr><td><b>Help Topic:</b></td>     <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
126 126
                                             <tr><td><b>Last Message:</b></td>   <td>{{$last->poster}}</td></tr>
127 127
                                         </table>
128 128
                                     </div>
@@ -305,18 +305,18 @@  discard block
 block discarded – undo
305 305
                                     <!-- The time line -->
306 306
                                     <ul class="timeline">
307 307
                                         <!-- timeline time label -->
308
-                                        <?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->paginate(2);
308
+                                        <?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->paginate(2);
309 309
                                         foreach ($conversations as $conversation) { 
310 310
                                         ?>
311 311
                                             <li class="time-label">
312 312
                                                     <?php 
313 313
                                                     $ConvDate1 = $conversation->created_at;
314
-                                                    $ConvDate = explode(' ',$ConvDate1);
314
+                                                    $ConvDate = explode(' ', $ConvDate1);
315 315
 
316 316
                                                     $date = $ConvDate[0];
317 317
                                                     $time = $ConvDate[1];
318 318
                                                     $time = substr($time, 0, -3);
319
-                                                    if(isset($data) && $date==$data){ 
319
+                                                    if (isset($data) && $date == $data) { 
320 320
                                                     } else {
321 321
                                                         ?> <span class="bg-green">
322 322
                                                         {{date_format($conversation->created_at, 'd/m/Y')}}
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
                                                     ?>
327 327
                                             </li>
328 328
                                             <li>
329
-                                            <?php if($conversation->staff_id > 0) { ?>
329
+                                            <?php if ($conversation->staff_id > 0) { ?>
330 330
                                                 <i class="fa fa-group bg-yellow" title="Posted by Support Team"></i>
331
-                                            <?php } elseif($conversation->user_id > 0) { ?>   
331
+                                            <?php } elseif ($conversation->user_id > 0) { ?>   
332 332
                                                 <i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
333 333
                                             <?php } else { ?>   
334 334
                                                 <i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
                                             <i class="fa fa-clock-o bg-gray"></i>
348 348
                                         </li>
349 349
                                         <ul class="pull-right">
350
-                                            <?php echo $conversations->setPath( url('/thread/'.'1'))->render(); ?>
350
+                                            <?php echo $conversations->setPath(url('/thread/'.'1'))->render(); ?>
351 351
                                         </ul>
352 352
                                     </ul>
353 353
                                 </div><!-- /.col -->
Please login to merge, or discard this patch.
views/themes/default1/client/helpdesk/guest-user/mytickets.blade.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
                 <?php
36 36
 $counted = count(App\Model\Ticket\Tickets::where('status', '=', 1)->get());
37 37
 if ($counted < 20) {
38
-	echo $counted . "/" . $counted;
38
+    echo $counted . "/" . $counted;
39 39
 } else {
40
-	echo "20/" . $counted;
40
+    echo "20/" . $counted;
41 41
 }
42 42
 ?>
43 43
             </div>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
                 <?php
36 36
 $counted = count(App\Model\Ticket\Tickets::where('status', '=', 1)->get());
37 37
 if ($counted < 20) {
38
-	echo $counted . "/" . $counted;
38
+	echo $counted."/".$counted;
39 39
 } else {
40
-	echo "20/" . $counted;
40
+	echo "20/".$counted;
41 41
 }
42 42
 ?>
43 43
             </div>
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 </th>
69 69
                 </thead>
70 70
                 <tbody id="hello">
71
-                    <?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->paginate(20);?>
71
+                    <?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->paginate(20); ?>
72 72
 
73 73
                      @foreach ($tickets  as $ticket )
74 74
                     <tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
@@ -83,22 +83,22 @@  discard block
 block discarded – undo
83 83
                         $TicketData = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
84 84
                         $TicketDatarow = App\Model\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
85 85
                         $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); 
86
-                        if($LastResponse->role == "user") {
86
+                        if ($LastResponse->role == "user") {
87 87
                             $rep = "#F39C12";
88 88
                             $username = $LastResponse->user_name;
89
-                            } else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name; 
90
-                            if($LastResponse->first_name==null || $LastResponse->last_name==null) {
89
+                            } else { $rep = "#000"; $username = $LastResponse->first_name." ".$LastResponse->last_name; 
90
+                            if ($LastResponse->first_name == null || $LastResponse->last_name == null) {
91 91
                                 $username = $LastResponse->user_name;
92 92
                             }}   
93 93
                         $titles = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
94 94
                         $count = count($titles);
95
-                        foreach($titles as $title)
95
+                        foreach ($titles as $title)
96 96
                         {
97 97
                             $title = $title;
98 98
                         }   ?>
99 99
                         <td class="mailbox-name"><a href="{!! URL('myticket',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}}   </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
100 100
                         <td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
101
-                        <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
101
+                        <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first(); ?>
102 102
                         <td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
103 103
                         
104 104
                 <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td>
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 </tbody>
110 110
             </table><!-- /.table -->
111 111
             <div class="pull-right">
112
-                <?php echo $tickets->setPath(url('/ticket'))->render();?>&nbsp;
112
+                <?php echo $tickets->setPath(url('/ticket'))->render(); ?>&nbsp;
113 113
             </div>
114 114
         </div><!-- /.mail-box-messages -->
115 115
     </div><!-- /.box-body -->
Please login to merge, or discard this patch.
views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php 3 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -396,25 +396,25 @@  discard block
 block discarded – undo
396 396
                         <?php
397 397
 $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->paginate(10);
398 398
 foreach ($conversations as $conversation) {
399
-	?>
399
+    ?>
400 400
                             <li class="time-label">
401 401
                                 <?php
402 402
 $ConvDate1 = $conversation->created_at;
403
-	$ConvDate = explode(' ', $ConvDate1);
403
+    $ConvDate = explode(' ', $ConvDate1);
404 404
 
405
-	$date = $ConvDate[0];
406
-	$time = $ConvDate[1];
407
-	$time = substr($time, 0, -3);
408
-	if (isset($data) && $date == $data) {
405
+    $date = $ConvDate[0];
406
+    $time = $ConvDate[1];
407
+    $time = substr($time, 0, -3);
408
+    if (isset($data) && $date == $data) {
409 409
 
410
-	} else {
411
-		?> <span class="bg-green">
410
+    } else {
411
+        ?> <span class="bg-green">
412 412
                                         {{date_format($conversation->created_at, 'd/m/Y')}}
413 413
                                     </span> <?php
414 414
 $data = $ConvDate[0];
415
-	}
415
+    }
416 416
     $role = App\User::where('id','=',$conversation->user_id)->first();
417
-	?>
417
+    ?>
418 418
                             </li>
419 419
                             <li>
420 420
                                 <?php if($conversation->is_internal) { ?>
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
         // $body = explode($attachment->file, $body);
488 488
         // $body = $body[0];
489 489
     }
490
-	?>
490
+    ?>
491 491
 
492 492
     <?php
493 493
                             $string = $body;                        
Please login to merge, or discard this patch.
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 @extends('themes.default1.client.layout.client')
2
-<?php $user = App\User::where('id', '=', $tickets->user_id)->first();?>
3
-<?php $assignedto = App\User::where('id', '=', $tickets->assigned_to)->first();?>
2
+<?php $user = App\User::where('id', '=', $tickets->user_id)->first(); ?>
3
+<?php $assignedto = App\User::where('id', '=', $tickets->assigned_to)->first(); ?>
4 4
 
5 5
 @section('sidebar')
6 6
 <li class="header">TICKET INFORMATION</li>
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
 ?>
113 113
                             </div>
114 114
                             <div class="col-md-3">
115
-                                <?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get();?>
115
+                                <?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
116 116
                                 @foreach($response as $last)
117
-                                <?php $ResponseDate = $last->created_at;?>
117
+                                <?php $ResponseDate = $last->created_at; ?>
118 118
                                 @endforeach
119 119
                                 <b>Last Response: </b> {{ UTC::usertimezone($ResponseDate)}}
120 120
                             </div>
@@ -131,29 +131,29 @@  discard block
 block discarded – undo
131 131
                 <div id="hide2">
132 132
                 <div class="col-md-6">
133 133
                     <table class="table table-hover"id="refresh">
134
-                        <tr><td><b>Status:</b></td>       <div><?php $status = App\Model\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first();?><td title="{{$status->properties}}">{{$status->name}}</td></div></tr>
135
-                        <tr><td><b>Priority:</b></td>     <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first();?><td title="{{$priority->priority_desc}}">{{$priority->priority_desc}}</td></tr>
136
-                        <tr><td><b>Department:</b></td>   <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
134
+                        <tr><td><b>Status:</b></td>       <div><?php $status = App\Model\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?><td title="{{$status->properties}}">{{$status->name}}</td></div></tr>
135
+                        <tr><td><b>Priority:</b></td>     <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?><td title="{{$priority->priority_desc}}">{{$priority->priority_desc}}</td></tr>
136
+                        <tr><td><b>Department:</b></td>   <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
137 137
                         <tr><td><b>Email:</b></td>        <td>{{$user->email}}</td></tr>
138 138
                     </table>
139 139
                 </div>
140 140
                 <div class="col-md-6">
141 141
 <?php 
142
-    $user_phone = App\User::where('mobile','=',$thread->user_id)->first();
142
+    $user_phone = App\User::where('mobile', '=', $thread->user_id)->first();
143 143
 
144 144
     $TicketData = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $thread->ticket_id)->max('id');
145 145
                         $TicketDatarow = App\Model\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
146 146
                         $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); 
147
-                        if($LastResponse->role == "user") {
147
+                        if ($LastResponse->role == "user") {
148 148
                             $rep = "#F39C12";
149 149
                             $username = $LastResponse->user_name;
150
-                            } else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name; 
151
-                            if($LastResponse->first_name==null || $LastResponse->last_name==null) {
150
+                            } else { $rep = "#000"; $username = $LastResponse->first_name." ".$LastResponse->last_name; 
151
+                            if ($LastResponse->first_name == null || $LastResponse->last_name == null) {
152 152
                                 $username = $LastResponse->user_name;
153 153
                             }}   
154
-                        if($tickets->source > 0)
154
+                        if ($tickets->source > 0)
155 155
                         {
156
-                            $ticket_source = App\Model\Ticket\Ticket_source::where('id','=',$tickets->source)->first();
156
+                            $ticket_source = App\Model\Ticket\Ticket_source::where('id', '=', $tickets->source)->first();
157 157
                             $ticket_source = $ticket_source->value;
158 158
                         }   
159 159
                         else
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                     <table class="table table-hover">
164 164
                         @if($user_phone != null)<tr><td><b>Phone:</b></td>          <td>{{$user_phone->mobile}}</td></tr>@endif
165 165
                         <tr><td><b>Source:</b></td>         <td>{{$ticket_source}}</td></tr>
166
-                        <tr><td><b>Help Topic:</b></td>     <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
166
+                        <tr><td><b>Help Topic:</b></td>     <?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
167 167
                         <tr><td><b>Last Message:</b></td>   <td>{{$username}}</td></tr>
168 168
                     </table>
169 169
                 </div>
@@ -413,21 +413,21 @@  discard block
 block discarded – undo
413 413
                                     </span> <?php
414 414
 $data = $ConvDate[0];
415 415
 	}
416
-    $role = App\User::where('id','=',$conversation->user_id)->first();
416
+    $role = App\User::where('id', '=', $conversation->user_id)->first();
417 417
 	?>
418 418
                             </li>
419 419
                             <li>
420
-                                <?php if($conversation->is_internal) { ?>
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>
426 426
                                 <?php } else { ?>
427 427
                                     <i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
428 428
     <?php } }
429
-    $attachment = App\Model\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->first();
430
-    if($attachment == null ) {
429
+    $attachment = App\Model\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->first();
430
+    if ($attachment == null) {
431 431
         $body = $conversation->body;
432 432
     }
433 433
     else {
@@ -437,18 +437,18 @@  discard block
 block discarded – undo
437 437
         // echo "<img src='".base64_decode($attachment->file)."' style='width:128px;height:128px'/> ";
438 438
         $body = $conversation->body;
439 439
 
440
-        $attachments = App\Model\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->orderBy('id', 'DESC')->get();
440
+        $attachments = App\Model\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->orderBy('id', 'DESC')->get();
441 441
 
442 442
         // $i = 0;
443 443
 
444
-                    foreach($attachments as $attachment)
444
+                    foreach ($attachments as $attachment)
445 445
                     {
446 446
 
447 447
                         // $i++;
448
-                        if($attachment->type == 'pdf')
448
+                        if ($attachment->type == 'pdf')
449 449
                         {
450 450
                             // echo "hello";
451
-                        }elseif($attachment->type == 'docx')
451
+                        }elseif ($attachment->type == 'docx')
452 452
                         {
453 453
                             // echo "hello";
454 454
                         }
@@ -459,26 +459,26 @@  discard block
 block discarded – undo
459 459
                         imagejpeg($image, null, 80);
460 460
                         $data = ob_get_contents();
461 461
                         ob_end_clean();
462
-                        $var  =  '<img src="data:image/jpg;base64,' .  base64_encode($data)  . '" />';
462
+                        $var  = '<img src="data:image/jpg;base64,'.base64_encode($data).'" />';
463 463
                         // echo $var;
464 464
                         // echo $attachment->name;
465 465
                         // $body = explode($attachment->name, $body);
466
-                        $body = str_replace($attachment->name, "data:image/jpg;base64," .  base64_encode($data), $body);
466
+                        $body = str_replace($attachment->name, "data:image/jpg;base64,".base64_encode($data), $body);
467 467
 
468 468
                             $string = $body;                        
469 469
                             $start = "<head>";
470 470
                             $end = "</head>";
471
-                            if(strpos($string,$start) == false || strpos($string,$start) == false)
471
+                            if (strpos($string, $start) == false || strpos($string, $start) == false)
472 472
                             {
473 473
                             }
474 474
                             else
475 475
                             {
476
-                            $ini = strpos($string,$start);
476
+                            $ini = strpos($string, $start);
477 477
                             $ini += strlen($start);
478
-                            $len = strpos($string,$end,$ini) - $ini;
479
-                            $parsed = substr($string,$ini,$len);
478
+                            $len = strpos($string, $end, $ini) - $ini;
479
+                            $parsed = substr($string, $ini, $len);
480 480
                             $body2 = $parsed;
481
-                            $body = str_replace($body2 ," " ,$body);
481
+                            $body = str_replace($body2, " ", $body);
482 482
                             }
483 483
                         }
484 484
                     }
@@ -493,24 +493,24 @@  discard block
 block discarded – undo
493 493
                             $string = $body;                        
494 494
                             $start = "<head>";
495 495
                             $end = "</head>";                            
496
-                            if(strpos($string,$start) == false || strpos($string,$start) == false)
496
+                            if (strpos($string, $start) == false || strpos($string, $start) == false)
497 497
                             {
498 498
                             }
499 499
                             else
500 500
                             {
501
-                            $ini = strpos($string,$start);
501
+                            $ini = strpos($string, $start);
502 502
                             $ini += strlen($start);
503
-                            $len = strpos($string,$end,$ini) - $ini;
504
-                            $parsed = substr($string,$ini,$len);
503
+                            $len = strpos($string, $end, $ini) - $ini;
504
+                            $parsed = substr($string, $ini, $len);
505 505
                             $body2 = $parsed;
506
-                            $body = str_replace($body2 ," " ,$body);
506
+                            $body = str_replace($body2, " ", $body);
507 507
                             }
508 508
 
509 509
     ?>
510 510
                                 <div class="timeline-item">
511 511
                                     <span id="date" class="time"  style="color:#fff;"><i class="fa fa-clock-o"> </i> {{date_format($conversation->created_at, 'd/m/Y H:i:s')}}</span>
512 512
                                     <h3 class="timeline-header"  style="background-color:<?php 
513
-                                    if($conversation->is_internal)
513
+                                    if ($conversation->is_internal)
514 514
                                     {
515 515
                                         $color = '#046380'; 
516 516
                                         echo $color; 
@@ -533,39 +533,39 @@  discard block
 block discarded – undo
533 533
                                     }
534 534
                                         ?>;
535 535
                                         ">
536
-                                        <a href="#" style="color:#fff;"><?php if($role->role == "user") {echo $role->user_name; } else { echo $role->first_name . " " . $role->last_name; } ?> </a></h3>
536
+                                        <a href="#" style="color:#fff;"><?php if ($role->role == "user") {echo $role->user_name; } else { echo $role->first_name." ".$role->last_name; } ?> </a></h3>
537 537
                                     <div class="timeline-body">
538 538
                                           {!! $body !!}
539 539
 
540 540
                                     </div>
541 541
                                     <div class="timeline-footer" >
542 542
                                         <?php 
543
-                                        $attachments = App\Model\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->get();
543
+                                        $attachments = App\Model\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->get();
544 544
                                         $i = 0;
545
-                                        foreach($attachments as $attachment) {
546
-                                        if($attachment->poster == 'ATTACHMENT') {
545
+                                        foreach ($attachments as $attachment) {
546
+                                        if ($attachment->poster == 'ATTACHMENT') {
547 547
                                             $i++;
548 548
                                             } 
549 549
                                         }
550
-                                        if($i>0)
550
+                                        if ($i > 0)
551 551
                                         {
552 552
                                         echo "<hr style='height:1px;color:#2D3244;background-color:#2D3244;''><h4 class='box-title'><b>".$i." </b> Attachments</h4>";
553 553
                                         }
554 554
                                         ?>
555 555
                                         <ul class='mailbox-attachments clearfix'>
556 556
                                         <?php
557
-                                        foreach($attachments as $attachment)
557
+                                        foreach ($attachments as $attachment)
558 558
                                         {
559
-                                            if($attachment->poster == 'ATTACHMENT')
559
+                                            if ($attachment->poster == 'ATTACHMENT')
560 560
                                             {
561
-                                                if($attachment->type == 'jpg'||$attachment->type == 'JPG'||$attachment->type == 'jpeg'||$attachment->type == 'JPEG'||$attachment->type == 'png'||$attachment->type == 'PNG'||$attachment->type == 'gif'||$attachment->type == 'GIF')
561
+                                                if ($attachment->type == 'jpg' || $attachment->type == 'JPG' || $attachment->type == 'jpeg' || $attachment->type == 'JPEG' || $attachment->type == 'png' || $attachment->type == 'PNG' || $attachment->type == 'gif' || $attachment->type == 'GIF')
562 562
                                                 {
563 563
                                                 $image = imagecreatefromstring($attachment->file); 
564 564
                                                 ob_start();
565 565
                                                 imagejpeg($image, null, 80);
566 566
                                                 $data = ob_get_contents();
567 567
                                                 ob_end_clean();
568
-                                                $var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img src="data:image/jpg;base64,' . base64_encode($data)  . '"/></a>';
568
+                                                $var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img src="data:image/jpg;base64,'.base64_encode($data).'"/></a>';
569 569
                                                 echo '<li><span class="mailbox-attachment-icon has-img">'.$var.'</span></li>';
570 570
                                                 }
571 571
                                                 else
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
                             <i class="fa fa-clock-o bg-gray"></i>
588 588
                         </li>
589 589
                         <ul class="pull-right">
590
-<?php echo $conversations->setPath(url('/thread/' . $tickets->id))->render();?>
590
+<?php echo $conversations->setPath(url('/thread/'.$tickets->id))->render(); ?>
591 591
                         </ul>
592 592
                     </ul>
593 593
                 </div><!-- /.col -->
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
                 <div class="modal-body" >
672 672
                     <div class="form-group has-feedback">
673 673
                         <!-- <input type="text" class="form-control" id="search" name="search" placeholder="Search Users"\> -->
674
-<?php $users = App\User::where('role', '=', 'user')->get();?>
674
+<?php $users = App\User::where('role', '=', 'user')->get(); ?>
675 675
                         Add another Owner
676 676
                         <select name="SelectOwner" class="form-control">
677 677
                             @foreach($users as $user)
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
                     <div class="row">
686 686
                         <div class="col-md-2"><spam class="glyphicon glyphicon-user fa-5x"></spam></div>
687 687
                         <div class="col-md-10">
688
-<?php $user = App\User::where('id', '=', $tickets->user_id)->first();?>
688
+<?php $user = App\User::where('id', '=', $tickets->user_id)->first(); ?>
689 689
 
690 690
                             <b>User Details</b><br/>
691 691
                             {!! $user->user_name !!}<br/>{!! $user->email !!}<br/>
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
                     <p>Whome do you want to assign ticket?</p>
719 719
 
720 720
                     <select id="asssign" class="form-control" name="user">
721
-<?php $assign = App\User::where('role', '=', 'agent')->get();?>
721
+<?php $assign = App\User::where('role', '=', 'agent')->get(); ?>
722 722
                         @foreach($assign as $user)
723 723
                         <option  value="{{$user->email}}">{{$user->user_name}}</option>
724 724
                         @endforeach
Please login to merge, or discard this patch.
Braces   +11 added lines, -17 removed lines patch added patch discarded remove patch
@@ -155,9 +155,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>';   
Please login to merge, or discard this patch.
resources/views/themes/default1/client/helpdesk/guest-user/form.blade.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 <?php
55 55
     $encrypter = app('Illuminate\Encryption\Encrypter');
56 56
         $encrypted_token = $encrypter->encrypt(csrf_token());
57
- ?>
57
+    ?>
58 58
 <input id="token" type="hidden" value="{{$encrypted_token}}">
59 59
 {!! Form::open(['action'=>'Client\helpdesk\FormController@postedForm','method'=>'post']) !!}
60 60
 <div>
Please login to merge, or discard this patch.
resources/views/themes/default1/client/helpdesk/profile.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -230,8 +230,8 @@
 block discarded – undo
230 230
 @if($verify == 1 || $verify == '1')
231 231
     <script type="text/javascript">
232 232
     $('#client-profile').on('submit', function(e){
233
-        var old_mobile = "<?php echo $user->mobile;?>";
234
-        var email = "<?php echo $user->email;?>";
233
+        var old_mobile = "<?php echo $user->mobile; ?>";
234
+        var email = "<?php echo $user->email; ?>";
235 235
         var full_name = "<?php echo $user->first_name; ?>";
236 236
         var mobile = document.getElementById('mobile').value;
237 237
         var code = document.getElementById('code').value;
Please login to merge, or discard this patch.
resources/views/themes/default1/client/helpdesk/form.blade.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@
 block discarded – undo
164 164
             </div>
165 165
             <!-- priority -->
166 166
              <?php 
167
-             $Priority = App\Model\helpdesk\Settings\CommonSettings::select('status')->where('option_name','=', 'user_priority')->first(); 
168
-             $user_Priority=$Priority->status;
167
+                $Priority = App\Model\helpdesk\Settings\CommonSettings::select('status')->where('option_name','=', 'user_priority')->first(); 
168
+                $user_Priority=$Priority->status;
169 169
             ?>
170 170
              
171 171
              @if(Auth::user())
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
             </div>
165 165
             <!-- priority -->
166 166
              <?php 
167
-             $Priority = App\Model\helpdesk\Settings\CommonSettings::select('status')->where('option_name','=', 'user_priority')->first(); 
168
-             $user_Priority=$Priority->status;
167
+             $Priority = App\Model\helpdesk\Settings\CommonSettings::select('status')->where('option_name', '=', 'user_priority')->first(); 
168
+             $user_Priority = $Priority->status;
169 169
             ?>
170 170
              
171 171
              @if(Auth::user())
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                         <label>{!! Lang::get('lang.priority') !!}:</label>
181 181
                     </div>
182 182
                     <div class="col-md-12">
183
-                        <?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?>
183
+                        <?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status', '=', 1)->get(); ?>
184 184
                         {!! Form::select('priority', ['Priority'=>$Priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
185 185
                     </div>
186 186
                  </div>
Please login to merge, or discard this patch.