@extends('themes.base.layout') @section('title', trans('admin.edit_user_title', ['name' => $user->name])) @section('breadcrumb') @endsection @section('content')

@yield('title')

@lang('admin.edit_user_intro')


@if (count($errors) > 0)
    @foreach ($errors->all() as $form_error)
  • {{ $form_error }}
  • @endforeach
@endif {!! Form::model($user, ['route' => ['user.update', $user->id], 'method' => 'PUT']) !!}
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!} {!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
{!! Form::label('email', trans('forms.email_label'), ['class' => 'control-label']) !!} {!! Form::text('email', old('email'), ['class' => 'form-control']) !!}
{!! Form::label('password', trans('forms.password_label'), ['class' => 'control-label']) !!} {!! Form::password('password', ['class' => 'form-control']) !!}
{!! Form::label('password_confirmation', trans('forms.password_confirm_label'), ['class' => 'control-label']) !!} {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
@if (!$user->is_activated)
@endif
@lang('forms.cancel_action') {!! Form::submit(trans('forms.save_action'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}
@endsection