Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
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 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 <?php
46 46
 $company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
47 47
 if ($company != null) {
48
-	?><?php }
48
+    ?><?php }
49 49
 ?>
50 50
                 <!-- Header Navbar: style can be found in header.less -->
51 51
                 <nav class="navbar navbar-static-top" role="navigation">
@@ -154,14 +154,14 @@  discard block
 block discarded – undo
154 154
                                         <li class="header">TICKETS</li>
155 155
 
156 156
 <?php
157
- $inbox = App\Model\helpdesk\Ticket\Tickets::all();
157
+    $inbox = App\Model\helpdesk\Ticket\Tickets::all();
158 158
 
159
-	?>
159
+    ?>
160 160
      <?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();?>
161 161
      <?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
162 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 167
                                                 <i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i;?></small>
@@ -210,17 +210,17 @@  discard block
 block discarded – undo
210 210
 $underprocess = count($underprocess);
211 211
 // dd($underprocess);
212 212
 
213
-	$underprocess = 0;
214
-	foreach ($inbox as $ticket4) {
215
-		if ($ticket4->assigned_to == null) {
213
+    $underprocess = 0;
214
+    foreach ($inbox as $ticket4) {
215
+        if ($ticket4->assigned_to == null) {
216 216
 
217
-		} else {
218
-			$underprocess++;
219
-		}
220
-	}
217
+        } else {
218
+            $underprocess++;
219
+        }
220
+    }
221 221
 
222
-	if (Auth::user()->role == 'admin') {
223
-		?>
222
+    if (Auth::user()->role == 'admin') {
223
+        ?>
224 224
                                         <li class="treeview">
225 225
                                             <a href="#">
226 226
                                                 <i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
 
235 235
                                         <?php
236 236
 }
237
-	if (Auth::user()->role == 'agent' && Auth::user()->primary_dpt == $dept->name) {
238
-		?>
237
+    if (Auth::user()->role == 'agent' && Auth::user()->primary_dpt == $dept->name) {
238
+        ?>
239 239
                                         <li class="treeview">
240 240
                                             <a href="#">
241 241
                                                 <i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
Please login to merge, or discard this 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/kb.blade.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                 <?php
43 43
 $company = App\Model\Settings\Company::where('id', '=', '1')->first();
44 44
 if ($company != null) {
45
-	?><?php }
45
+    ?><?php }
46 46
 ?>
47 47
                 <!-- Header Navbar: style can be found in header.less -->
48 48
                 <nav class="navbar navbar-static-top" role="navigation">
Please login to merge, or discard this patch.
resources/views/themes/default1/layouts/admin.blade.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,13 +144,13 @@
 block discarded – undo
144 144
                                                                                 <li class="header">TICKETS</li>
145 145
 
146 146
 <?php
147
- $inbox = App\Model\helpdesk\Ticket\Tickets::get();
147
+    $inbox = App\Model\helpdesk\Ticket\Tickets::get();
148 148
     ?>
149 149
      <?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();?>
150 150
      <?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
151 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 156
                                                 <i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i;?></small>
Please login to merge, or discard this 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.
resources/views/themes/default1/layouts/blank.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
             <header class="main-header">
42 42
                 <a href="../../index2.html" class="logo"><b>SUPPORT </b> CENTER</a>
43
-                <?php $company = App\Model\Settings\Company::where('id', '=', '1')->first();?>
43
+                <?php $company = App\Model\Settings\Company::where('id', '=', '1')->first(); ?>
44 44
 
45 45
                 @if($company->logo)
46 46
                 <img src="{{asset('dist')}}{{'/'}}{{$company->logo}}" class="logo" alt="User Image" />
Please login to merge, or discard this patch.
resources/views/themes/default1/layouts/client.blade.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
                 <div id="logo" class="site-logo text-center" style="font-size: 30px;">
32 32
                 <?php
33 33
                 $company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
34
-				$system = App\Model\helpdesk\Settings\System::where('id', '=', '1')->first();
35
-				?>
34
+                $system = App\Model\helpdesk\Settings\System::where('id', '=', '1')->first();
35
+                ?>
36 36
 				@if($system->url)
37 37
 					<a href="{!! $system->url !!}" rel="home">
38 38
 				@else
Please login to merge, or discard this patch.
resources/views/themes/default1/common/template/list-templates.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             <tbody>
37 37
                 @foreach($templates as $template)
38 38
                 <tr>
39
-                    <?php $type = App\Model\Common\TemplateType::where('id','=',$template->type)->first(); ?>
39
+                    <?php $type = App\Model\Common\TemplateType::where('id', '=', $template->type)->first(); ?>
40 40
                     <td>{!! $type->name !!}</td>
41 41
                     <td>{!! $template->name !!}</td>
42 42
                     <td>
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/layout/agent.blade.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@
 block discarded – undo
290 290
                                     $dept2 = $segments[1]; 
291 291
                                     $status2 = $segments[2];
292 292
                                 } else {
293
-                                     $dept2 = ''; 
293
+                                        $dept2 = ''; 
294 294
                                     $status2 = '';
295 295
                                 }
296 296
                             ?>
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
                         </li>
276 276
                         <li class="header">{!! Lang::get('lang.Departments') !!}</li>
277 277
                         <?php
278
-            $flattened = $department->flatMap(function ($values) {
278
+            $flattened = $department->flatMap(function($values) {
279 279
                 return $values->keyBy('status');
280 280
             });
281 281
             $statuses = $flattened->keys();
@@ -283,10 +283,10 @@  discard block
 block discarded – undo
283 283
                             <?php
284 284
                                 $segments = \Request::segments();
285 285
                                 $segment = "";
286
-                                foreach($segments as $seg){
287
-                                    $segment.="/".$seg;
286
+                                foreach ($segments as $seg) {
287
+                                    $segment .= "/".$seg;
288 288
                                 }
289
-                                if(count($segments) > 2) {
289
+                                if (count($segments) > 2) {
290 290
                                     $dept2 = $segments[1]; 
291 291
                                     $status2 = $segments[2];
292 292
                                 } else {
Please login to merge, or discard this patch.
resources/views/themes/default1/agent/layout/kb.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         <div class="wrapper" id="RefreshAssign">
43 43
 
44 44
             <header class="main-header">
45
-            <?php $settings = App\Model\kb\Settings::where('id', '=', '1')->first();?>
45
+            <?php $settings = App\Model\kb\Settings::where('id', '=', '1')->first(); ?>
46 46
                 @if($settings->logo)
47 47
                     <a href=""><img src="{{asset('lb-faveo/Img/icon/'.$settings->logo)}}" class="logo" alt="KNOWLEDGE BASE"/></a>
48 48
                 @else
Please login to merge, or discard this patch.