@include('frontend.header') @include('frontend.navbar') @php $publishedDate = optional($blog->published_at ?? $blog->created_at)->format('F d, Y'); $heroImage = $blog->featured_image ? asset('storage/'.$blog->featured_image) : asset('images/ginger6.jpg'); $articleContent = trim($blog->safe_content ?? ''); if ($articleContent === '' && filled($blog->excerpt)) { $articleContent = '

'.e($blog->excerpt).'

'; } $plainContent = trim(strip_tags(html_entity_decode($articleContent))); $wordCount = str_word_count($plainContent); $readingMinutes = max(1, (int) ceil($wordCount / 220)); @endphp
{{-- Back to Articles --}}
{{ $blog->category ?: 'Blog' }} {{ $publishedDate }} {{ $readingMinutes }} min read

{{ $blog->title }}

@if ($blog->excerpt)

{{ $blog->excerpt }}

@endif
{{ $blog->featured_image_alt ?: $blog->title }} {{--
Article Focus

{{ $blog->category ?: 'Organic Ginger' }}

--}}
{{ $blog->category ?: 'Blog' }} {{ $publishedDate }} {{ number_format($wordCount) }} words
{!! $articleContent !!}
@include('frontend.cta-banner') @include('frontend.footer') @include('frontend.floating-whatsapp') @include('frontend.scripts')