
<div class="form-body">

    <div class="form-group form-md-line-input {{ $errors->has('name')?' has-error ':'' }}">
        <label class="col-md-2 control-label" for="name">{{ __('Ruolo') }}</label>
        <div class="col-md-9">
            <input type="text" class="form-control" id="name" name="name" value="{{ $role->name }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Nome ruolo') }}</span>
        </div>
    </div>

    <div class="form-group form-md-line-input {{ $errors->has('description')?' has-error ':'' }}">
        <label class="col-md-2 control-label" for="label">{{ __('Descrizione') }}</label>
        <div class="col-md-9">
            <input type="text" class="form-control" id="description" name="description" value="{{ $role->description }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Descrizione ruolo') }}</span>
        </div>
    </div>
    {{--MENU ATTIVI--}}
    <div class="form-group form-md-line-input">
        <label for="menulist" class="control-label col-md-2">{{ __('Menu') }} <span class="required">* </span></label>
        <div class="col-md-9 input-icon right">
            <select multiple id="menulist" name="menulist[]" class="form-control select2-multiple-nosearch" data-placeholder="{{ __('Selezionare un menu') }}" >
                @foreach($menuitems as $menuitem)
                    <option value="{{ $menuitem->id }}" {{ $rolemenus->contains($menuitem->id)?'selected':'' }} >{{ ucwords($menuitem->label) }}</option>
                @endforeach
            </select>
            <i class="fa fa-caret-down"></i>
        </div>
    </div>

    {{--PERMESSI--}}
    <div class="form-group form-md-line-input">
        <label for="permlist" class="control-label col-md-2">{{ __('Permessi') }} <span class="required">* </span></label>
        <div class="col-md-9 input-icon right">
            <select multiple id="permlist" name="permlist[]" class="form-control select2-multiple-nosearch" data-placeholder="{{ __('Selezionare un permesso') }}" >
                @foreach($permitems as $permitem)
                    <option value="{{ $permitem->id }}" {{ $rolepermissions->contains($permitem->id)?'selected':'' }} >{{ ucwords($permitem->name) }}</option>
                @endforeach
            </select>
            <i class="fa fa-caret-down"></i>
        </div>
    </div>
</div>