@extends('dashboard::master') {{-- Autor: Giovanni López O. @gmlo_89 --}} @section('head') @stop @section('content')

{{ $title }}

{{ Alert::render() }}
@if(!isset($myProfile))
{{ trans('dashboard::label.go_back') }}
@endif
{{ Form::model($user, $formOptions) }}
{{ trans('users::label.user_info') }}
{{ Form::text('name', null, array( "class" => "form-control required", "id" => "inputName", "placeholder" => trans('users::label.name') )) }}
{{ Form::email('email', null, array( "class" => "form-control required email", "id" => "inputEmail", "placeholder" => trans('users::label.email') )) }}
{{ trans('users::label.avatar') }}
@if($user->exists && !empty($user->avatar))
@endif
{{ trans('users::label.access_info') }}
@if(!$user->exists)
{{ Form::text('username', null, array( "class" => "form-control required", "id" => "inputUsername", "placeholder" => trans('users::label.username') )) }}
{{ Form::password('password', array( "class" => "form-control required", "id" => "password" )) }}
{{ Form::password('password_confirmation', array( "class" => "form-control required", "id" => "password_confirmation" )) }}
@else
{{ Form::text('username', null, array( "class" => "form-control required", "id" => "inputUsername", "placeholder" => trans('users::label.username'), "readonly" => "readonly", "disabled" => "disabled" )) }}
@if($user->id != Auth::user()->id)
@endif @endif @if(!isset($myProfile))
{{ Form::select('active', array('1' => trans('users::label.active'), '0' => trans('users::label.inactive')), null, array( "class" => "form-control ", "id" => "inputStatus", "placeholder" => trans('users::label.status') )) }}
{{ Form::select('usergroup', $userGroupsOptions, null, array( "class" => "form-control ", "id" => "inputUserGroup", )) }}
@endif
@stop @section('scripts') {{ JavaScript::makeVar('msg_confirm_delete', trans('usergroups::message.confirm_delete_usergroup')) }} @stop