<?php $__env->startSection('title', ($category->meta_title ?: $category->category_name . ' News') . ' | ' . config('app.name')); ?>
<?php $__env->startSection('meta_description', $category->meta_description ?: 'Read the latest ' . $category->category_name . ' news from The Hindu.'); ?>
<?php $__env->startSection('meta_keywords', $category->meta_keyword ?? $category->category_name . ', india news'); ?>
<?php $__env->startSection('canonical', route('category.show', $category->slug)); ?>

<?php $__env->startSection('schema_json'); ?>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "CollectionPage",
  "name": "<?php echo e(addslashes($category->category_name)); ?> News",
  "url": "<?php echo e(route('category.show', $category->slug)); ?>",
  "publisher": {
    "@type": "Organization",
    "name": "<?php echo e(config('app.name', 'The Hindu')); ?>"
  }
}
</script>
<?php $__env->stopSection(); ?>

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


<div class="category-and-set-container">

  
  <div class="category-and-set-header">
    <span class="category-and-set-line"></span>
    <h2><?php echo e($category->category_name); ?></h2>
    <span class="category-and-set-line"></span>
    <?php if($category->meta_description): ?>
      <div class="category-and-set-dropdown"><?php echo e(Str::limit($category->meta_description, 40)); ?> ▼</div>
    <?php endif; ?>
  </div>

  
  <?php if($otherCategories->isNotEmpty()): ?>
  <div class="category-and-set-menu">
    <a href="<?php echo e(route('category.show', $category->slug)); ?>" class="active"><?php echo e(strtoupper($category->category_name)); ?></a>
    <?php $__currentLoopData = $otherCategories->take(6); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $oc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      /
      <a href="<?php echo e(route('category.show', $oc->slug)); ?>"><?php echo e(strtoupper($oc->category_name)); ?></a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </div>
  <?php endif; ?>

  
  <div class="category-and-set-grid">

    
    <div class="category-and-set-left">

      <?php if($articles->count() > 0): ?>
        <?php $leftArticle = $articles->get(1) ?? $articles->first(); ?>
        <img src="<?php echo e($leftArticle->photo_url); ?>"
             alt="<?php echo e($leftArticle->img_alt ?: $leftArticle->news_title); ?>">
        <p><?php echo e($leftArticle->news_title); ?></p>
      <?php endif; ?>

      
      <div class="cate-sec-grow-container">
        <?php $__currentLoopData = $articles->slice(2, 4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $art): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="cate-sec-grow-item">
          <div class="cate-sec-grow-img-wrap">
            <img src="<?php echo e($art->photo_url); ?>"
                 alt="<?php echo e($art->img_alt ?: $art->news_title); ?>"
                 class="cate-sec-grow-img">
          </div>
          <div class="cate-sec-grow-content">
            <span class="cate-sec-grow-tag"><?php echo e(strtoupper($category->category_name)); ?></span>
            <h3 class="cate-sec-grow-title">
              <a href="<?php echo e($art->canonical_url); ?>" title="<?php echo e($art->news_title); ?>">
                <?php echo e(Str::limit($art->news_title, 90)); ?>

              </a>
            </h3>
          </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </div>

    </div>

    
    <div class="category-and-set-center">

      <?php if($featuredArticle): ?>
        <h1><?php echo e($featuredArticle->news_title); ?></h1>
        <p class="category-and-set-subtext">
          <?php echo e(Str::limit(strip_tags($featuredArticle->news_content_short), 160)); ?>

        </p>
        <span class="category-and-set-author">
          <?php echo e(strtoupper($featuredArticle->author->name ?? 'THE HINDU BUREAU')); ?>

        </span>
        <a href="<?php echo e($featuredArticle->canonical_url); ?>" title="<?php echo e($featuredArticle->news_title); ?>">
          <img src="<?php echo e($featuredArticle->photo_url); ?>"
               alt="<?php echo e($featuredArticle->img_alt ?: $featuredArticle->news_title); ?>"
               loading="eager">
        </a>
      <?php endif; ?>

    </div>

    
    <div class="category-and-set-right">

      <?php $__currentLoopData = $latestSidebar->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ls): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <div class="category-and-set-side-item">
        <span class="tag"><?php echo e(strtoupper($ls->category->category_name ?? $category->category_name)); ?></span>
        <p>
          <a href="<?php echo e($ls->canonical_url); ?>" title="<?php echo e($ls->news_title); ?>">
            <?php echo e(Str::limit($ls->news_title, 110)); ?>

          </a>
        </p>
        <span class="source"><?php echo e(strtoupper($ls->author->name ?? 'THE HINDU BUREAU')); ?></span>
      </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    </div>

  </div>

