
<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">{{ __('Permesso') }}</label>
        <div class="col-md-9">
            <input type="text" class="form-control" id="name" name="name" value="{{ $permission->name }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Nome permesso') }}</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="{{ $permission->description }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Descrizione permesso') }}</span>
        </div>
    </div>

    <!--SYSTEM-->
    @if(auth()->user()->isSuperadmin())
    <div class="form-group form-md-line-input">
        <label for="system" class="control-label col-md-2">{{ __('System') }} </label>
        <div class="col-md-4">
            <div class="md-checkbox-list">
                <div class="md-checkbox">
                    <input type="checkbox" id="system" name="system" {{ $permission->system?'checked':'' }} class="md-check">
                    <label for="system">
                        <span class="inc"></span>
                        <span class="check"></span>
                        <span class="box"></span>
                    </label>
                </div>
            </div>
        </div>
    </div>
    @endif

</div>
