<div class="form-group row">

    <input type="hidden" name="_method" value="PATCH">
    <div class="col-sm-12">
        {{ html()->label('Title')->for('title') }}
        {{--        <label for="title">Title</label>--}}
    </div>
    <div class="col-sm-12">
        {{ html()->text('title')
       ->class('form-control ')
       ->placeholder('Title')
       ->attribute('maxlength', 191)
       ->required()}}
        {{--        <input type="text" name="title" class="form-control" style="width: 100%" placeholder="Title"></input>--}}
    </div>
</div>
<div class="form-group row">
    <div class="col-sm-12">
        {{ html()->label('Body')->for('body')->id('edit_thread_body_label') }}
        {{--        <label for="title">Body</label>--}}
    </div>
    <div class="col-sm-12">
        {{ html()->textarea('body')
     ->class('form-control richtext')
     ->style('width: 100%')
     ->placeholder('Body')
}}
        {{--        <textarea name="body" class="form-control" id="new_thread_textarea" style="width: 100%" placeholder="Body"></textarea>--}}
    </div>
</div>
<div class="form-group row">
    <div class="col-sm-12">
        {{ html()->label('Tags')->for('tags[]') }}
    </div>
    <div class="col-sm-12">

        {{ html()->multiselect('tags[]', $tags->pluck('text', 'id'))
                            ->class('form-control')
                            ->style('width: 100%"')
                            ->value($thread->tags->pluck('id'))
                            ->required()
                            }}

    </div>
</div>
<div class="form-group row">
{{--    <div class="col-sm-12">--}}
{{--        {{ html()->label('Channel (Notification will be for admins)')->for('forum_channels_id') }}--}}
{{--    </div>--}}
{{--    <div class="col-sm-12">--}}
{{--        {{ html()->select('forum_channels_id', $channels->pluck('name', 'id'))--}}
{{--                                    ->class('form-control')--}}
{{--                                    ->style('width: 100%"')--}}
{{--                                    ->required()--}}
{{--                                    }}--}}

{{--            --}}{{--        <input type="checkbox" class="form-check-input" name="announcement" value="1">--}}
{{--            --}}{{--        <label class="form-check-label" for="announcement">Announcement (admin only)</label>--}}

{{--    </div>--}}
</div>
<div class="form-group">
    {!! Form::button('<i class="far fa-save" aria-hidden="true"></i> '.$submitButtonText, ['type' => 'submit', 'class'=>'btn btn-outline-success btn-block']) !!}
</div>
