

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

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-8">

        <h2><?php echo e($article['title']); ?></h2>

        <div class="mb-3 text-muted">
            <img src="<?php echo e($article['source_logo_url']); ?>" width="20">
            <?php echo e($article['source_name']); ?> |
            <?php echo e(\Carbon\Carbon::parse($article['published_datetime_utc'])->format('d M Y, h:i A')); ?>

        </div>

        <img src="<?php echo e($article['photo_url']); ?>" class="img-fluid rounded mb-4" alt="news image">

        <?php if(!empty($article['authors'])): ?>
            <p><strong>Author:</strong> <?php echo e(implode(', ', $article['authors'])); ?></p>
        <?php endif; ?>

        <p>
            <?php echo e($article['snippet'] ?? 'Full article content will be available on source website.'); ?>

        </p>

        <a href="<?php echo e($article['link']); ?>" target="_blank" class="btn btn-outline-primary">
            Read Full Article
        </a>

        <!-- Related / Sub Articles -->
        <?php if(!empty($article['sub_articles'])): ?>
            <hr>
            <h5>Related News</h5>

            <ul class="list-group">
                <?php $__currentLoopData = $article['sub_articles']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li class="list-group-item">
                        <a href="<?php echo e($sub['link']); ?>" target="_blank">
                            <?php echo e($sub['title']); ?>

                        </a>
                        <br>
                        <small class="text-muted">
                            <?php echo e($sub['source_name']); ?>

                        </small>
                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
        <?php endif; ?>

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

<?php echo $__env->make('news.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\NEWXAMP\htdocs\google-auth-pixabay-api\resources\views/news/show.blade.php ENDPATH**/ ?>