@extends('layouts.app') @section('title', trans('user.edit')) @section('content')

{{ $user->name }} Edit {{ trans('user.user') }}

{!! Form::model($user, ['route'=>['users.update', $user->id], 'method' => 'patch']) !!}

{{ trans('user.show') }}

{!! FormField::text('name', ['label' => trans('app.name')]) !!} {!! FormField::email('email', ['label' => trans('user.email')]) !!} {!! FormField::password('password', [ 'label' => trans('auth.password'), 'info' => [ 'text' => 'Isi field ini jika ingin mengganti password user.', 'class' => 'info', ], ]) !!} {!! FormField::password('password_confirmation', [ 'label' => trans('auth.password_confirmation') ]) !!}

{{ trans('user.roles') }}

{!! FormField::checkboxes('role', $roles, ['label' => false, 'value' => $user->roles]) !!}
{!! Form::close() !!} @endsection