diff --git a/resources/views/themes/default1/admin/helpdesk/setting.blade.php b/resources/views/themes/default1/admin/helpdesk/setting.blade.php index 8b92e02b8..b3bde077e 100644 --- a/resources/views/themes/default1/admin/helpdesk/setting.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/setting.blade.php @@ -665,7 +665,7 @@ - + @stop diff --git a/resources/views/themes/default1/admin/layout/admin.blade.php b/resources/views/themes/default1/admin/layout/admin.blade.php index a5347b3c1..91cc33a37 100644 --- a/resources/views/themes/default1/admin/layout/admin.blade.php +++ b/resources/views/themes/default1/admin/layout/admin.blade.php @@ -96,14 +96,14 @@ @else - + @endif @@ -691,7 +691,7 @@ @endif - + diff --git a/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php b/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php index 540bed9c1..c328785da 100644 --- a/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php @@ -2,18 +2,18 @@ $term = $_GET["term"]; $organizations =App\Model\helpdesk\Agent_panel\Organization::where('name', 'LIKE', '%' . $term . '%')->get(); -$json = array(); +$json = []; foreach ($organizations as $organization) { - $json[] = array( + $json[] = [ 'value' => $organization["name"], 'label' => $organization["name"], 'org' => $organization["name"], - ); + ]; } echo json_encode($json); \ No newline at end of file diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php index d11add06d..68fe4fc01 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php @@ -2,11 +2,11 @@ $term = $_GET["term"]; $users = app\User::where('email', 'LIKE', '%' . $term . '%')->where('active', '=', 1)->where('role', '=', 'user')->get(); -$json = array(); +$json = []; foreach ($users as $user) { - $json[] = array( + $json[] = [ 'value' => $user["email"], 'label' => 'Name: '.$user["first_name"] .' '.$user["last_name"].' | '.('Email: <'.$user["email"].'>'), 'email' => $user["email"], @@ -17,7 +17,7 @@ foreach ($users as $user) { 'mobile' => $user["mobile"], 'phone_number' => $user["phone_number"] - ); + ]; } echo json_encode($json); diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php index c39017468..812b436cb 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php @@ -52,9 +52,9 @@ class="nav-link active" $date_time_format = UTC::getDateTimeFormat(); if (Auth::user()->role == 'agent') { $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); - $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count(); + $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', [1, 7])->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count(); } else { - $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->orderBy('id', 'DESC')->count(); + $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', [1, 7])->orderBy('id', 'DESC')->count(); } ?> diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php index 686acd1ef..bb5dab32d 100755 --- a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php @@ -149,7 +149,7 @@ if ($thread->title != "") { @endif - + {!! Lang::get('lang.generate_pdf') !!}