@extends('general_base') @section('title', $blog->title) @section('style') @endsection @section('content')

{{ $blog->title }}

{{ $blog->title }}
{!! $blog->content !!}
@auth @foreach(App\Models\BlogReaction::REACTIONS as $type => $reaction) @endforeach @else @foreach(App\Models\BlogReaction::REACTIONS as $type => $reaction) @endforeach @endauth
@if($blog->tags)
@foreach($blog->tags as $tag) #{{ $tag }} @endforeach
@endif

Comments ({{ $blog->comments->count() }})

@auth
@if(auth()->user()->avatar) {{ auth()->user()->name }} @else @endif
Write a comment as {{ auth()->user()->name }}
@else

Please login to join the discussion.

@endauth
@foreach($blog->comments as $comment) @include('blog.partials.comment', ['comment' => $comment]) @endforeach
@endsection @section('script') @endsection