@extends('admin.layout.app') @section('content') Users Users @include('admin.layout.session') Edit User Delete @method('delete') @csrf @csrf @method('put') Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif Email @if ($errors->has('email')) {{ $errors->first('email') }} @endif Password @if ($errors->has('password')) {{ $errors->first('password') }} @endif Roles {!! 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 Submit Back @endsection @push('js') @endpush