@extends('layouts.website') @section('content')
@if ($hasBlogsInDb && $hasNoResults) {{-- Show only "No Results Found" message when search returns no results (no title, no full section) --}}

No Results Found

We couldn't find any blog posts matching "{{ request('search') }}".

Try adjusting your search terms or browse all blogs.

@elseif ($hasBlogsInDb && ($featuredBlog || $blogs->count() > 0 || $recentBlogs->count() > 0))

Stay Informed with
Our Blog

@if ($featuredBlog)
{{ $featuredBlog->title }} {{ $featuredBlog->category->name ?? 'Uncategorized' }}

{{ $featuredBlog->created_at->format('F j, Y') }}

{{ $featuredBlog->title }}

@endif
@if (request('search'))
Search results for: "{{ request('search') }}" Clear search
@endif @forelse($recentBlogs as $recentBlog) {{ $recentBlog->title }}
{{ $recentBlog->title }}
@empty

No featured blogs at the moment. Check back soon for updates.

@endforelse
@endif @if ($blogs->count() > 0)
line-img
Insights &Updates

Ideas, Insights, and Inspiration

@foreach ($blogs as $blog)
{{ $blog->title }} {{ $blog->category->name ?? 'Uncategorized' }}
{{ $blog->title }}
@endforeach
@if ($blogs->hasPages()) @endif
@endif

Let's get you certified-Start your journey today!

Connect with our experts for a seamless and hassle-free certification process.

Get Certified
background-img
man-img
@include('components.request-quote-button')
{{-- Include enquiry form modal for Blogs page --}} @include('components.enquiry-form-wrapper', ['pageSource' => 'blogs', 'formType' => 'enquiry']) @endsection