diff --git a/app/Http/Controllers/Agent/helpdesk/Filter/FilterController.php b/app/Http/Controllers/Agent/helpdesk/Filter/FilterController.php index 6a525c489..c9483d111 100644 --- a/app/Http/Controllers/Agent/helpdesk/Filter/FilterController.php +++ b/app/Http/Controllers/Agent/helpdesk/Filter/FilterController.php @@ -132,7 +132,7 @@ class FilterController extends Controller $join->on('ticket_status.id', '=', 'tickets.status'); }) ->where('tickets.status', '=', 1) - // ->where('tickets.isanswered', '=', 0) + ->where('tickets.isanswered', '=', 0) ->whereNotNull('tickets.duedate') ->where('tickets.duedate', '!=', '00-00-00 00:00:00') diff --git a/resources/views/themes/default1/agent/helpdesk/dashboard/dashboard.blade.php b/resources/views/themes/default1/agent/helpdesk/dashboard/dashboard.blade.php index 413abe043..a30e321a8 100644 --- a/resources/views/themes/default1/agent/helpdesk/dashboard/dashboard.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/dashboard/dashboard.blade.php @@ -38,9 +38,6 @@ class="active" {{-- --}}
-
@@ -75,18 +72,8 @@ class="active"
- - role == 'admin') { - $overdue_ticket = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('tickets.duedate','<', \Carbon\Carbon::now())->count(); - } else { - $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); - $overdue_ticket = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('tickets.duedate','<', \Carbon\Carbon::now())->where('dept_id', '=', $dept->id)->count(); - } - ?> - - {!! Lang::get('lang.overdue') !!} - {{ $overdue_ticket }} Tickets +s {!! Lang::get('lang.overdue') !!} + {{ $overdues->count() }} Tickets