@if (isset($blog->blogCategories) && !empty($blog->blogCategories))
@foreach ($blog->blogCategories as $category)
@if($loop->first)
@php $categoryTranslations = parse_translation($category); @endphp
{{ $categoryTranslations['name'] ?? $category->name ?? '' }}
@endif
@endforeach
@endif
@php
$admin = $blog->adminAuthor ?? null;
$author = $blog->author ?? null;
@endphp
@if ($admin)
{{ $admin->name }}
@else
@php
$user = $author->userable ?? null;
$name = $user->first_name ?? ($user->name ?? null);
@endphp
{{ $name }}
@endif
{{ customDateFormate($blog->created_at, format: 'd M Y') }}
@if ($blog->comments->count() > 0)
{{ $blog->comments->count() }} {{ translate('Comments') }}
@endif
{{ translate('View Detail') }}