@extends('layouts.default') @push('title', get_phrase('Blog Details')) @push('meta')@endpush @push('css') @endpush @section('content') @php $total_comments = count_comments_by_blog_id($blog_details->id); $total_likes = count_likes_by_blog_id($blog_details->id); @endphp {{ get_phrase('Home') }} {{ get_phrase('Blogs') }} {{ get_phrase('Blog Details') }} {{ $blog_details->title }} {{ $blog_details->author_name }} @if ($blog_details->keywords) @php $tags = json_decode($blog_details->keywords, true); if (is_array($tags) && count($tags) > 0) { $tags = array_column($tags, 'value'); } @endphp {{ $tags ? implode(', ', $tags) : '' }} @endif {{ $total_comments }} {{ date('d M, Y', strtotime($blog_details->created_at)) }} {!! removeScripts($blog_details->description) !!} @php $tags = $blog_details->keywords ? json_decode($blog_details->keywords, true) : []; if (is_array($tags) && count($tags) > 0) { $tags = array_column($tags, 'value'); } else { $tags = []; } @endphp @foreach ($tags as $tag) {{ ucfirst($tag) }} @endforeach @auth @php $is_liked = App\Models\BlogLike::where('blog_id', $blog_details->id) ->where('user_id', auth()->user()->id) ->first(); @endphp {{ $total_likes }} @endauth @include('frontend.default.blog.author_details') {{ $total_comments }} @isset(auth()->user()->id) {{ get_phrase('Post A Comment') }} @csrf {{ get_phrase('Post Comment') }} @endisset @foreach ($blog_comments as $comment) @include('frontend.default.blog.comment') @endforeach @endsection @push('js') @endpush
{{ $blog_details->author_name }}
{{ $total_comments }}
{{ get_phrase('Post A Comment') }}
@endisset @foreach ($blog_comments as $comment) @include('frontend.default.blog.comment') @endforeach