nyaabooru/resources/views/livewire/posts/comment.blade.php
Jaiden 1442dbfa60
Some checks are pending
Docker / build (push) Waiting to run
add users page, full screen image preview, footer
2025-05-25 05:23:34 -04:00

18 lines
622 B
PHP

<wa-card>
<div class="wa-flank wa-align-items-start">
<livewire:app.pfp :user="$comment->user" />
<div class="wa-split">
<div class="wa-stack wa-gap-3xs">
<div class="wa-cluster wa-align-items-center">
<strong>{{ $comment->user->name }}</strong>
<span class="wa-caption-m" wire:poll.visible>{{ $comment->created_at->diffForHumans() }}</span>
</div>
<span>{{ $comment->message }}</span>
</div>
@if (Auth::id() == $comment->user->id)
<wa-icon-button href="{{ url("/delete/comment/$comment->id") }}" name="times" label="Delete"></wa-icon-button>
@endif
</div>
</div>
</wa-card>