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

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

@stop @section('content') role == 'agent') { $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); $tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '>', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count(); } else { $tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '>', 0)->orderBy('id', 'DESC')->count(); } ?>

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

{!! $tickets !!} {!! Lang::get('lang.tickets') !!}
@if(Session::has('success'))
{{Session::get('success')}}
@endif @if(Session::has('fails'))
{!! Lang::get('lang.alert') !!}! {{Session::get('fails')}}
@endif {!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}

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