@extends('themes.default1.agent.layout.agent') @section('Users') class="active" @stop @section('user-bar') active @stop @section('user') class="active" @stop @section('PageHeader')

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

@stop @section('content') @if(Session::has('fails'))
{!! Lang::get('lang.alert') !!}! {{Session::get('fails')}}
@endif {!! Form::open(['action'=>'Agent\helpdesk\UserController@store','method'=>'post']) !!}

User Credentials

@if(Session::has('errors'))
{!! Lang::get('lang.alert') !!}!
@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('user_name'))
  • {!! $errors->first('user_name', ':message') !!}
  • @endif @if($errors->first('email'))
  • {!! $errors->first('email', ':message') !!}
  • @endif @if($errors->first('mobile'))
  • {!! $errors->first('mobile', ':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('active'))
  • {!! $errors->first('active', ':message') !!}
  • @endif
    @endif
    {!! 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('user_name',Lang::get('lang.user_name')) !!} * {!! Form::text('user_name',null,['class' => 'form-control']) !!}
    {!! Form::label('email',Lang::get('lang.email')) !!} * {!! Form::email('email',null,['class' => 'form-control']) !!}
    {!! Form::label('country_code',Lang::get('lang.country-code')) !!} {!! $errors->first('country_code', ':message') !!} {!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
    {!! Form::label('mobile',Lang::get('lang.mobile')) !!} {!! Form::text('mobile',null,['class' => 'form-control']) !!}
    {!! Form::text('ext',null,['class' => 'form-control']) !!}
    {!! Form::text('phone_number',null,['class' => 'form-control']) !!}
    {!! Form::label('active',Lang::get('lang.status')) !!}
    {!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
    {!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
    {!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!} {!! Form::textarea('internal_note',null,['class' => 'form-control', 'size' => '30x5']) !!}
     
    @stop