@extends('admin.framework') @section('title') Edit User @endsection @section('head') @endsection @section('back_content')

Users

Edit User

System users

{!! Form::open(array('route' => ['users.update', $user->id], 'method' => 'PUT', 'role' => 'form', 'class' => 'needs-validation', 'enctype'=>'multipart/form-data')) !!} {!! csrf_field() !!}
{!! Form::label('first_name', 'First name *', array('class' => '')); !!}
{!! Form::text('first_name', $user->first_name, array('id' => 'first_name', 'class' => 'form-control', 'placeholder' => 'e.g. Jerome', 'required')) !!}
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{!! Form::label('last_name', 'Last name *', array('class' => '')); !!}
{!! Form::text('last_name', $user->last_name, array('id' => 'last_name', 'class' => 'form-control', 'placeholder' => 'e.g. Moyer', 'required')) !!}
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{!! Form::label('email', 'Email Address*', array('class' => '')); !!}
{!! Form::email('email', $user->email, array('id' => 'email', 'class' => 'form-control', 'placeholder' => 'e.g. agee@gmail.com', 'required')) !!}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('mobile', 'Mobile Number *', array('class' => '')); !!}
{!! Form::text('mobile', $user->mobile, array('id' => 'mobile', 'class' => 'form-control', 'placeholder' => 'e.g. 0773123123', 'required')) !!}
@if ($errors->has('mobile')) {{ $errors->first('mobile') }} @endif
{!! Form::label('role', 'Role *', array('class' => '')); !!}
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
{{--
{!! Form::label('utype', 'User Type *', array('class' => '')); !!}
@if ($errors->has('utype')) {{ $errors->first('utype') }} @endif
--}}
{!! Form::label('password', 'Password', array('class' => '')); !!}
{!! Form::password('password', array('id' => 'password', 'class' => 'form-control', 'placeholder' => 'e.g. SecurePassword')) !!}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::label('password_confirmation', 'Confirm Password', array('class' => '')); !!}
{!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'form-control', 'placeholder' => 'e.g. SecurePassword')) !!}
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif

{!! Form::button('Update User', array('class' => 'btn btn-primary','type' => 'submit' )) !!} {!! Form::close() !!}
@endsection @section('back_footer') @endsection