@extends('themes.default1.agent.layout.agent') @section('Tickets') class="active" @stop @section('ticket-bar') active @stop @section('inbox') class="active" @stop @section('content') first(); if (Auth::user()->role == 'agent') { $tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('assigned_to', '>', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->paginate(20); } else { $tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('assigned_to', '>', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->paginate(20); } ?>

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

{!! $tickets->total() !!} {!! Lang::get('lang.tickets') !!}
@if(Session::has('success'))
Success {{Session::get('success')}}
@endif @if(Session::has('fails'))
Fail! {{Session::get('fails')}}
@endif
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
{!! Datatable::table() ->addColumn( "", Lang::get('lang.subject'), Lang::get('lang.ticket_id'), Lang::get('lang.priority'), Lang::get('lang.from'), Lang::get('lang.last_replier'), Lang::get('lang.assigned_to'), Lang::get('lang.last_activity')) ->setUrl(route('get.dept.inprocess', $dept->id)) ->setOrder(array(7=>'desc')) ->setClass('table table-hover table-bordered table-striped') ->render();!!}
{!! Form::close() !!}
@stop