

<?php $__env->startSection('title', $author->name . ' | ' . config('app.name')); ?>
<?php $__env->startSection('meta_description', Str::limit($author->bio ?: 'Articles by ' . $author->name . ' on ' . config('app.name') . '.', 155)); ?>
<?php $__env->startSection('canonical', route('author.show', $author->slug)); ?>
<?php $__env->startSection('robots', 'index, follow'); ?>

<?php $__env->startSection('schema_json'); ?>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "ProfilePage",
  "name": "<?php echo e(addslashes($author->name)); ?>",
  "url": "<?php echo e(route('author.show', $author->slug)); ?>",
  "mainEntity": {
    "@type": "Person",
    "name": "<?php echo e(addslashes($author->name)); ?>",
    "jobTitle": "<?php echo e(addslashes($author->designation_english ?? $author->designation ?? '')); ?>",
    "description": "<?php echo e(addslashes(Str::limit($author->bio_english ?? $author->bio ?? '', 200))); ?>",
    "worksFor": {
      "@type": "Organization",
      "name": "<?php echo e(config('app.name', 'The Hindu')); ?>"
    }
    <?php if($author->twitter_url): ?>
    ,"sameAs": ["<?php echo e($author->twitter_url); ?>"]
    <?php endif; ?>
  }
}
</script>
<?php $__env->stopSection(); ?>

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


