@php $existVote = @$post->votes?->where('user_id', auth()->id())->first(); @endphp @extends('front.layout.app') @section('content')

QnA

  • {{ showDateTime(@$post->created_at, 'd M, Y h:i A') }} {{ diffForHumans($post->created_at) }}
  • |
  • By {{ __(@$post->user?->name) }}
  • Posted in theredpillportfolio

{{ __(@$post->title) }}

{!! $post->content !!}

    {{--
  • {{ number_format_short(@$post->views) }}
  • {{ number_format_short(@$post->comments?->count()) }}
  • --}}
    {{ __(number_format_short(@$post->votes?->where('like', 1)->count() - @$post->votes?->where('unlike', 1)->count())) }}
@foreach ($post->comments->where('parent_comment_id', null) as $single_comment) @if ($single_comment->status)
@include('front.components.com', [ 'single_comment' => $single_comment, 'count' => 0, ])
@endif @endforeach @if (auth()->user() && auth()->user()->role === 'admin')
@endif
@endsection @section('script') @endsection