@php $depth = $depth ?? 0; $authorName = $comment->user?->name ?? $comment->guest_name ?? '익명'; $canEditComment = auth('tenant')->check() ? (auth('tenant')->id() === $comment->user_id || $board->canEditComments(auth('tenant')->user())) : ! $comment->user_id; $canDeleteComment = auth('tenant')->check() ? (auth('tenant')->id() === $comment->user_id || $board->canDeleteComments(auth('tenant')->user())) : ! $comment->user_id; @endphp