

<?php $__env->startSection('title', 'Search: ' . $query . ' | ' . config('app.name')); ?>
<?php $__env->startSection('meta_description', 'Search results for "' . $query . '" on ' . config('app.name') . '. Browse matching articles and news stories.'); ?>
<?php $__env->startSection('canonical', route('search') . ($query ? '?q=' . urlencode($query) : '')); ?>
<?php $__env->startSection('robots', 'noindex, follow'); ?>

<?php $__env->startSection('schema_json'); ?>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "SearchResultsPage",
  "name": "<?php echo e(config('app.name', 'The Hindu')); ?>",
  "url": "<?php echo e(url()->current()); ?>",
  "query": "<?php echo e($query); ?>"
}
</script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="search-page">
  <div class="search-header">
    <h1 class="search-title">Search results for "<em><?php echo e($query); ?></em>"</h1>
    <p class="search-count"><?php echo e($results->total()); ?> <?php echo e(Str::plural('result', $results->total())); ?> found</p>
  </div>
  <form action="<?php echo e(route('search')); ?>" method="GET" class="search-form" role="search">
    <input type="search" name="q" value="<?php echo e($query); ?>" placeholder="Search The Hindu..." aria-label="Search" required>
    <button type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
  </form>
  <?php if($results->isEmpty()): ?>
  <div class="no-results">
    <p>No results found for "<?php echo e($query); ?>". Try different keywords.</p>
  </div>
  <?php else: ?>
  <div class="cat-list">
    <?php $__currentLoopData = $results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $art): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <article class="cat-item">
      <a href="<?php echo e($art->canonical_url); ?>" class="cat-item-img">
        <img src="<?php echo e($art->photo_url); ?>" alt="<?php echo e($art->news_title); ?>" loading="lazy" width="200" height="130">
      </a>
      <div class="cat-item-body">
        <span class="cat-item-tag"><?php echo e(strtoupper($art->category->category_name ?? 'NEWS')); ?></span>
        <h3 class="cat-item-title"><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="cat-item-summary"><?php echo e(Str::limit(strip_tags($art->news_content_short), 150)); ?></p>
        <div class="cat-item-meta">
          <span><?php echo e(strtoupper($art->author->name ?? 'THE HINDU BUREAU')); ?></span>
          <?php if($art->published_at): ?><span> กค <?php echo e($art->published_at->format('M j, Y')); ?></span><?php endif; ?>
        </div>
      </div>
    </article>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </div>
  <?php if($results->hasPages()): ?>
  <div class="hindu-pagination"><?php echo e($results->links('partials.pagination')); ?></div>
  <?php endif; ?>
  <?php endif; ?>
</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/search.blade.php ENDPATH**/ ?>