@props(['comment', 'depth' => 0])
@if($comment->deleted)
This comment has been deleted.
@else
{{ $comment->user->first_name ?? 'Anonymous' }} {{ $comment->user->last_name ?? '' }}
{{ $comment->created_at->diffForHumans() }}
@can('update', $comment) @endcan @can('delete', $comment) @endcan
{{ $comment->text }}
@can('update', $comment)
@endcan @if($comment->resources->count() > 0) @php $commentRotations = ['-rotate-1', 'rotate-[1.5deg]', '-rotate-[1.5deg]', 'rotate-1']; @endphp
@foreach($comment->resources as $index => $image) @php $commentImgUrl = $image->file ? Storage::url($image->file) : $image->thumbnail(1200, 1200); $commentUserName = $comment->user ? $comment->user->name : 'Anonymous'; @endphp Comment image {{ $index + 1 }} @endforeach
@endif
@auth @endauth
@endif
@foreach($comment->replies as $reply) @endforeach