@extends('frontend.layouts.master') @section('content')

{{ $blog->title }}

{!! $blog->content !!}

@foreach ($blog->tags as $index => $tag) # {{ $tag->name }} @endforeach

Share this Post

@if (auth('web')->check() && $blog->blogLikes()->where('users.id', auth('web')->user()->id)->exists())
@csrf
@else @if (auth('web')->check())
@csrf
@endif @endif

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

    @foreach ($blog->blogComments as $key => $user)
  • @if (auth('web')->check()) @if ($user->id === auth('web')->user()->id)
    @csrf @method('DELETE')
    @endif @endif
    {{ $user->fullname() }}

    {{ $user->pivot->comment }}

    {{ $user->pivot->created_at->format('M d, Y h:i A') }}
  • @endforeach
@if (auth('web')->check())

Leave a comment

@csrf
@error('comment') {{ $message }} @enderror
@endif
@endsection