@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.agents')}}

@stop @section('breadcrumbs') @stop @section('content') {!! Form::open(array('action' => 'Admin\helpdesk\AgentController@store' , 'method' => 'post') )!!}

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

@if(Session::has('errors'))
{!! Lang::get('lang.alert') !!}!
@if($errors->first('user_name'))
  • {!! $errors->first('user_name', ':message') !!}
  • @endif @if($errors->first('first_name'))
  • {!! $errors->first('first_name', ':message') !!}
  • @endif @if($errors->first('last_name'))
  • {!! $errors->first('last_name', ':message') !!}
  • @endif @if($errors->first('email'))
  • {!! $errors->first('email', ':message') !!}
  • @endif @if($errors->first('ext'))
  • {!! $errors->first('ext', ':message') !!}
  • @endif @if($errors->first('phone_number'))
  • {!! $errors->first('phone_number', ':message') !!}
  • @endif @if($errors->first('mobile'))
  • {!! $errors->first('mobile', ':message') !!}
  • @endif @if($errors->first('active'))
  • {!! $errors->first('active', ':message') !!}
  • @endif @if($errors->first('role'))
  • {!! $errors->first('role', ':message') !!}
  • @endif @if($errors->first('group'))
  • {!! $errors->first('group', ':message') !!}
  • @endif @if($errors->first('primary_department'))
  • {!! $errors->first('primary_department', ':message') !!}
  • @endif @if($errors->first('agent_time_zone'))
  • {!! $errors->first('agent_time_zone', ':message') !!}
  • @endif @if($errors->first('team'))
  • {!! $errors->first('team', ':message') !!}
  • @endif
    @endif @if(Session::has('fails2'))
    Alert!
  • {!! Session::get('fails2') !!}
  • @endif
    {!! Form::label('user_name',Lang::get('lang.user_name')) !!} * {!! Form::text('user_name',null,['class' => 'form-control']) !!}
    {!! Form::label('first_name',Lang::get('lang.first_name')) !!} * {!! Form::text('first_name',null,['class' => 'form-control']) !!}
    {!! Form::label('last_name',Lang::get('lang.last_name')) !!} * {!! Form::text('last_name',null,['class' => 'form-control']) !!}
    {!! Form::label('email',Lang::get('lang.email_address')) !!} * {!! Form::email('email',null,['class' => 'form-control']) !!}
    {!! Form::text('ext',null,['class' => 'form-control']) !!}
    {!! Form::label('country_code',Lang::get('lang.country-code')) !!} {!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
    {!! Form::label('phone_number',Lang::get('lang.phone')) !!} {!! Form::text('phone_number',null,['class' => 'form-control']) !!}
    {!! Form::label('mobile',Lang::get('lang.mobile_number')) !!} {!! Form::text('mobile',null,['class' => 'form-control']) !!}

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

    {!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}

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

    {!! Form::label('active',Lang::get('lang.status')) !!}
    {!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
    {!! Form::radio('active','0',null) !!} {{Lang::get('lang.inactive')}}
    {!! Form::label('role',Lang::get('lang.role')) !!}
    {!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}}
    {!! Form::radio('role','agent',null) !!} {{Lang::get('lang.agent')}}
    {!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} * {!!Form::select('group',[''=>Lang::get('lang.select_a_group'),Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!} * {!! Form::select('primary_department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!} * {!! Form::select('agent_time_zone', [''=>Lang::get('lang.select_a_time_zone'),Lang::get('lang.time_zones')=>$timezones->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} * @while (list($key, $val) = each($teams))

    @endwhile
    {!!Form::close()!!} @stop