@extends('layouts.frontend_master') @section('content') @php $words = explode(' ', trim($blog->title)); $lastWord = array_pop($words); @endphp {{ implode(' ', $words) }} {{ $lastWord }} {{ $blog->authorRelation->name }} {{ \Carbon\Carbon::parse($blog->publish_date)->format('F d, Y') }} @php $hasTitles = collect($blog_description ?? [])->contains(function ($item) { return !empty($item['title']); }); @endphp @if (!empty($blog_description) && $hasTitles) Table of Content @foreach ($blog_description as $item) @if (!empty($item['title'])) {{ $item['title'] }} @endif @endforeach @endif @foreach ($blog_description as $item) {!! $item['title'] !!} {!! $item['content'] !!} @endforeach {{ $blog->authorRelation->name }} {{ $blog->authorRelation->post }} {{ '@' . $site_setting->site_title }} @if($team_page) {!! $blog->authorRelation->description !!} @endif Share this: @endsection @push('frontend_js') @endpush
{{ $blog->authorRelation->name }}
{{ \Carbon\Carbon::parse($blog->publish_date)->format('F d, Y') }}
{{ $item['title'] }}
{!! $item['content'] !!}
{{ $blog->authorRelation->post }} {{ '@' . $site_setting->site_title }}
Share this: