Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
resources/views/themes/default1/layouts/agent.blade.php 1 patch
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.
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 1 patch
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.
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/agent/layout/agent.blade.php 1 patch
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.
views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php 1 patch
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.
resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php 1 patch
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.
views/themes/default1/agent/helpdesk/ticket/duetodayticket.blade.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             $dept =  App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
51 51
             $todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->where('dept_id', '=', $dept->id)->count();
52 52
         }
53
- ?>
53
+    ?>
54 54
  <!-- //no need -->
55 55
 <!-- Main content -->
56 56
 <div class="box box-primary">
Please login to merge, or discard this patch.
views/themes/default1/agent/helpdesk/dashboard/dashboardOld.blade.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,13 +83,13 @@
 block discarded – undo
83 83
     }
84 84
     ?>
85 85
          <?php
86
- if (Auth::user()->role == 'admin' || Auth::user()->role == 'agent') {
86
+    if (Auth::user()->role == 'admin' || Auth::user()->role == 'agent') {
87 87
             $todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->get());
88 88
         } else {
89 89
             $dept =  App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
90 90
             $todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->where('dept_id', '=', $dept->id)->get());
91 91
         }
92
- ?>
92
+    ?>
93 93
     <div class="col-md-2" style="width:20%;">
94 94
  <a href="{!! route('inbox.ticket') !!}">
95 95
           <div class="info-box">
Please login to merge, or discard this patch.