diff --git a/resources/views/livewire/comment.blade.php b/resources/views/livewire/comment.blade.php index 4128bbe..2879be9 100644 --- a/resources/views/livewire/comment.blade.php +++ b/resources/views/livewire/comment.blade.php @@ -38,27 +38,27 @@ @endif
+ + {{ $comment->presenter()->relativeCreatedAt() }} + + @guest - - {{ $comment->likeCount() }} + + {{ $comment->likeCount() }} @endguest @auth - @endauth - - {{ $comment->presenter()->relativeCreatedAt() }} - - @auth @if ($comment->depth() < 2)
-
- @auth -
-
- {{ auth()->user()->name }} -
-
-
-
- - - @error('newCommentState.body') -

{{ $message }}

- @enderror +
+ +
+ @auth +
+
+ {{ auth()->user()->name }}
-
- +
+ +
+ + + @error('newCommentState.body') +

{{ $message }}

+ @enderror +
+
+ +
+
- -
-
- @endauth +
+ @endauth - @guest -

Log in to comment.

- @endguest + @guest +

Log in to comment.

+ @endguest +
+ + +
+
+ @if ($comments->isNotEmpty()) + @foreach($comments as $comment) + + @endforeach + {{ $comments->links('pagination::tailwind') }} + @else +

No comments yet.

+ @endif +
+
+
+
\ No newline at end of file diff --git a/resources/views/livewire/user-comments.blade.php b/resources/views/livewire/user-comments.blade.php index 9131288..59078f6 100644 --- a/resources/views/livewire/user-comments.blade.php +++ b/resources/views/livewire/user-comments.blade.php @@ -88,6 +88,20 @@ {{ $episode->likeCount() }} {{ $episode->commentCount() }}

+ +
+ @elseif($comment->commentable_type == \App\Models\Hentai::class) + @php + $hentai = \App\Models\Hentai::find($comment->commentable_id); + $episode = $hentai->episodes->first(); + @endphp +
+ + {{ $episode->title }} + +
@endif