@extends('layouts.frontend.master') @section('title') {{ $blog->name }} @endsection @section('meta_tags') @endsection @push('css') {{-- --}} @endpush @section('content') {{ $blog->name }} {{ $blog->createdBy ? $blog->createdBy->name : 'Unknown Author' }} {{ \Carbon\Carbon::parse($blog->created_at)->format('M d, Y') }} {{ $blog->comments ? count($blog->comments) : 0 }} Comments | @php $currentUrl = urlencode(request()->fullUrl()); $currentTitle = urlencode($blog->name ?? config('app.name')); @endphp Share this: {{-- Facebook --}} {{-- X (Twitter) --}} {{-- LinkedIn --}} {!! $blog->description !!} @if($blog->attachments && $blog->attachments->isNotEmpty()) Blog Attachments @foreach($blog->attachments as $attachment) {{ $attachment->original_name }} ({{ $attachment->formatted_file_size }}) Download @endforeach @endif {{ $blog->comments ? count($blog->comments) : 0 }} Comments @if($blog->comments && $blog->comments->isNotEmpty()) @foreach($blog->comments as $comment) {{ $comment->user ? $comment->user->name : 'Anonymous' }} {{ $comment->comment }} @if($comment->replies && $comment->replies->isNotEmpty()) @foreach($comment->replies as $nestedComment) {{ $nestedComment->user ? $nestedComment->user->name : 'Anonymous' }} {{ $nestedComment->comment }} @endforeach @endif @endforeach @else No comments yet. Be the first to comment! @endif @endsection @push('js') @endpush
{!! $blog->description !!}
No comments yet. Be the first to comment!
{{ $blog->comments ? count($blog->comments) : 0 }} Comments
No comments yet. Be the first to comment!
@endif