</div>




<?php
  // Articles already shown: 0 (featured), 1 (left thumb), 2–5 (grow list).
  // The remaining articles (from index 6 onward) are split into groups of 4
  // for the wrap-main row sections.
  $remaining = $articles->slice(6);
  $chunks    = $remaining->chunk(4);
?>

<?php $__currentLoopData = $chunks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chunkIndex => $chunk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

  <div class="wrap-main">

    
    <h1 class="title-head"><?php echo e($category->category_name); ?></h1>

    <div class="row-news">

      <?php $__currentLoopData = $chunk; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $colIndex => $art): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

        <?php if($colIndex === 0): ?>
          
          <div class="col col-left">
            <a href="<?php echo e($art->canonical_url); ?>">
              <img src="<?php echo e($art->photo_url); ?>"
                   alt="<?php echo e($art->img_alt ?: $art->news_title); ?>"
                   class="img-main">
            </a>
            <h2 class="headline-det">
              <a href="<?php echo e($art->canonical_url); ?>" title="<?php echo e($art->news_title); ?>">
                <?php echo e($art->news_title); ?>

              </a>
            </h2>
            <p class="source"><?php echo e(strtoupper($art->author->name ?? 'THE HINDU BUREAU')); ?></p>
          </div>

        <?php elseif($colIndex === 1): ?>
          
          <div class="col col-mid">
            <span class="tag"><?php echo e(strtoupper($category->category_name)); ?></span>
            <h3 class="headline-det">
              <a href="<?php echo e($art->canonical_url); ?>" title="<?php echo e($art->news_title); ?>">
                <?php echo e($art->news_title); ?>

              </a>
            </h3>
            <p class="source"><?php echo e(strtoupper($art->author->name ?? 'THE HINDU BUREAU')); ?></p>

            <?php if($chunk->get(4) || $chunk->count() > 2): ?>
              
            <?php endif; ?>

          </div>

        <?php else: ?>
          
          <div class="col col-imgtext">
            <a href="<?php echo e($art->canonical_url); ?>">
              <img src="<?php echo e($art->photo_url); ?>"
                   alt="<?php echo e($art->img_alt ?: $art->news_title); ?>"
                   class="img-small">
            </a>
            <?php if($art->category): ?>
              <p class="tag"><?php echo e(strtoupper($art->category->category_name)); ?></p>
            <?php endif; ?>
            <h3 class="headline-det">
              <a href="<?php echo e($art->canonical_url); ?>" title="<?php echo e($art->news_title); ?>">
                <?php echo e($art->news_title); ?>

              </a>
            </h3>
            <?php if($art->author): ?>
              <p class="source"><?php echo e(strtoupper($art->author->name)); ?></p>
            <?php endif; ?>
          </div>
        <?php endif; ?>

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

    </div>

    <div class="see-more-f">SEE MORE →</div>

  </div>

  <?php if(!$loop->last): ?>
    <hr>
  <?php endif; ?>

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



<div class="adv">
  
  <?php if(isset($adBanner)): ?>
    <img src="<?php echo e($adBanner); ?>" alt="ADVERTISEMENT">
  <?php endif; ?>
</div>



<?php if($articles->count() > 0): ?>
<div class="det-final-part-container">

  <h2 class="det-final-part-title">In Case You Missed It</h2>

  <div class="det-final-part-grid">

    <?php $__currentLoopData = $articles->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $art): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="det-final-part-card">
      <a href="<?php echo e($art->canonical_url); ?>">
        <img src="<?php echo e($art->photo_url); ?>"
             alt="<?php echo e($art->img_alt ?: $art->news_title); ?>">
      </a>
      <p>
        <a href="<?php echo e($art->canonical_url); ?>" title="<?php echo e($art->news_title); ?>">
          <?php echo e(Str::limit($art->news_title, 100)); ?>

        </a>
      </p>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

  </div>

</div>
<?php endif; ?>



<?php if($articles->hasPages()): ?>
<div class="hindu-pagination" style="margin: 30px auto; max-width:1300px; padding:0 20px;">
  <?php echo e($articles->links('partials.pagination')); ?>

</div>
<?php endif; ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\progr\Downloads\hindu\main\hindunews\hindunews\resources\views/category.blade.php ENDPATH**/ ?>