Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
views/themes/default1/admin/helpdesk/emails/emails/index.blade.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     <?php
60 60
     $default_system_email = App\Model\helpdesk\Settings\Email::where('id', '=', '1')->first();
61
-    if($default_system_email->sys_email) {
61
+    if ($default_system_email->sys_email) {
62 62
     	$default_email = $default_system_email->sys_email;
63 63
     } else {
64 64
     	$default_email = null;
@@ -85,18 +85,18 @@  discard block
 block discarded – undo
85 85
 								<?php $disabled = ''; ?>
86 86
 							@endif
87 87
 							</td>
88
-							<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$email->priority)->first(); ?>
88
+							<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $email->priority)->first(); ?>
89 89
 							@if($email->priority == null)
90
-								<?php $priority = "<a href=". url('getticket') .">System Default</a>"; ?>
90
+								<?php $priority = "<a href=".url('getticket').">System Default</a>"; ?>
91 91
 							@else 
92 92
 								<?php $priority = ucfirst($priority->priority_desc); ?>
93 93
 							@endif
94 94
 							<td>{!! $priority !!}</td>
95 95
 							@if($email->department !== null)
96
-								<?php  $department = App\Model\helpdesk\Agent\Department::where('id','=',$email->department)->first(); 
96
+								<?php  $department = App\Model\helpdesk\Agent\Department::where('id', '=', $email->department)->first(); 
97 97
 								$dept = $department->name; ?>
98 98
 							@elseif($email->department == null)
99
-								<?php  $dept = "<a href=". url('getsystem') .">System Default</a>"; ?>
99
+								<?php  $dept = "<a href=".url('getsystem').">System Default</a>"; ?>
100 100
 							@endif
101 101
 
102 102
 							<td>{!! $dept !!}</td>
Please login to merge, or discard this patch.
resources/views/themes/default1/admin/helpdesk/agent/teams/show.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
     @endif
49 49
 <!-- <input type="text" name="show_id" value="{{$id}}"> -->
50 50
 <?php
51
- if($team_lead_name= App\User::whereId($teams->team_lead)->first())
51
+ if ($team_lead_name = App\User::whereId($teams->team_lead)->first())
52 52
           {
53
-            $team_lead = $team_lead_name->first_name . " " . $team_lead_name->last_name;
53
+            $team_lead = $team_lead_name->first_name." ".$team_lead_name->last_name;
54 54
              // $assign_team_agent=App\Model\helpdesk\Agent\Assign_team_agent::all();
55 55
             // $total_members = $assign_team_agent->where('team_id',$id)->count();
56 56
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         @if($team_lead_name)
63 63
             <span class="lead border-right">{!! Lang::get('lang.team_lead') !!} : {!! $team_lead !!} </span>
64 64
          @endif
65
-            <span class="lead border-left">{!! Lang::get('lang.status') !!} : <?php if($teams->status == 1) { $stat = Lang::get('lang.active'); } elseif($teams->status == 0) { $stat = Lang::get('lang.inactive'); } ?>{!! $stat !!} </span>
65
+            <span class="lead border-left">{!! Lang::get('lang.status') !!} : <?php if ($teams->status == 1) { $stat = Lang::get('lang.active'); } elseif ($teams->status == 0) { $stat = Lang::get('lang.inactive'); } ?>{!! $stat !!} </span>
66 66
             
67 67
 
68 68
             <div class="pull-right">
Please login to merge, or discard this patch.
resources/views/themes/default1/admin/helpdesk/agent/agents/index.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@
 block discarded – undo
81 81
                 <td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->user_name !!}</td>
82 82
                 <?php
83 83
                 if ($use->role == 'admin') {
84
-                    echo '<td><button class="btn btn-success btn-xs">' . Lang::get('lang.admin') . '</button></td>';
84
+                    echo '<td><button class="btn btn-success btn-xs">'.Lang::get('lang.admin').'</button></td>';
85 85
                 } elseif ($use->role == 'agent') {
86
-                    echo '<td><button class="btn btn-primary btn-xs">' . Lang::get('lang.agent') . '</button></td>';
86
+                    echo '<td><button class="btn btn-primary btn-xs">'.Lang::get('lang.agent').'</button></td>';
87 87
                 }
