@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') @stop @section('breadcrumbs') @stop @section('content') {!! Form::model($user, ['url' => 'agents/'.$user->id,'method' => 'PATCH'] )!!}

Edit {!! 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,['disabled' => 'disabled','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']) !!}
{!! $errors->first('ext', ':message') !!} {!! Form::text('ext',null,['class' => 'form-control']) !!}
{!! Form::label('phone_number',Lang::get('lang.phone')) !!} {!! $errors->first('phone_number', 'Invalid Phone Number') !!} {!! Form::text('phone_number',null,['class' => 'form-control']) !!}
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!} {!! $errors->first('mobile', 'Invalid 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')) !!} {!! $errors->first('active', ':message') !!}
{!! 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')) !!} {!! $errors->first('role', ':message') !!}
{!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}}
{!! Form::radio('role','agent',null) !!} {{Lang::get('lang.agent')}}
{{--
--}} {{--
--}} {{--
--}} {{-- {!! 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', $groups->lists('name','id'),null,['class' => 'form-control select']) !!}
{!! Form::label('primary_dpt', Lang::get('lang.primary_department')) !!} {!! $errors->first('primary_dpt', ':message') !!} {!!Form::select('primary_dpt', $departments->lists('name','id'),null,['class' => 'form-control select']) !!}
{!! Form::label('agent_tzone', Lang::get('lang.agent_time_zone')) !!} {!! $errors->first('agent_tzone', ':message') !!} {!!Form::select('agent_tzone', $timezones->lists('name','id'),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