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

    <div class="form-group form-md-line-input {{ $errors->has('label')?' has-error ':'' }}">
        <label class="col-md-2 control-label" for="label">{{ __('Etichetta') }}</label>
        <div class="col-md-9">
            <input type="text" class="form-control" id="label" name="label" value="{{ $menuitem->label }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Testo da visualizzare nella sidebar') }}</span>
        </div>
    </div>

    <div class="form-group form-md-line-input form-md-floating-label">
        <label class="col-md-2 control-label" for="link">{{ __('Link') }}</label>
        <div class="col-md-9">
            <input type="text" class="form-control" id="link" name="link" value="{{ $menuitem->link }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Testo da visualizzare nella sidebar') }}</span>
        </div>
    </div>

    <div class="form-group form-md-line-input {{ $errors->has('position')?' has-error ':'' }}">
        <label class="col-md-2 control-label" for="position">{{ __('Posizione') }}</label>
        <div class="col-md-9">
            <input type="text" class="form-control" id="position" name="position" value="{{ $menuitem->position }}">
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Testo da visualizzare nella sidebar') }}</span>
        </div>
    </div>

    {{--PADRE--}}
    <div class="form-group form-md-line-input">
        <label class="col-md-2 control-label" for="parent">{{ __('Padre') }}</label>
        <div class="col-md-9">
            <select class="form-control md-select" id="parent" name="parent">
                <option value="0">{{ __('Livello root') }}</option>
                @foreach($parentmenu as $parentitem)
                    <option value="{{ $parentitem->id }}" @if($parentitem->id == $menuitem->parent) selected @endif>{{ ucwords($parentitem->label) }}</option>
                @endforeach
            </select>
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Menu padre') }}</span>
        </div>
    </div>

    {{--ATTIVO--}}
    <div class="form-group form-md-line-input">
        <label class="col-md-2 control-label" for="active">{{ __('Attivo') }}</label>
        <div class="col-md-9">
            <select class="form-control" id="active" name="active">
                <option value="0" @if(!$menuitem->active) selected @endif>{{ __('No') }}</option>
                <option value="1" @if($menuitem->active) selected @endif>{{ __('Si') }}</option>
            </select>
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Attivare la funzionalità ?') }}</span>
        </div>
    </div>

    {{--FLAG ATTIVO--}}
    {{--<div class="form-group form-md-line-input">--}}
        {{--<label class="col-md-2 control-label" for="form_control_1">{{ __('Flag attivo') }}</label>--}}
        {{--<div class="col-md-9">--}}
            {{--<input type="text" class="form-control" id="active_flg" name="active_flg" value="{{ $menuitem->active_flg }}">--}}
            {{--<div class="form-control-focus"> </div>--}}
            {{--<span class="help-block">{{ __('Flag per disabilitare alcune funzioni per il singolo utente') }}</span>--}}
        {{--</div>--}}
    {{--</div>--}}

    {{--Nel MENU--}}
    <div class="form-group form-md-line-input">
        <label class="col-md-2 control-label" for="menu">{{ __('Nel menu') }}</label>
        <div class="col-md-9">
            <select class="form-control" id="menu" name="menu">
                <option value="0" @if(!$menuitem->menu) selected @endif>{{ __('No') }}</option>
                <option value="1" @if($menuitem->menu) selected @endif>{{ __('Si') }}</option>
            </select>
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Inserire nella sidebar ?') }}</span>
        </div>
    </div>

    <div class="form-group form-md-line-input">
        <label class="col-md-2 control-label" for="ico">{{ __('Icona') }}</label>
        <div class="col-md-9">
            <div class="input-icon left">
                <input type="text" class="form-control" id="ico" name="ico" value="{{ $menuitem->ico }}">
                <div class="form-control-focus"> </div>
                <span class="help-block">{{ __('Icona da visualizzare nella sidebar') }}</span>
                <i class="{{ $menuitem->ico }}"></i>
            </div>
        </div>
    </div>

    {{--SEPARATORE--}}
    <div class="form-group form-md-line-input">
        <label class="col-md-2 control-label" for="separator">{{ __('Separatore') }}</label>
        <div class="col-md-9">
            <select class="form-control" id="separator" name="separator">
                <option value="0" @if(!$menuitem->separator) selected @endif>{{ __('No') }}</option>
                <option value="1" @if($menuitem->separator) selected @endif>{{ __('Si') }}</option>
            </select>
            <div class="form-control-focus"> </div>
            <span class="help-block">{{ __('Menu separatore ? (Solo per menu 1° livello)') }}</span>
        </div>
    </div>

</div>