88 88
                 ?>
89 89
                 <td>
Please login to merge, or discard this patch.
resources/views/themes/default1/admin/helpdesk/agent/agents/edit.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
             if (in_array($val, $assign)) {
296 296
                 echo ('checked');
297 297
             }
298
-            ?> > &nbsp;<?php echo "  " . $key; ?><br/>
298
+            ?> > &nbsp;<?php echo "  ".$key; ?><br/>
299 299
         </div>
300 300
         @endwhile
301 301
     </div>
Please login to merge, or discard this patch.
resources/views/themes/default1/admin/helpdesk/manage/sla/index.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	</tr>
69 69
 
70 70
 <?php
71
-$default_sla = App\Model\helpdesk\Settings\Ticket::where('id','=','1')->first();
71
+$default_sla = App\Model\helpdesk\Settings\Ticket::where('id', '=', '1')->first();
72 72
 $default_sla = $default_sla->sla;
73 73
 ?>
74 74
 
Please login to merge, or discard this patch.
views/themes/default1/admin/helpdesk/manage/workflow/edit.blade.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -331,95 +331,95 @@
 block discarded – undo
331 331
                                             <td id="fill{!! $i !!}">
332 332
                                                 <?php
333 333
                                                 if ($workflow_action->condition == 'reject') {
334
-                                                    echo "<input type='hidden' name='action[" . $i . "][b]' class='form-control' value='reject'><span text-red>Reject</span>";
334
+                                                    echo "<input type='hidden' name='action[".$i."][b]' class='form-control' value='reject'><span text-red>Reject</span>";
335 335
                                                 } elseif ($workflow_action->condition == 'department') {
336 336
                                                     $departments = App\Model\helpdesk\Agent\Department::all();
337
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
337
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
338 338
                                                     foreach ($departments as $department) {
339 339
                                                         if ($workflow_action->action == $department->id) {
340 340
                                                             $depart = "selected";
341 341
                                                         } else {
342 342
                                                             $depart = "";
343 343
                                                         }
344
-                                                        $var .= "<option value='" . $department->id . "' " . $depart . ">" . $department->name . "</option>";
344
+                                                        $var .= "<option value='".$department->id."' ".$depart.">".$department->name."</option>";
345 345
                                                     }
346 346
                                                     $var .= "</select>";
347 347
                                                     echo $var;
348 348
                                                 } elseif ($workflow_action->condition == 'priority') {
349 349
                                                     $priorities = App\Model\helpdesk\Ticket\Ticket_Priority::all();
350
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
350
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
351 351
                                                     foreach ($priorities as $priority) {
352 352
                                                         if ($workflow_action->action == $priority->priority_id) {
353 353
                                                             $priority1 = "selected";
354 354
                                                         } else {
355 355
                                                             $priority1 = "";
356 356
                                                         }
357
-                                                        $var .= "<option value='" . $priority->priority_id . "' " . $priority1 . ">" . $priority->priority_desc . "</option>";
357
+                                                        $var .= "<option value='".$priority->priority_id."' ".$priority1.">".$priority->priority_desc."</option>";
358 358
                                                     }
359 359
                                                     $var .= "</select>";
360 360
                                                     echo $var;
361 361
                                                 } elseif ($workflow_action->condition == 'sla') {
362 362
                                                     $sla_plans = App\Model\helpdesk\Manage\Sla_plan::where('status', '=', 1)->get();
363
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
363
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
364 364
                                                     foreach ($sla_plans as $sla_plan) {
365 365
                                                         if ($workflow_action->action == $sla_plan->id) {
366 366
                                                             $sla = "selected";
367 367
                                                         } else {
368 368
                                                             $sla = "";
369 369
                                                         }
370
-                                                        $var .= "<option value='" . $sla_plan->id . "' " . $sla . ">" . $sla_plan->grace_period . "</option>";
370
+                                                        $var .= "<option value='".$sla_plan->id."' ".$sla.">".$sla_plan->grace_period."</option>";
371 371
                                                     }
372 372
                                                     $var .= "</select>";
373 373
                                                     echo $var;
374 374
                                                 } elseif ($workflow_action->condition == 'team') {
375 375
                                                     $teams = App\Model\helpdesk\Agent\Teams::where('status', '=', 1)->get();
376
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
376
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
377 377
                                                     foreach ($teams as $team) {
378 378
                                                         if ($workflow_action->action == $team->id) {
379 379
                                                             $team1 = "selected";
380 380
                                                         } else {
381 381
                                                             $team1 = "";
382 382
                                                         }
383
-                                                        $var .= "<option value='" . $team->id . "' " . $team1 . ">" . $team->name . "</option>";
383
+                                                        $var .= "<option value='".$team->id."' ".$team1.">".$team->name."</option>";
384 384
                                                     }
385 385
                                                     $var .= "</select>";
386 386
                                                     echo $var;
387 387
                                                 } elseif ($workflow_action->condition == 'agent') {
388 388
                                                     $users = App\User::where('role', '!=', 'user')->where('active', '=', 1)->get();
389
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
389
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
390 390
                                                     foreach ($users as $user) {
391 391
                                                         if ($workflow_action->action == $user->id) {
392 392
                                                             $user1 = "selected";
393 393
                                                         } else {
394 394
                                                             $user1 = "";
395 395
                                                         }
396
-                                                        $var .= "<option value='" . $user->id . "' " . $user1 . ">" . $user->first_name . " " . $user->last_name . "</option>";
396
+                                                        $var .= "<option value='".$user->id."' ".$user1.">".$user->first_name." ".$user->last_name."</option>";
397 397
                                                     }
398 398
                                                     $var .= "</select>";
399 399
                                                     echo $var;
400 400
                                                 } elseif ($workflow_action->condition == 'helptopic') {
401 401
                                                     $help_topics = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get();
402
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
402
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
403 403
                                                     foreach ($help_topics as $help_topic) {
404 404
                                                         if ($workflow_action->action == $help_topic->id) {
405 405
                                                             $help_topic1 = "selected";
406 406
                                                         } else {
407 407
                                                             $help_topic1 = "";
408 408
                                                         }
409
-                                                        $var .= "<option value='" . $help_topic->id . "' " . $help_topic1 . ">" . $help_topic->topic . "</option>";
409
+                                                        $var .= "<option value='".$help_topic->id."' ".$help_topic1.">".$help_topic->topic."</option>";
410 410
                                                     }
411 411
                                                     $var .= "</select>";
412 412
                                                     echo $var;
413 413
                                                 } elseif ($workflow_action->condition == 'status') {
414 414
                                                     $ticket_status = App\Model\helpdesk\Ticket\Ticket_Status::all();
415
-                                                    $var = "<select name='action[" . $i . "][b]' class='form-control' required>";
415
+                                                    $var = "<select name='action[".$i."][b]' class='form-control' required>";
416 416
                                                     foreach ($ticket_status as $status) {
417 417
                                                         if ($workflow_action->action == $status->id) {
418 418
                                                             $status1 = "selected";
419 419
                                                         } else {
420 420
                                                             $status1 = "";
421 421
                                                         }
422
-                                                        $var .= "<option value='" . $status->id . "' " . $status1 . ">" . $status->name . "</option>";
422
+                                                        $var .= "<option value='".$status->id."' ".$status1.">".$status->name."</option>";
423 423
                                                     }
424 424
                                                     $var .= "</select>";
425 425
                                                     echo $var;
Please login to merge, or discard this patch.
resources/views/themes/default1/admin/helpdesk/setting.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
                         <p class="box-title" >{!! Lang::get('lang.close_ticket_workflow') !!}</p>
379 379
                     </div>
380 380
                 </div>
381
-               <?php \Event::fire('settings.ticket.view',[]); ?>
381
+               <?php \Event::fire('settings.ticket.view', []); ?>
382 382
                 <!--/.col-md-2-->
383 383
             </div>
384 384
         </div>
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
                     </div>
492 492
                 </div>
493 493
                 
494
-                <?php \Event::fire('settings.system',[]); ?>
494
+                <?php \Event::fire('settings.system', []); ?>
495 495
             </div>
496 496
         </div>
497 497
         <!-- /.row -->
Please login to merge, or discard this patch.
resources/views/themes/default1/layouts/agent.blade.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
  $inbox = App\Model\helpdesk\Ticket\Tickets::all();
158 158
 
159 159
 	?>
160
-     <?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();?>
161
-     <?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
162
-            $tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
160
+     <?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get(); ?>
161
+     <?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status', '1')->get();
162
+            $tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '1')->get();
163 163
             $i = count($tickets);
