@extends('layouts.frontend.master') @section('title') {{ $blog->name }} @endsection @section('meta_tags') @endsection @push('css') {{-- --}} @endpush @section('content')

{{ $blog->name }}

Author Image
{{ $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 }})
@endforeach
@endif
{{ $blog->comments ? count($blog->comments) : 0 }} Comments
User Avatar
@if($blog->comments && $blog->comments->isNotEmpty()) @foreach($blog->comments as $comment)
Avatar
{{ $comment->user ? $comment->user->name : 'Anonymous' }}
{{ $comment->comment }}
@if($comment->replies && $comment->replies->isNotEmpty())
@foreach($comment->replies as $nestedComment)
Avatar
{{ $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