@extends('layouts.app') @section('content')

{{ $blog->title }}

{{ $blog->title }}
{{--
{{ $blog->category->cat }}
--}}

{{ $blog->content }}

@if ($blog->sections) @foreach ($blog->sections as $section)
@if ($section->subheading)
{{ $section->subheading }}
@endif @if ($section->long_image)
Section Image
@endif @if ($section->small_images) @foreach (json_decode($section->small_images) as $small_image)
Small Image
@endforeach @endif @if ($section->long_text)

{{ $section->long_text }}

@endif @if ($section->buy_now) Buy Now @endif
@endforeach @endif
@foreach ($relatedPosts as $relatedPost) @endforeach
@if ($nextPost && $nextPost->image) Next Post Image @else No Next Post @endif
@if ($nextPost) Next post

{{ $nextPost->title }}

@else

No Next Post Available

@endif
@include('partials.sidebar')
@endsection