@include('common/confirmation') @foreach($topics as $post)
{{$post->member->name}}
@if($post->updated_at > $post->created_at )
Last updated on {{ \App\Helpers\Helper::formatDateTime($post->updated_at);}}
@endif @if(Auth::user()->id == $post->member_id || Auth::user()->role==1)
@endif
{{-- Tag items --}}
@foreach($post['postTag'] as $post_tag) @if($post_tag['tag'] !== null) #{{ ($post_tag['tag']) ? $post_tag['tag']['tag'] : '' }} @endif @endforeach
{{-- End Tag items --}} {{--
--}} @if($post->is_reply == 0) {{-- --}} {!! html_entity_decode($post['post']) !!} {{-- --}} @else {!! html_entity_decode($post['post']) !!} @endif
@include('admin/fourthleveltopic/attachments',['attachments'=>$post['postAttachments']]) @php $heart_cls = 'fa fa-heart text-muted'; $thump_cls = 'fa fa-thumbs-o-up text-muted' @endphp
@if(!empty($post['postActivities'])) @if($post['postActivities']['activity_type'] == 2 && $post['postActivities']['member_id'] == Auth::user()->id ) @php $heart_cls = 'fa fa-heart text-danger'; @endphp @endif @if($post['postActivities']['activity_type'] == 1 && $post['postActivities']['member_id'] == Auth::user()->id ) @php $thump_cls = 'fa fa-thumbs-up text-primary'; @endphp @endif @endif
{{$post->post_likes_count}}
{{$post->post_loves_count}}
{{--
{{ $post->member_post_count }}
--}}
{{ $post->post_views_count }}
Posted on: {{ \App\Helpers\Helper::formatDateTime($post->created_at);}} by {{$post->member->name}}
{{-- Like --}}
@include('discussion_forum/include/imoji')
{{-- End Like --}}
@if(count($post->postReplies) > 0) {{-- {{$post->postReplies}} --}}
{{--
Replied.....
{{$post['postReplies'][0]['member']['name']}}
{!! html_entity_decode($post['postReplies'][0]['post']) !!}
@include('discussion_forum/include/imoji')
View More Replies.....
--}}
@include('admin/fourthleveltopic/post_reply_list',['topics'=>$post->postReplies])
@endif
@endforeach