@extends('layouts.main') @section('page-id', '60366c0955905185c15a1ad6') @section('body-class', 'sand') @section('content')
Back to all articles
{{ date('jS M Y', strtotime($article->updated_at)) }}

{{ $article->title }}

@if ($article->main_image)
@endif @if ($article->template_type === 'q-a') @php $questions = json_decode($article->body); @endphp
@foreach ($questions as $question)
{{ $question->title }}
@endforeach
@else
{!! $article->body !!}
@endif
@if (count($article->relatedArticles) > 0)

Related Articles

@foreach ($article->relatedArticles as $relatedArticle) @php $articleCategory = $relatedArticle->categories()->first(); @endphp @endforeach
@endif @endsection @section('custom_scripts') @endsection