@extends('layouts.app') @section('title', $blog->title) @section('content') @php $words = str_word_count(strip_tags((string) $blog->content)); $mins = max(1, (int) ceil($words / 200)); $shareUrl = urlencode(url()->current()); $shareText = urlencode($blog->title); @endphp
{{ filled($blog->category) ? $blog->category : $company->name }} {{ \Illuminate\Support\Carbon::parse($blog->created_at)->format('M d, Y') }} {{ $mins }} min read

{{ $blog->title }}

@if (filled($blog->short_description))

{{ $blog->short_description }}

@endif
@if ($blog->image_url)
{{ $blog->title }}
@endif
{{-- Blog body is HTML written in the CMS editor (trusted admin content). --}} {!! $blog->content !!}
Share
All articles
@if ($related->count()) @endif
@endsection @push('scripts') @endpush