| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/lcmsmodels.com/public_html/resources/views/posts/ |
Upload File : |
@foreach( $comments as $comment )
<div class="row singleComment" data-id="{{ $comment->id }}">
<div class="col-1">
<div class="profilePicXS mt-0 ml-0 mr-2 mb-2 ml-md-3 shadow-sm">
<a href="{{ route('profile.show', ['username' => $comment->commentator->profile->username ]) }}">
<img src="{{ $comment->commentator->profile->profilePicture }}" alt="" width="40" height="40">
</a>
</div>
</div>
<div class="col-11">
<div class="comment-item p-2 mb-2 ml-1">
<a href="{{ route('profile.show', ['username' => $comment->commentator->profile->username ]) }}">
{{ $comment->commentator->name }}
</a> <small class="text-secondary">{{ $comment->created_at->diffForHumans() }}</small><br>
<div class="text-wrap comment-content" data-id="{{ $comment->id }}" data-post="{{ $comment->commentable->id }}">
{{ $comment->comment }}
</div>
<div class="comment-form" data-id="{{ $comment->id }}" data-post="{{ $comment->commentable->id }}"></div>
@if( auth()->check() AND auth()->id() == $comment->user_id )
<div class="comment-actions mt-2 border-top pt-2 text-secondary">
<a href="javascript:void(0)" class="edit-comment text-secondary" data-id="{{ $comment->id }}" data-post="{{ $comment->commentable->id }}">
<small><i class="fas fa-pencil-alt"></i> @lang('post.edit-comment')</small>
</a>
@endif
@if( auth()->check() AND auth()->id() == $comment->user_id OR $comment->commentable->user_id == auth()->id() )
<a href="javascript:void(0)" class="delete-comment text-secondary" data-id="{{ $comment->id }}" data-post="{{ $comment->commentable->id }}">
<small><i class="fas fa-ban"></i> @lang('post.delete-comment')</small>
</a>
@endif
</div>
</div>
</div>
</div>
@endforeach