<?php $__env->startSection('title', $title); ?>

<?php $__env->startSection('vendor-style'); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Add rows table -->
<section id="add-row">

    <div class="card">
        <div class="card-header">

            <h4 class="card-title"><a href="<?php echo e(url('admin/posts')); ?>" class="mr-1  btn-icon btn btn-primary btn-round btn-sm"><i class="feather icon-arrow-left"></i></a><?php echo e($title); ?></h4>

        </div>
        <div class="card-content">
            <div class="card-body">

                <div class="row">
                    <div class="col-sm-12">

                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>Title :</td>
                                    <td><?php echo e($model->title); ?></td>
                                </tr>
                                <tr>
                                    <td>Type :</td>
                                    <td><?php echo e($model->type_id); ?></td>
                                </tr>
                                <tr>
                                    <td>Category :</td>
                                    <td><?php echo e($model->category_id); ?></td>
                                </tr>
                                <tr>
                                    <td>Key :</td>tagline
                                    <td><?php echo e($model->key); ?></td>
                                </tr>
                                <tr>
                                    <td>Tagline :</td>
                                    <td><?php echo e($model->tagline); ?></td>
                                </tr>
                                <tr>
                                    <td>Content :</td>
                                    <td><div class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light" id="hide">Show</div></td>

                                </tr>
                                <tr id="contentDiv">
                                    <td></td>
                                    <td id="data"><?php echo e($model->description); ?></td>

                                </tr>
                                 <tr>
                                    <td>Preview</td>
                                    <td><div class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light" id="previewclick">Preview</div></td>

                                </tr>
                                   <tr>
                                    <td></td>
                                    <td id="previewdata"><html> <body> <p><?php echo $model->description;?></p> </body></html></td>
                                </tr>
                                <tr>
                                    <td>Short Description:</td>
                                    <td><?php echo e($model->short_description); ?></td>
                                </tr>
                                <tr>
                                    <td>Meta Description :</td>
                                    <td><?php echo e($model->meta_description); ?></td>
                                </tr>
                                <tr>
                                    <td>Status :</td>
                                    <td><?php echo e($model->status); ?></td>
                                </tr>
                                <tr>
                                    <td>Image:</td>
                                        <?php if($model->image==null): ?>
                                           <td>None</td>
                                        <?php else: ?>
                                        <td>  <img  height="40" width="40" class="round" src="<?php echo e(url('uploads/posts/thumbnails').'/'.$model->image); ?>"></td>
                                        <?php endif; ?>
                                </tr>
                                <tr>
                                    <td>Publish Date:</td>
                                    <td><?php echo e($model->publish_date); ?></td>
                                </tr>
                                <tr>
                                    <td>Created:</td>
                                    <td><?php echo e($model->created_at); ?></td>
                                </tr>
                                <tr>
                                    <td>Last Updated:</td>
                                    <td><?php echo e($model->updated_at); ?></td>
                                </tr>
                            </tbody>
                        </table>

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

</section>
<!--/ Add rows table -->
<!--/ Scroll - horizontal and vertical table -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('vendor_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('myscript'); ?>

<script>
$( document ).ready(function() {
     $("#data").hide();
     $("#previewdata").hide();
     
$("#hide").click(function(){
   $("#data").toggle();
    $(this).toggleClass('class1')
 
});
$("#previewclick").click(function(){
   $("#previewdata").toggle();
    $(this).toggleClass('class1')
 
});


});

</script>
<script>
        CKEDITOR.config.allowedContent = true;

    CKEDITOR.replace( 'summary-ckeditor' );
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin/layouts/contentLayoutMaster', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/seolocaj/public_html/homefloltd/resources/views/admin/posts/show.blade.php ENDPATH**/ ?>