42 lines
1.8 KiB
PHP
42 lines
1.8 KiB
PHP
@php if( !isset($entry) && isset($news) ){ $entry = $news; $newsMode = true; } else { $newsMode = false; } @endphp
|
|
<div class="{{ !$newsMode ? 'grid-c2' : '' }}" style="margin-top:1%;">
|
|
@if( !$newsMode )
|
|
<div id="reviews-section">
|
|
<div class="entry-content">
|
|
<x-entry-section-title label="Reviews" icon="star" />
|
|
</div>
|
|
</div>
|
|
@endif
|
|
<div id="comments-section">
|
|
<div class="entry-content">
|
|
<x-entry-section-title label="Last comments" icon="message-circle" />
|
|
@forelse( $comments as $comment )
|
|
@if($comment['user_id'] === config('xenforo.bot_user_id') && $comment['position'] == 0)
|
|
@continue
|
|
@else
|
|
<div class="comment-block">
|
|
<x-xen-foro-avatar :user="$comment['user_id']" />
|
|
|
|
<div class="comment-content">
|
|
<div class="comment-meta">
|
|
<span class="comment-author">{{ $comment['User']['username'] }}</span>
|
|
<span class="comment-separator"></span>
|
|
<span class="comment-date">{{ date('Y-m-d', $comment['post_date']) }}</span>
|
|
</div>
|
|
|
|
<div class="comment-body">
|
|
{!! $comment['message'] !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@empty
|
|
<span class="whisper">Be the first to post a comment</span>
|
|
@endforelse
|
|
<a href="{{ xfRoute("threads/{$entry->comments_thread_id}/latest") }}" class="btn primary" style="margin-top: 1%;">
|
|
<i data-lucide="pen"></i> Post a comment
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|