164 164
      ?>
165 165
                                         <li>
166 166
                                             <a href="{{ url('/ticket/open') }}">
167
-                                                <i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i;?></small>
167
+                                                <i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i; ?></small>
168 168
                                             </a>
169 169
                                         </li>
170 170
 <?php
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                                         <li>
189 189
                                             <a href="{{url('trash')}}">
190 190
                                                 <i class="fa fa-trash-o"></i> <span>Trash</span>
191
-                                                <?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();?>
191
+                                                <?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get(); ?>
192 192
                                                 <small class="label pull-right bg-green">{{count($deleted)}}</small>
193 193
                                             </a>
194 194
                                         </li>
@@ -198,15 +198,15 @@  discard block
 block discarded – undo
198 198
 $depts = App\Model\helpdesk\Agent\Department::all();
199 199
 foreach ($depts as $dept) {
200 200
 
201
-$open = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('dept_id','=',$dept->id)->get();
201
+$open = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('dept_id', '=', $dept->id)->get();
202 202
 $open = count($open);
203 203
 // dd($open);
204 204
 
205
-$closed = App\Model\helpdesk\Ticket\Tickets::where('status','=','2'||'3')->where('dept_id','=',$dept->id)->get();
205
+$closed = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '2' || '3')->where('dept_id', '=', $dept->id)->get();
206 206
 $closed = count($closed);
