@if(Session::has('errors'))
        
        
            
            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('',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')) !!}  *
                {!!Form::select('group',[''=>Lang::get('lang.select_a_group'), Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],$user->assign_group,['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()],$user->primary_dpt,['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()],$user->agent_tzone,['class' => 'form-control select']) !!}
            
         
        
        
            {!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!}  *
        
        @while (list($key, $val) = each($teams))
        
             >  
        
        @endwhile