@include("messages")
    <?php
$required = "";
$size = Config::get('params.best_blog_categories_image_size');

?>

<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Title') !!}
            {!! Form::text('title', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Key') !!}
            {!! Form::text('key', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
</div>
<div class="row" >
    <div class="col-md-12 col-xs-12 col-lg-12">
        <div class="form-group " >
                
            {!! Form::label('Content') !!}    
           {!! Form::textarea('description', null, ['class'=>'form-control mb-20 editor','id'=>'ckview','rows' => 15, 'cols' => 80]) !!}

        </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   value="<?php echo isset($model->image) ? $model->image : ""; ?>"  placeholder="Upload Image" id="image" name="image" type="text" class="form-control "  readonly="">
                        <br clear="all"/>
                    Best Image Size(<?php echo $size; ?>)
                    </div>
                    <div class="col-lg-1 col-xl-1">
                        <button type="button" class="btn btn-warning btn-label-brand btn-md mediaModel" data-toggle="modal" data-target="#media-model" data-control="image">Browse</button>
                    </div>
                </div>
        </div> 
        </div>-->
   
 <div class="row">
    <div class="col-sm-6">
        <div class="d-flex justify-content-start flex-wrap">
            <div class="custom-control custom-switch custom-switch-success mr-2 mb-1">
                <p class="mb-0">Status</p>
                <input type="checkbox" 

                       @if(isset($model->status) && $model->status=="1")
                       checked 
                       @endif
                       class="custom-control-input" name="Status" id="Status" value="1">
                <label class="custom-control-label" for="Status">Status</label>
            </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/blog_categories')}}" class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">Cancel</a>
    </div>
</div>