@extends('admin.layout.app') @section('content')
@include('admin.layout.session')
Edit User
@csrf @method('put')
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if ($errors->has('password'))
{{ $errors->first('password') }}
@endif
{!! Form::select('roles[]', $roles, isset($user) ? $user->roles->pluck('id')->toArray() : null, ['class' => 'form-control select2', 'multiple']) !!} @if ($errors->has('roles'))
{{ $errors->first('roles') }}
@endif
@if(!$permissions->isEmpty()) @if(isset($user)) @include('admin.shared._permissions', ['closed' => 'true', 'model' => $user ]) @endif @endif
Back
@endsection @push('js') @endpush