{{ (@$user) ? 'Edit User' : 'Add User' }}
{{ Form::text(
'username',@$user->username,
[
'id' => 'username',
'class' => 'form-control',
])
}}
@if ($errors->has('username'))
{{ $errors->first('username') }}
@endif
{{ Form::text(
'email',@$user->email,
[
'id' => 'email',
'class' => 'form-control',
])
}}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if(!@$user)
@endif
@if(!@$user)
@if ($errors->has('password'))
{{ $errors->first('password') }}
@endif
{{ Form::select(
'role_id',
@$roles,
(@$user->role_id) ? @$user->role_id : '',
[
'id' => 'role_id',
'class' => 'form-control',
])
}}
@if ($errors->has('role_id'))
{{ $errors->first('role_id') }}
@endif
@endif
{{ Form::select(
'status',
array('1'=>'Active', '0'=>'Inactive'),@$user->status,
[
'id' => 'organization_name',
'class' => 'form-control',
])
}}