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