{!! Form::open(['url' => $url, 'class' => 'modal-content']) !!}
<input type="hidden" name="id" value="{{ $value->id }}">
<input type="hidden" name="model" value="{{$data['model']}}">
<input type="hidden" name="action" value="{{$data['action']}}">
<input type="hidden" name="request" value="{{$data['request']}}">

<div class="modal-header">
    <h5 class="modal-title">
        {{$data['title']}}
    </h5>
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">

    <div class="form-row">
        <div class="form-group col">
            <label class="custom-control custom-checkbox float-right">
                {!! Form::checkbox('active', 1, $value->active, ['class'=>'custom-control-input']) !!}
                <span class="custom-control-label">{{__('aktiv')}}</span>
            </label>
            <label for="name" class="form-label">Name (required)</label>
            {{ Form::text('name', $value->name,  array('placeholder'=>'', 'class'=>'form-control', 'required'=>'true')) }}
        </div>
    </div>

    <div class="form-row">
        <div class="form-group col">
            <label for="identifier" class="form-label">Slug</label>
            {{ Form::text('identifier', $value->identifier,  array('placeholder'=>'', 'class'=>'form-control')) }}
        </div>
    </div>

    <div class="form-group mb-1">
        <label class="form-label" for="description">Description</label>
        {{ Form::textarea('description', $value->description,  array('class'=>'form-control', 'rows'=>2)) }}
    </div>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">close</button>
    <button type="submit" class="btn btn-primary"><i class="ion ion-md-save"></i> save</button>
</div>
{!! Form::close() !!}

