@extends('admin.layout.app') @section('content')
@include('admin.layout.session')
Add New User
@csrf
@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
Back
@endsection @push('js') @endpush