@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')


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