@extends(config('laravelusers.laravelUsersBladeExtended')) @section('template_title') {!! trans('laravelusers::laravelusers.editing-user', ['name' => $user->name]) !!} @endsection @section('template_linked_css') @if(config('laravelusers.enabledDatatablesJs')) @endif @if(config('laravelusers.fontAwesomeEnabled')) @endif @include('laravelusers::partials.styles') @include('laravelusers::partials.bs-visibility-css') @endsection @section('content')
@if(config('laravelusers.enablePackageBootstapAlerts'))
@include('laravelusers::partials.form-status')
@endif
{!! Form::open(array('route' => ['users.update', $user->id], 'method' => 'PUT', 'role' => 'form', 'class' => 'needs-validation')) !!} {!! csrf_field() !!}
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('name', trans('laravelusers::forms.create_user_label_username'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::text('name', $user->name, array('id' => 'name', 'class' => 'form-control', 'placeholder' => trans('laravelusers::forms.create_user_ph_username'))) !!}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('email', trans('laravelusers::forms.create_user_label_email'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::text('email', $user->email, array('id' => 'email', 'class' => 'form-control', 'placeholder' => trans('laravelusers::forms.create_user_ph_email'))) !!}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if($rolesEnabled)
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('role', trans('laravelusers::forms.create_user_label_role'), array('class' => 'col-md-3 control-label')); !!} @endif
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
@endif
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('password', trans('laravelusers::forms.create_user_label_password'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::password('password', array('id' => 'password', 'class' => 'form-control ', 'placeholder' => trans('laravelusers::forms.create_user_ph_password'))) !!}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('password_confirmation', trans('laravelusers::forms.create_user_label_pw_confirmation'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'form-control', 'placeholder' => trans('laravelusers::forms.create_user_ph_pw_confirmation'))) !!}
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
{!! Form::button(trans('laravelusers::forms.save-changes'), array('class' => 'btn btn-success btn-block margin-bottom-1 mt-3 mb-2 btn-save','type' => 'button', 'data-toggle' => 'modal', 'data-target' => '#confirmSave', 'data-title' => trans('laravelusers::modals.edit_user__modal_text_confirm_title'), 'data-message' => trans('laravelusers::modals.edit_user__modal_text_confirm_message'))) !!}
{!! Form::close() !!}
@include('laravelusers::modals.modal-save') @include('laravelusers::modals.modal-delete') @endsection @section('template_scripts') @include('laravelusers::scripts.delete-modal-script') @include('laravelusers::scripts.save-modal-script') @include('laravelusers::scripts.check-changed') @if(config('laravelusers.tooltipsEnabled')) @include('laravelusers::scripts.tooltips') @endif @endsection