@extends('front.layout.app') @section('content')
@if($blogDetail->getMedia('blog_images')->count() > 0)
image
@endif

{{$blogDetail->title ?? ''}}

{!! $blogDetail->content ?? '' !!}

@php $foundPrev = false; $foundNext = false; @endphp @foreach($blogPosts as $blog) @if(!$foundPrev && $blog->id < $blogDetail->id) @php $foundPrev = true; @endphp @endif @endforeach @foreach($blogPosts as $blog) @if(!$foundNext && $blog->id > $blogDetail->id) @php $foundNext = true; @endphp @endif @endforeach

Categories

LATEST NEWS

recently posted

@foreach($blogPosts->take(3) as $blog) {{-- @if(now()->diffInDays($blog->created_at) >= 3)--}}
image
{{ $blog->created_at->format('F d, Y') }}
{{ $blog->title }}
{{-- @endif--}} @endforeach
@endsection