@extends('layout.main')
@section('title', config('app.name') . ' | Editor')
@section('content')
        <!-- main content start-->
<!-- main content start-->

<!-- main content start-->
<div id="page-wrapper">
    <div class="main-page">

        <div class="tables">
            <div class="pull-left" style="position: relative;top:-2em;">
                <h3 class="title1">Text Editor</h3>

            </div>
            <div class="pull-right  col-lg-4" style="position: relative;top:-2em;">


                <span class="err_company" style="color:#c9302c;font-size: 15px;"></span>
                <select data-placeholder="Choose a Text File" class="chosen-select  form-control1"
                        required
                        tabindex="2" id="title_filter" name="title_filter">
                    <option value=""></option>
                    @if(isset($editors))
                        @forelse($editors as $editor)
                            <option value="{{$editor->id}}">{{$editor->title}}</option>
                        @empty
                        @endforelse

                    @endif

                </select>


            </div>

            <div class="" style="position: relative;top:2em;" data-example-id="bordered-table">
                <div class="form-group">

                    <div class="col-sm-8" style="position: relative;top:-1em;">
                        <span class="err_name" style="color:#c9302c;font-size: 15px;"></span>
                        <input type="text" class="form-control1" id="title" name="title"
                               placeholder="Enter Title">
                        <input type="hidden" id="set_id" value="0">
                    </div>


                </div>
                <div class="widget-shadow">

                    <div class="col-lg-12" id=modal style="width:95%">
                    </div>
                </div>

            </div>
            <div class="col-lg-12">

            </div>

        </div>
        <div class="col-lg-12 text-center">
            <br>
            <br>

            <a href="" class="text-center btn btn-success save_text_editor" style="position: relative;left:-3em;">Save
                File</a>

        </div>
    </div>
</div>


{{--loading cotent--}}
<div class="modal" id="loading" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">

            <div class="modal-body text-center">
                <img src="/images/loading.gif" style="width:20%;" class="center-block">
                <span class="badge badge-warning">Please Wait</span>
            </div>

        </div>
    </div>
</div>

@endsection