@extends('themes.default1.layouts.blank') @section('Staffs') class="active" @stop @section('staffs-bar') active @stop @section('staffs') class="active" @stop @section('HeadInclude') @stop @section('PageHeader') @stop @section('breadcrumbs') @stop @section('content') {!! Form::open(array('action' => 'Admin\AgentController@store' , 'method' => 'post') )!!}

Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}

{!! Form::label('user_name',Lang::get('lang.user_name')) !!} {!! $errors->first('user_name', ':message') !!} {!! Form::text('user_name',null,['class' => 'form-control']) !!}
{!! Form::label('first_name',Lang::get('lang.first_name')) !!} {!! $errors->first('first_name', ':message') !!} {!! Form::text('first_name',null,['class' => 'form-control']) !!}
{!! Form::label('last_name',Lang::get('lang.last_name')) !!} {!! $errors->first('last_name', ':message') !!} {!! Form::text('last_name',null,['class' => 'form-control']) !!}
{!! Form::label('email',Lang::get('lang.email_address')) !!} {!! $errors->first('email', ':message') !!} {!! Form::email('email',null,['class' => 'form-control']) !!}
{!! Form::label('phone',Lang::get('lang.phone')) !!} {!! $errors->first('phone', ':message') !!} {!! Form::text('phone',null,['class' => 'form-control']) !!}
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!} {!! $errors->first('mobile', ':message') !!} {!! 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('role',Lang::get('lang.role')) !!} {!! $errors->first('role', ':message') !!}
{!! Form::radio('role','admin',true) !!}{{Lang::get('lang.admin')}}
{!! Form::radio('role','agent',null) !!}{{Lang::get('lang.agent')}}
{!! Form::label('account_type',Lang::get('lang.account_type')) !!} {!! $errors->first('account_type', ':message') !!}
{!! Form::radio('account_type','1',true) !!}{{Lang::get('lang.active')}}
{!! Form::radio('account_type','0',null) !!}{{Lang::get('lang.locked')}}
{!! Form::label('',Lang::get('lang.day_light_saving')) !!}
{!! Form::checkbox('daylight_save',1,null,['class' => 'checkbox']) !!}
{!! Form::label('limit_access',Lang::get('lang.limit_access')) !!}
{!! Form::checkbox('limit_access',1,null,['class' => 'checkbox']) !!}
{!! Form::label('directory_listing',Lang::get('lang.directory_listing')) !!}
{!! Form::checkbox('directory_listing',1,null,['class' => 'checkbox']) !!}
{!! Form::label('vocation_mode',Lang::get('lang.vocation_mode')) !!}
{!! Form::checkbox('vocation_mode',1,null,null,['class' => 'checkbox']) !!}
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} {!! $errors->first('assign_group', ':message') !!} {!!Form::select('assign_group',[''=>'Select a Group','Groups'=>$groups->lists('name','name')],null,['class' => 'form-control select']) !!}
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!} {!! $errors->first('primary_dpt', ':message') !!} {!!Form::select('primary_dpt', [''=>'Select a Department','Departments'=>$departments->lists('name','name')],null,['class' => 'form-control select']) !!}
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!} {!! $errors->first('agent_tzone', ':message') !!} {!!Form::select('agent_tzone', [''=>'Select a Time Zone','Time Zones'=>$timezones->lists('name','name')],null,['class' => 'form-control select']) !!}

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

{!! $errors->first('team_id', 'Assign Team is Required') !!}
@while (list($key, $val) = each($teams))

@endwhile
@stop @section('FooterInclude') @stop