@extends('themes.default1.agent.layout.agent') @section('Tickets') class="nav-link active" @stop @section('ticket-bar') active @stop @section('dept-ticket-bar') class="nav-link active" @stop @section('overdue') class="nav-link active" @stop @section('PageHeader')

{{Lang::get('lang.tickets')}}

@stop @section('content') where('tickets.isanswered', '=', 0) ->whereNotNull('tickets.duedate') ->where('tickets.duedate', '!=', '00-00-00 00:00:00') // ->where('duedate','>',\Carbon\Carbon::now()); ->where('tickets.duedate', '<', \Carbon\Carbon::now()); if (\Auth::user()->role === 'agent') { $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); $otickets = $otickets->where('dept_id', '=', $dept->id); } $overdue_ticket = $otickets->count(); ?> @if(Session::has('success'))
{{Session::get('success')}}
@endif @if(Session::has('fails'))
{!! Lang::get('lang.alert') !!}! {{Session::get('fails')}}
@endif

{!! Lang::get('lang.overdue') !!}

 ({!! $overdue_ticket !!} {!! Lang::get('lang.tickets') !!})
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!} {{-- --}}

{!!$table->render('vendor.Chumper.template')!!}
{!! Form::close() !!}
{!! $table->script('vendor.Chumper.ticket-javascript') !!} @stop