FILTER BY

@if(request('category')) @php // Find the category name based on the selected category ID $selectedCategory = $categories->firstWhere('id', request('category')); @endphp @if($selectedCategory) {{ $selectedCategory->name }} @endif @endif

RECENT POSTS

@foreach ($allblogs->sortByDesc('created_at')->take(4) as $blog)

{{ $blog->created_at->format('F d, Y') }}

{{ $blog->title }}

@endforeach
@foreach ($banners as $banner) @if ($banner->banner_type === 'Side Banner')
{!! $banner->title !!}
{!! $banner->subtitle !!}

Shop Now

@endif @endforeach