207 207
 // dd($closed);
208 208
 
209
-$underprocess = App\Model\helpdesk\Ticket\Tickets::where('status','=','2'||'3')->where('assigned_to','=', '0')->get();
209
+$underprocess = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '2' || '3')->where('assigned_to', '=', '0')->get();
210 210
 $underprocess = count($underprocess);
211 211
 // dd($underprocess);
212 212
 
Please login to merge, or discard this patch.
resources/views/themes/default1/layouts/admin.blade.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,14 +146,14 @@  discard block
 block discarded – undo
146 146
 <?php
147 147
  $inbox = App\Model\helpdesk\Ticket\Tickets::get();
148 148
     ?>
149
-     <?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();?>
150
-     <?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
151
-            $tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
149
+     <?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get(); ?>
150
+     <?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status', '1')->get();
151
+            $tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '1')->get();
152 152
             $i = count($tickets);
153 153
      ?>
154 154
                                         <li>
155 155
                                             <a href="{{ url('/ticket/open') }}">
156
-                                                <i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i;?></small>
156
+                                                <i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i; ?></small>
157 157
                                             </a>
158 158
                                         </li>
159 159
 <?php
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                                         <li>
178 178
                                             <a href="{{url('trash')}}">
179 179
                                                 <i class="fa fa-trash-o"></i> <span>Trash</span>
180
-                                                <?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();?>
180
+                                                <?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get(); ?>
181 181
                                                 <small class="label pull-right bg-green">{{count($deleted)}}</small>
182 182
                                             </a>
183 183
                                         </li>
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
                                     <b>Version</b> 0.1
259 259
                                 </div>
260 260
                                 <?php  
261
-                                $company = App\Model\helpdesk\Settings\Company::where('id','=','1')->first();
261
+                                $company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
262 262
                                 ?>
263 263
                                 <strong>Copyright &copy; {!! date('Y') !!}  <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>.</strong> All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/" target="blank">Faveo</a>
264 264
                             </footer>
Please login to merge, or discard this patch.