

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

<!-- start heeder -->
<?php echo $__env->make('web.layouts.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!-- end heeder -->


<!-- start app -->
<main id="app">

    <section class="news-details">
        <div class="main-container">
            <div class="row">
                <div class="col-lg-8">
                    <div class="sub-news-details">
                        <div class="img-news-details">
                            <img src="<?php echo e($post->photo); ?>" alt="">
                        </div>


                        <div class="text-news-details">
                            <div class="title-news-details">
                                <h2> <?php echo e($post->title_en); ?> </h2>
                                <h4> <img src="<?php echo e(url('web')); ?>/images/share.png" alt=""> <?php echo e($post->created_at->format('M d, Y')); ?> </h4>
                            </div>

                            <div class="sub-text-news-details">
                                <p> <?php echo e($post->body_en); ?> </p>
                                <div class="video-news-details">
                                    <iframe src="<?php echo e($post->video); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                                </div>
                            </div>

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


                <div class="col-lg-4">
                    <div class="more-news-details">

                        <h2 class="title-news-more">Last News</h2>

                        <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pos): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <div class="sub-news-index">
                            <div class="img-news-index">
                                <img src="<?php echo e($pos->photo); ?>" alt="">
                            </div>
                            <div class="text-news-index">
                                <h4> <img src="<?php echo e(url('web')); ?>/images/share.png" alt=""> <?php echo e($pos->created_at->format('M d, Y')); ?> </h4>
                                <h2><?php echo e($pos->title_en); ?></h2>
                                <p> <?php echo e($pos->body_en); ?> </p>
                                <div class="text-center">
                                    <a href="<?php echo e(route('web.post' , $pos->slug)); ?>" class="ctm-btn"> <span> Read Post</span></a>
                                </div>
                            </div>
                        </div>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

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



</main>
<!-- end app -->


<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
<script src="<?php echo e(url('web/backEnd/service.js')); ?>"></script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('web.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jaadara\Projects from 10-2022\betan-back\resources\views/web/posts/show.blade.php ENDPATH**/ ?>