<div class="author-page">

  <div class="author-hero-band">
    <div class="author-hero-inner">

      
      <nav class="author-breadcrumb" aria-label="Breadcrumb">
        <a href="<?php echo e(route('index')); ?>" title="Home">HOME</a>
        <span class="author-breadcrumb-sep">/</span>
        <span>AUTHORS</span>
        <span class="author-breadcrumb-sep">/</span>
        <span><?php echo e(strtoupper($author->name)); ?></span>
      </nav>

      <div class="author-profile-card">

        
        <div class="author-avatar-wrap">
          <img
            src="<?php echo e($author->photo_url); ?>"
            alt="<?php echo e($author->name); ?>"
            class="author-avatar"
            width="140" height="140"
          >
          <?php if($author->joined_year): ?>
          <span class="author-since-badge">Since <?php echo e($author->joined_year); ?></span>
          <?php endif; ?>
        </div>

        
        <div class="author-profile-info">
          <div class="author-profile-top">
            <h1 class="author-profile-name"><?php echo e($author->name); ?></h1>
            <?php if($author->designation): ?>
            <p class="author-profile-designation"><?php echo e($author->designation); ?></p>
            <?php endif; ?>
            <?php if($author->location): ?>
            <p class="author-profile-location">
              <i class="fa-solid fa-location-dot"></i>&nbsp;<?php echo e($author->location); ?>

            </p>
            <?php endif; ?>
          </div>

          <?php if($author->bio): ?>
          <p class="author-profile-bio"><?php echo e($author->bio); ?></p>
          <?php endif; ?>

          <div class="author-profile-footer">
            <div class="author-profile-meta">
              <span class="author-stat-pill">
                <i class="fa-regular fa-newspaper"></i>
                <?php echo e(number_format($totalArticles)); ?> <?php echo e(Str::plural('Article', $totalArticles)); ?>

              </span>
              <?php if($mostRecentDate): ?>
              <span class="author-stat-pill">
                <i class="fa-regular fa-clock"></i>
                Last published <?php echo e($mostRecentDate->format('M j, Y')); ?>

              </span>
              <?php endif; ?>
            </div>

            <div class="author-profile-social">
              <?php if($author->twitter_url): ?>
              <a href="<?php echo e($author->twitter_url); ?>" target="_blank" rel="noopener noreferrer" aria-label="Twitter / X" class="author-social-btn">
                <i class="fa-brands fa-x-twitter"></i>
              </a>
              <?php endif; ?>
              <?php if($author->facebook_url): ?>
              <a href="<?php echo e($author->facebook_url); ?>" target="_blank" rel="noopener noreferrer" aria-label="Facebook" class="author-social-btn">
                <i class="fa-brands fa-facebook-f"></i>
              </a>
              <?php endif; ?>
              <?php if($author->linkedin_url): ?>
              <a href="<?php echo e($author->linkedin_url); ?>" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn" class="author-social-btn">
                <i class="fa-brands fa-linkedin-in"></i>
              </a>
              <?php endif; ?>
            </div>
          </div>
        </div>

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


  
  <?php if($authorCategories->isNotEmpty()): ?>
  <div class="author-filter-bar">
    <div class="author-filter-inner">
      <a href="<?php echo e(route('author.show', $author->slug)); ?>"
         class="author-filter-tab <?php echo e(!$activeCategorySlug ? 'active' : ''); ?>"
         title="All articles by <?php echo e($author->name); ?>">
        All <span class="author-filter-count"><?php echo e($totalArticles); ?></span>
      </a>
      <?php $__currentLoopData = $authorCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ac): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <a href="<?php echo e(route('author.show', ['slug' => $author->slug, 'category' => $ac->slug])); ?>"
         class="author-filter-tab <?php echo e($activeCategorySlug === $ac->slug ? 'active' : ''); ?>"
         title="<?php echo e($ac->category_name); ?> articles by <?php echo e($author->name); ?>">
        <?php echo e($ac->category_name); ?>

        <span class="author-filter-count"><?php echo e($ac->articles_count); ?></span>
      </a>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
  </div>
  <?php endif; ?>


  
  <div class="author-body-layout">

    
    <div class="author-articles-col">

      
      <div class="author-section-heading">
        <span class="author-section-line"></span>
        <h2><?php echo e($activeCategorySlug ? strtoupper($activeCategoryLabel) : 'ALL ARTICLES'); ?></h2>
        <span class="author-section-line"></span>
      </div>

      
      <?php if($articles->count() > 0 && $articles->currentPage() === 1): ?>
        <?php $featured = $articles->first(); ?>
        <article class="author-featured-article" itemscope itemtype="https://schema.org/NewsArticle">
          <a href="<?php echo e($featured->canonical_url); ?>" class="author-feat-img-link" title="<?php echo e($featured->news_title); ?>" tabindex="-1">
            <div class="author-feat-img-wrap">
              <img
                src="<?php echo e($featured->photo_url); ?>"
                alt="<?php echo e($featured->img_alt ?: $featured->news_title); ?>"
                class="author-feat-img"
                itemprop="image"
                loading="eager"
              >
            </div>
          </a>
          <div class="author-feat-body">
            <span class="author-feat-tag">
              <a href="<?php echo e(route('category.show', $featured->category->slug ?? 'news')); ?>" title="<?php echo e($featured->category->category_name ?? 'NEWS'); ?>">
                <?php echo e(strtoupper($featured->category->category_name ?? 'NEWS')); ?>

              </a>
            </span>
            <h2 class="author-feat-title" itemprop="headline">
              <a href="<?php echo e($featured->canonical_url); ?>" title="<?php echo e($featured->news_title); ?>">
                <?php echo e($featured->news_title); ?>

              </a>
            </h2>
            <p class="author-feat-summary" itemprop="description">
              <?php echo e(Str::limit(strip_tags($featured->news_content_short), 220)); ?>

            </p>
            <div class="author-feat-meta">
              <?php if($featured->published_at): ?>
              <time datetime="<?php echo e($featured->published_at->toIso8601String()); ?>" itemprop="datePublished">
                <?php echo e($featured->published_at->format('F j, Y')); ?>

              </time>
              <?php endif; ?>
              <span class="author-feat-readtime">
                <i class="fa-regular fa-clock"></i> <?php echo e($featured->reading_time); ?> min read
              </span>
            </div>
          </div>
        </article>
      <?php endif; ?>

      
      <div class="author-article-list">
        <?php $startIdx = ($articles->currentPage() === 1) ? 1 : 0; ?>
        <?php $__empty_1 = true; $__currentLoopData = $articles->slice($startIdx); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $art): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <article class="author-article-item" itemscope itemtype="https://schema.org/NewsArticle">
          <a href="<?php echo e($art->canonical_url); ?>" class="author-article-img-link" title="<?php echo e($art->news_title); ?>" tabindex="-1" aria-hidden="true">
            <img
              src="<?php echo e($art->photo_url); ?>"
              alt="<?php echo e($art->img_alt ?: $art->news_title); ?>"
              class="author-article-img"
              itemprop="image"
              loading="lazy"
              width="220" height="145"
            >
          </a>
          <div class="author-article-body">
            <span class="author-article-tag">
              <a href="<?php echo e(route('category.show', $art->category->slug ?? 'news')); ?>" title="<?php echo e($art->category->category_name ?? 'NEWS'); ?>">
                <?php echo e(strtoupper($art->category->category_name ?? 'NEWS')); ?>

              </a>
            </span>
            <h3 class="author-article-title" itemprop="headline">
              <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="author-article-summary">
              <?php echo e(Str::limit(strip_tags($art->news_content_short), 130)); ?>

            </p>
            <div class="author-article-meta">
              <?php if($art->published_at): ?>
              <time datetime="<?php echo e($art->published_at->toIso8601String()); ?>" itemprop="datePublished">
                <?php echo e($art->published_at->format('M j, Y')); ?>

              </time>
              <?php endif; ?>
              <span class="author-article-readtime">
                <i class="fa-regular fa-clock"></i> <?php echo e($art->reading_time); ?> min
              </span>
            </div>
          </div>
        </article>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <p class="author-empty-msg">No articles found.</p>
        <?php endif; ?>
      </div>

      
      <?php if($articles->hasPages()): ?>
      <div class="hindu-pagination">
        <?php echo e($articles->appends(request()->query())->links('partials.pagination')); ?>

      </div>
      <?php endif; ?>

    </div>


    
    <aside class="author-sidebar" aria-label="Sidebar">

      
      <?php if($otherAuthors->isNotEmpty()): ?>
      <div class="sidebar-block">
        <div class="sidebar-title">More Authors</div>
        <?php $__currentLoopData = $otherAuthors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $oa): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <a href="<?php echo e(route('author.show', $oa->slug)); ?>" class="author-sidebar-author-item">
          <img
            src="<?php echo e($oa->photo_url); ?>"
            alt="<?php echo e($oa->name); ?>"
            class="author-sidebar-author-img"
            loading="lazy"
            width="44" height="44"
          >
          <div class="author-sidebar-author-info">
            <span class="author-sidebar-author-name"><?php echo e($oa->name); ?></span>
            <span class="author-sidebar-author-role"><?php echo e($oa->designation); ?></span>
          </div>
        </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </div>
      <?php endif; ?>

      
      <?php if($latestSidebar->isNotEmpty()): ?>
      <div class="sidebar-block">
        <div class="sidebar-title">Latest News</div>
        <?php $__currentLoopData = $latestSidebar; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ls): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="sidebar-item">
          <a href="<?php echo e($ls->canonical_url); ?>" title="<?php echo e($ls->news_title); ?>">
            <img
              src="<?php echo e($ls->photo_url); ?>"
              alt="<?php echo e($ls->news_title); ?>"
              loading="lazy"
              width="70" height="52"
            >
          </a>
          <div>
            <span class="sidebar-cat"><?php echo e(strtoupper($ls->category->category_name ?? '')); ?></span>
            <p class="sidebar-text">
              <a href="<?php echo e($ls->canonical_url); ?>" title="<?php echo e($ls->news_title); ?>"><?php echo e(Str::limit($ls->news_title, 80)); ?></a>
            </p>
          </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </div>
      <?php endif; ?>

      
      <?php if($popularCategories->isNotEmpty()): ?>
      <div class="sidebar-block">
        <div class="sidebar-title">Popular Topics</div>
        <?php $__currentLoopData = $popularCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <a href="<?php echo e(route('category.show', $pc->slug)); ?>" class="sidebar-cat-link" title="<?php echo e($pc->category_name); ?>">
          <?php echo e($pc->category_name); ?>

          <span class="sidebar-cat-count"><?php echo e(number_format($pc->news_count)); ?></span>
        </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </div>
      <?php endif; ?>

    </aside>

  </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/myapiusa/public_html/ramshad/hindunews/resources/views/author.blade.php ENDPATH**/ ?>