{!! Form::open(['url' => '/admin/users', 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('Full Name') !!}
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Enter full name']) !!}
@if ($errors->has('name')){!! $errors->first('name') !!}@endif
{!! Form::label('Email') !!}
{!! Form::text('email', null, ['class' => 'form-control', 'placeholder' => 'Enter email']) !!}
@if ($errors->has('email')){!! $errors->first('email') !!}@endif
{!! Form::label('Password') !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'Enter password']) !!}
@if ($errors->has('password')){!! $errors->first('password') !!}@endif
{!! Form::label('Location') !!}
{!! Form::select('location_id', $locations, ($locations->location_id = 1) ? $locations->location_id : '', ['class'=> 'form-control']) !!}
@if ($errors->has('location_id')){!! $errors->first('location_id') !!}@endif
{!! Form::label('Status') !!}
{!! Form::select('user_is_exist', [1 => 'Active', 0 => 'Inactive'], null, ['class' => 'form-control']) !!}
{!! Form::label('User Avatar') !!}
{!! Form::file('user_avatar') !!}
@if ($errors->has('user_avatar')){!! $errors->first('user_avatar') !!}@endif
{!! Form::label('User Role') !!}
{!! Form::select('role_id', $roles, null, ['placeholder' => 'Select user role', 'class'=> 'form-control', 'id' => 'role_id']) !!}
@if ($errors->has('role_id')){!! $errors->first('role_id') !!}@endif
{!! Form::close() !!}