@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']) !!}
{{-- Nav tabs --}} {{-- Tab panes --}}
{{-- Details --}}
{!! 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
{{-- Groups --}}
@if ($groups->count() > 0)

@lang('admin.user_groups_list_select', ['name' => $user->name])

@foreach ($groups as $group)
@endforeach @else @endif
@lang('forms.cancel_action')
{!! Form::close() !!}
@endsection