@extends('themes.default1.admin.layout.admin') @section('Staffs') active @stop @section('staffs-bar') active @stop @section('agents') class="active" @stop @section('HeadInclude') @stop @section('PageHeader')

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

@stop @section('breadcrumbs') @stop @section('content')

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

{!! Lang::get('lang.create_an_agent') !!}
orderBy('id', 'ASC')->paginate(20); ?> @if(Session::has('success'))
{{Session::get('success')}}
@endif @if(Session::has('fails'))
{!! Lang::get('lang.fails') !!}! {{Session::get('fails')}}
@endif @if(Session::has('warning'))
{!! Lang::get('lang.warning') !!}! {{Session::get('warning')}}
@endif {{-- --}} @foreach($user as $use) @if($use->role == 'admin' || $use->role == 'agent') role == 'admin') { echo ''; } elseif ($use->role == 'agent') { echo ''; } ?> {{-- --}} @endif @endforeach
{{Lang::get('lang.name')}} {{Lang::get('lang.user_name')}} {{Lang::get('lang.role')}} {{Lang::get('lang.status')}} {{Lang::get('lang.group')}} {{Lang::get('lang.department')}} {{Lang::get('lang.created')}}{{Lang::get('lang.lastlogin')}}{{Lang::get('lang.action')}}
{!! $use->first_name !!} {!! " ". $use->last_name !!} {!! $use->user_name !!} @if($use->active=='1') {!! Lang::get('lang.active') !!} @else {!! Lang::get('lang.inactive') !!} @endif assign_group)->first(); $department = App\Model\helpdesk\Agent\Department::whereId($use->primary_dpt)->first(); ?> {{ $group->name }} {{ $department->name }} {{ UTC::usertimezone($use->created_at) }}{{$use->Lastlogin_at}} {!! Form::open(['route'=>['agents.destroy', $use->id],'method'=>'DELETE']) !!} {!! Lang::get('lang.edit') !!} {{-- {!! Form::button(' ' . Lang::get('lang.delete') ,['type' => 'submit', 'class'=> 'btn btn-warning btn-xs btn-flat','onclick'=>'return confirm("Are you sure?")']) !!} --}} {!! Form::close() !!}
@stop