Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
resources/views/themes/default1/agent/helpdesk/user/profile-edit.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -246,8 +246,8 @@
 block discarded – undo
246 246
 @if($verify == 1 || $verify == '1')
247 247
 <script type="text/javascript">
248 248
 $('#agent-profile').on('submit', function(e){
249
-    var old_mobile = "<?php echo $user->mobile;?>";
250
-    var email = "<?php echo $user->email;?>";
249
+    var old_mobile = "<?php echo $user->mobile; ?>";
250
+    var email = "<?php echo $user->email; ?>";
251 251
     var full_name = "<?php echo $user->first_name; ?>";
252 252
     var mobile = document.getElementById('mobile').value;
253 253
     var code = document.getElementById('code').value;
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/helpdesk/user/show.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 <?php $table = \Datatable::table()
86 86
                 ->addColumn(
87 87
                         "", Lang::get('lang.subject'), Lang::get('lang.ticket_id'), Lang::get('lang.priority'), Lang::get('lang.from'), Lang::get('lang.assigned_to'), Lang::get('lang.last_activity'), Lang::get('lang.created-at'))
88
-                ->noScript();?>
88
+                ->noScript(); ?>
89 89
 <div class="row">
90 90
     <div class="col-md-3">
91 91
         <div class="box box-primary" >
@@ -739,9 +739,9 @@  discard block
 block discarded – undo
739 739
                                         $created_date = $start_date->created_at;
740 740
                                         $created_date = explode(' ', $created_date);
741 741
                                         $created_date = $created_date[0];
742
-                                        $start_date = date("m/d/Y", strtotime($created_date . ' -1 months'));
742
+                                        $start_date = date("m/d/Y", strtotime($created_date.' -1 months'));
743 743
                                     } else {
744
-                                        $start_date = date("m/d/Y", strtotime(date("m/d/Y") . ' -1 months'));
744
+                                        $start_date = date("m/d/Y", strtotime(date("m/d/Y").' -1 months'));
745 745
                                     }
746 746
                                     ?>
747 747
                                     <script type="text/javascript">
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/helpdesk/user/edit.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
                   <select class="form-control" name="org_id">
101 101
                                         @foreach($orgs as $org)
102 102
                                         <option value="{!! $org->id !!}" <?php
103
-                                        if ($org->id==$organization_id) {
103
+                                        if ($org->id == $organization_id) {
104 104
                                             echo 'selected';
105 105
                                         }
106 106
                                         ?> >{!! $org->name !!}</option>
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/helpdesk/report/index.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     <div class='col-sm-2'>
64 64
                         {!! Form::label('helptopic', Lang::get('lang.help_topic')) !!}
65 65
                         <select name="help_topic" id="help_topic" class="form-control">
66
-                            <?php $helptopics = App\Model\helpdesk\Manage\Help_topic::where('status', '=', '1')->get([ 'id', 'topic']); ?>
66
+                            <?php $helptopics = App\Model\helpdesk\Manage\Help_topic::where('status', '=', '1')->get(['id', 'topic']); ?>
67 67
                             @foreach($helptopics as $helptopic)
68 68
                             <option value="{!! $helptopic->id !!}">{!! $helptopic->topic !!}</option>
69 69
                             @endforeach
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
                         $created_date = $start_date->created_at;
80 80
                         $created_date = explode(' ', $created_date);
81 81
                         $created_date = $created_date[0];
82
-                        $start_date = date("m/d/Y", strtotime($created_date . ' -1 months'));
82
+                        $start_date = date("m/d/Y", strtotime($created_date.' -1 months'));
83 83
                     } else {
84
-                        $start_date = date("m/d/Y", strtotime(date("m/d/Y") . ' -1 months'));
84
+                        $start_date = date("m/d/Y", strtotime(date("m/d/Y").' -1 months'));
85 85
                     }
86 86
                     ?>
87 87
                     <script type="text/javascript">
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/helpdesk/report/pdf.blade.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,17 +70,17 @@
 block discarded – undo
70 70
                 $table_reopened = '';
71 71
                 foreach ($table_datas as $table_data) {
72 72
                     echo '<tr>';
73
-                    echo '<td>' . $table_data->date . '</td>';
73
+                    echo '<td>'.$table_data->date.'</td>';
74 74
                     if (array_key_exists('open', $table_data)) {
75
-                        echo '<td>' . $table_data->open . '</td>';
75
+                        echo '<td>'.$table_data->open.'</td>';
76 76
                         $table_open += $table_data->open;
77 77
                     }
78 78
                     if (array_key_exists('closed', $table_data)) {
79
-                        echo '<td>' . $table_data->closed . '</td>';
79
+                        echo '<td>'.$table_data->closed.'</td>';
80 80
                         $table_closed += $table_data->closed;
81 81
                     }
82 82
                     if (array_key_exists('reopened', $table_data)) {
83
-                        echo '<td>' . $table_data->reopened . '</td>';
83
+                        echo '<td>'.$table_data->reopened.'</td>';
84 84
                         $table_reopened += $table_data->reopened;
85 85
                     }
86 86
                     echo '</tr>';
Please login to merge, or discard this patch.
views/themes/default1/agent/helpdesk/dept-ticket/tickets.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 $date_time_format = UTC::getDateTimeFormat();
46 46
 if (Auth::user()->role == 'agent') {
47 47
     $dept = App\Model\helpdesk\Agent\Department::select('id', 'name')->where('id', '=', Auth::user()->primary_dpt)->first();
48
-    $dept_name =  $dept->name;
48
+    $dept_name = $dept->name;
49 49
 } else {
50 50
     $dept_name = \Request::segments()[1];
51 51
 }
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/helpdesk/organization/show.blade.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
255 255
                                 </tbody>
256 256
                             </table><!-- /.table -->
257 257
                             <div class="pull-right">
258
-                                <?php echo $tickets->setPath(url('/organizations/' . $orgs->id))->render(); ?>&nbsp;
258
+                                <?php echo $tickets->setPath(url('/organizations/'.$orgs->id))->render(); ?>&nbsp;
259 259
                             </div>
260 260
                         </div><!-- /.mail-box-messages -->
261 261
                         {!! Form::close() !!}
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
374 374
                             </table><!-- /.table -->
375 375
 
376 376
                             <div class="pull-right">
377
-                                <?php echo $tickets->setPath(url('/organizations/' . $orgs->id))->render(); ?>&nbsp;
377
+                                <?php echo $tickets->setPath(url('/organizations/'.$orgs->id))->render(); ?>&nbsp;
378 378
                             </div>
379 379
                         </div><!-- /.mail-box-messages -->
380 380
                         {!! Form::close() !!}
@@ -413,9 +413,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
496 496
                             </table><!-- /.table -->
497 497
 
498 498
                             <div class="pull-right">
499
-                                <?php echo $tickets->setPath(url('/organizations/' . $orgs->id))->render(); ?>&nbsp;
499
+                                <?php echo $tickets->setPath(url('/organizations/'.$orgs->id))->render(); ?>&nbsp;
500 500
                             </div>
501 501
                         </div><!-- /.mail-box-messages -->
502 502
                         {!! Form::close() !!}
@@ -525,9 +525,9 @@  discard block
 block discarded – undo
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">
Please login to merge, or discard this patch.
views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     $json[] = array(
10 10
     'value' => $organization["name"],
11
-     'label' => $organization["name"],
11
+        'label' => $organization["name"],
12 12
     
13 13
     'org' => $organization["name"],
14 14
    
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1252,9 +1252,9 @@  discard block
 block discarded – undo
1252 1252
                                 {!! Form::open(['id'=>'merge-form','method' => 'PATCH'] )!!}
1253 1253
                                 <label>{!! Lang::get('lang.title') !!}</label>
1254 1254
                                 <input type="text" name='title' class="form-control" value="<?php
1255
-                                       $ticket_data = App\Model\helpdesk\Ticket\Ticket_Thread::select('title')->where('ticket_id', "=", $tickets->id)->first();
1256
-                                       echo $ticket_data->title;
1257
-                                       ?>"/>
1255
+                                        $ticket_data = App\Model\helpdesk\Ticket\Ticket_Thread::select('title')->where('ticket_id', "=", $tickets->id)->first();
1256
+                                        echo $ticket_data->title;
1257
+                                        ?>"/>
1258 1258
                             </div>
1259 1259
                             <div class="col-md-6">
1260 1260
                                 <label>{!! Lang::get('lang.select-pparent-ticket') !!}</label>
@@ -1264,9 +1264,9 @@  discard block
 block discarded – undo
1264 1264
                                 <div id="parent-body" >
1265 1265
 
1266 1266
                                     <select class="form-control" id="select-merge-parent"  name='p_id' data-placeholder="{!! Lang::get('lang.select_tickets') !!}" style="width: 100%;"><option value="{{$tickets->id}}"><?php
1267
-                                       $ticket_data = App\Model\helpdesk\Ticket\Ticket_Thread::select('title')->where('ticket_id', "=", $tickets->id)->first();
1268
-                                       echo $ticket_data->title;
1269
-                                       ?></option></select>
1267
+                                        $ticket_data = App\Model\helpdesk\Ticket\Ticket_Thread::select('title')->where('ticket_id', "=", $tickets->id)->first();
1268
+                                        echo $ticket_data->title;
1269
+                                        ?></option></select>
1270 1270
                                 </div>
1271 1271
                             </div>
1272 1272
                         </div>
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -135,20 +135,20 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,8 +290,9 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.