{!! $content !!}
{{ $article->title }}
{{ $article->summary }}
@if ($article->authorname == 'NATIVE CONTENT') @else by @endif @if (strpos($article->author_id, ',') !== false) @else @endif
Published:
{{ \Carbon\Carbon::parse($article->publish_date . ' ' . $article->publish_time)->format('M j, Y g:i A') }}
@php
// Estimate reading time
$wordCount = str_word_count(strip_tags($article->description));
$minutes = floor($wordCount / 200);
$seconds = floor(($wordCount % 200) / (200 / 60));
if ($minutes == 0) {
$readTime = '1 min read';
} elseif ($seconds >= 10) {
$readTime = $minutes + 1 . ' min read';
} else {
$readTime = $minutes . ' min read';
}
@endphp
{{ $readTime }}
@if ($article->authorname == 'NATIVE CONTENT')
|
Advertorial
@endif