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

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

@stop @section('content') @if (Session::has('fails'))
{!! Lang::get('lang.alert') !!}! {{ Session::get('fails') }}
@endif @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::model($users, ['url' => 'user/' . $users->id, 'method' => 'PATCH']) !!}

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

    {!! 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('organization', Lang::get('lang.organization')) !!}
    {!! Form::label('dept_id', 'Phòng ban') !!}
    {!! 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::input('number', '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('ban', Lang::get('lang.ban')) !!}
    {!! Form::radio('ban', '1', true) !!} {{ Lang::get('lang.enable') }}
    {!! Form::radio('ban', '0') !!} {{ Lang::get('lang.disable') }}
    {!! Form::label('internal_note', Lang::get('lang.internal_notes')) !!} {!! Form::textarea('internal_note', null, ['class' => 'form-control', 'size' => '30x5']) !!}
    @stop @section('FooterInclude') @stop