@include("messages")
<?php
$size = Config::get('params.best_image_size');
$required = "";
?>
<div class="row">
    <div class="col-sm-12">
        <div class="form-group">
            {!! Form::label('Title') !!}
            {!! Form::text('title', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
</div>
<div class="row">
    <div class="col-sm-12">
        <div class="form-group">
            {!! Form::label('Alternative Text') !!}
            {!! Form::text('altText', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
</div>
<div class="row">
    <div class="col-sm-12">
        <div class="form-group">
            {!! Form::label('description') !!}
            {!! Form::textarea('description', null, ['class'=>'form-control', 'rows' => 3, 'cols' => 3, 'style' => '']) !!}
        </div>
    </div>

</div>
<div class="row">

    <div class="col-sm-12">
        <div class="row form-group">
            <label class="col-xl-2 col-lg-2 col-form-label"> Image</label>
            <div class="col-lg-8 col-xl-8">
                <input type="file" name="file" id="file">
                <br clear="all"/>
                Best Image Size(<?php echo $size; ?>)
            </div>
            <div class="col-lg-1 col-xl-1">

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

</div>
<br clear="all" />
<div class="row">
    <div class="col-md-8">
        <button type="submit" class="btn btn-primary mr-1 mb-1 waves-effect waves-light">Save</button>
        <a href="{{url('admin/'.$action)}}" class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">Cancel</a>
    </div>
</div>

@include('vendor_script')
@section('myscript')
<script>
    var ckview = document.getElementById("ckview");
    //CKEDITOR.replace(ckview, options);
    CKEDITOR.config.allowedContent = true;
    CKEDITOR.replace(ckview, {filebrowserImageBrowseUrl: '/file-manager/ckeditor',
    });

</script>
@endsection