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

    <style>
        .postSec {
            margin: 5rem 0;
        }

        .post-card > :is(img, video) {
            width: 100%;
            height: 550px;
            object-fit: cover;
        }
        .post-card__content {
            margin-top: 1rem;
        }
        .post-card__content .title{
            text-transform: capitalize;
        }
        .post-card__content .title span{
            font-weight: 600;
        }
    </style>

    <div class="container">
        <div class="postSec">
            <div class="row">
                <div class="col-md-10">
                    <div class="post-card">
                        
                        <?php if($post->post_image): ?>
                            <img src="<?php echo e(asset('post/'.$post->post_image)); ?>" alt="Post Image">
                        <?php endif; ?>
                        <?php if($post->post_video): ?>
                            <video controls>
                                <source src="<?php echo e(asset('post/'.$post->post_video)); ?>" type="video/mp4">
                            </video>
                        <?php endif; ?>
                        <div class="post-card__content">

                            <?php if($post->category): ?>
                            <h4 class="title"><span>Category:</span> <?php echo e($post->category ? $post->category->name : 'Uncategorized'); ?></h4>
                            <?php endif; ?>
                            <?php if($post->post_tags): ?>
                                <h4 class="title"><span>Tags:</span> <?php echo e($post->post_tags ?? 'no-tages'); ?></h4>
                            <?php endif; ?>

                            <p class="title"><span>Content:</span><?php echo e($post->post_content ?? '-'); ?></p>

                            <!-- Add more details as needed -->
                        </div>
                    </div>
                </div>
                <div class="col-md-2">
                    <a href="<?php echo e(route('admin.post.index')); ?>" class="btn btn-primary">Back to Posts</a>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/servicedemoweb/public_html/global-man-cave/resources/views/admin/posts/show.blade.php ENDPATH**/ ?>