@extends('frontend.theme_2.app') @section('title', 'Blog') @section('content')
{{__('search')}}
{{__('categories')}}
@foreach($categories as $category) @php $count = Modules\GlobalSetting\app\Models\BlogPost::where('category', $category->id)->whereNull('deleted_at')->where('status', 1)->count(); @endphp
{{-- This link is updated to redirect to the blog list with a filter --}} {{ $category->name }} ({{$count}})
@endforeach
{{__('recent_blogs')}}
@foreach($latestblogs as $latest)
{{$latest->title}}

{{ \Carbon\Carbon::parse($latest->created_at)->format('d M Y') }}

@if(!$loop->last)
@endif @endforeach
{{__('popular_tags')}}
@foreach($tags as $tag) #{{ucfirst($tag)}} @endforeach
@php $imagePath = $blogPosts->image; @endphp blog-details-img

{{$blogPosts->title}}

{!! $blogPosts->description !!}

Related Tags :
@php $tags = !empty($blogPosts->tags) ? array_filter(array_map('trim', explode(',', $blogPosts->tags))) : []; @endphp @foreach($tags as $tagName) {{ ucfirst($tagName) }} @endforeach
Share Post :
@php $currentUrl = url()->current(); $postTitle = $blogPosts->title; @endphp Whatsapp Facebook instagram twitter telegram LinkedIn

@php $authorImagePath = $blogPosts->profile_image; @endphp User
About {{ucfirst($blogPosts->customer)}}

Comments ({{$countReview}})
@if($countReview > 0)
@foreach($blogReviews as $review)

{{ \Carbon\Carbon::parse($review->created_at)->diffForHumans() }}

{{$review->comments}}

@if(!$loop->last)
@endif @endforeach
@endif
Leave a Comment
@csrf
@endsection