@extends ('backend.layouts.app') @section ('title', trans('labels.backend.access.users.management') . ' | ' . trans('labels.backend.access.users.edit')) @section('page-header')

{{ trans('labels.backend.access.users.management') }} {{ trans('labels.backend.access.users.edit') }}

@endsection @section('content') {{ Form::model($user, ['route' => ['admin.access.user.update', $user], 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'PATCH']) }}

{{ trans('labels.backend.access.users.edit') }}

@include('backend.access.includes.partials.user-header-buttons')
{{ Form::label('name', trans('validation.attributes.backend.access.users.name'), ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.backend.access.users.name'), 'required' => 'required']) }}
{{ Form::label('email', trans('validation.attributes.backend.access.users.email'), ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('email', null, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.backend.access.users.email'), 'required' => 'required']) }}
@if ($user->id != 1)
{{ Form::label('status', trans('validation.attributes.backend.access.users.active'), ['class' => 'col-lg-2 control-label']) }}
{{ Form::checkbox('status', '1', $user->status == 1) }}
{{ Form::label('confirmed', trans('validation.attributes.backend.access.users.confirmed'), ['class' => 'col-lg-2 control-label']) }}
{{ Form::checkbox('confirmed', '1', $user->confirmed == 1) }}
{{ Form::label('status', trans('validation.attributes.backend.access.users.associated_roles'), ['class' => 'col-lg-2 control-label']) }}
@if (count($roles) > 0) @foreach($roles as $role) id, old('assignees_roles')) ? 'checked' : '') : (in_array($role->id, $user_roles) ? 'checked' : '') }} id="role-{{$role->id}}" /> ( {{ trans('labels.general.show') }} {{ trans('labels.backend.access.users.permissions') }} )
@endforeach @else {{ trans('labels.backend.access.users.no_roles') }} @endif
@endif
{{ link_to_route('admin.access.user.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-xs']) }}
{{ Form::submit(trans('buttons.general.crud.update'), ['class' => 'btn btn-success btn-xs']) }}
@if ($user->id == 1) {{ Form::hidden('status', 1) }} {{ Form::hidden('confirmed', 1) }} {{ Form::hidden('assignees_roles[0]', 1) }} @endif {{ Form::close() }} @endsection @section('after-scripts') {{ Html::script('js/backend/access/users/script.js') }} @endsection