@extends('layouts.blog') @section('title') {{ $post->title . " | Technoblog"}} @endsection @section('blog_content')
{{ $post->title }}
@if (!empty($post->user->userProfile->profile_photo_link)) @else {{ strtoupper($post->user->name[0]) . strtoupper($post->user->surname[0]) }} @endif {{ $post->ago() }} {{ $likeCounter }} @if ($post->isLiked($ip)) @else @endif {{ count($comments) }}
Comments
@if($comments->count() == 0) No comments yet. @endif @foreach ($comments as $comment){{ $comment->name }} - {{ $comment->ago() }} @if (auth()->check() && !$comment->is_active && (auth()->user()->hasPermission("approve_all_comments") || $comment->post->user->id == auth()->id())) Confirm
@endif{{ $comment->comment }}