@extends('layouts.app') {{-- Customize layout sections --}} @section('subtitle', 'USERS') @section('content_header_title', 'USERS') @section('content_header_subtitle', 'NEW') {{-- Content body: main page content --}} @section('content_body') {{html()->form('POST', route('user.store'))->open()}}

NEW USER

{{html()->label('Name', 'name')}} {{html()->text('name')->class('form-control'.($errors->has('name') ? ' is-invalid' : ''))->placeholder('Name')}} {{$errors->first('name')}}
{{html()->label('Email', 'email')}} {{html()->text('email')->class('form-control'.($errors->has('email') ? ' is-invalid' : ''))->placeholder('Email')}} {{$errors->first('email')}}


@foreach($roles->chunk(5) as $role_group)
@foreach($role_group as $role) @if($role->name != 'superadmin' || auth()->user()->hasRole('superadmin'))
{{html()->checkbox('roles[]', false, $role->name)->class('custom-control-input')->id('role'.$role->id)}} {{html()->label($role->name, 'role'.$role->id)->class('custom-control-label')}}
@endif @endforeach
@endforeach
{{html()->form()->close()}} @stop {{-- Push extra CSS --}} @push('css') {{-- Add here extra stylesheets --}} @endpush {{-- Push extra scripts --}} @push('js') @endpush