

<?php $__env->startSection('section'); ?>
<div class="container-fluid">
    <div class="page-title">
        <div class="row">
            <div class="col-sm-6">
                <h3><?php echo e($blog->title); ?></h3>
            </div>
            <div class="col-sm-6 text-end">
                <a href="<?php echo e(route('title.list')); ?>" class="btn btn-secondary btn-sm">Back to List</a>
            </div>
        </div>
    </div>

    <div class="card mt-3">
        <div class="card-body">
            <h4>Category: <span class="text-primary"><?php echo e($blog->category->name ?? 'N/A'); ?></span></h4>
            <p><strong>Author:</strong> <?php echo e($blog->createdBy->name ?? 'N/A'); ?></p>
            <p><strong>Status:</strong> <?php echo e($blog->status ? 'Published' : 'Draft'); ?></p>

            <?php if($blog->image): ?>
                <div class="mb-3">
                    <img src="<?php echo e(asset('storage/' . $blog->image)); ?>" class="img-fluid rounded" style="max-height: 300px;">
                </div>
            <?php endif; ?>

            <hr>

            <div class="blog-content">
                <?php echo $blog->content; ?>

            </div>

            <hr>



        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\NEWXAMP\htdocs\newssite.com\resources\views/admin/Post/view.blade.php ENDPATH**/ ?>