@foreach ($activities as $activity)
    <div class="product-response__item activity mt-3">
        <div class="product-response-info mb-2">
            <div class="product-response-info__thumb">
                @if ($activity->user)
                    <x-author-avatar :author="$activity->user" />
                @else
                    <img src="{{ getImage(getFilePath('reviewerProfile') . '/' . $activity?->reviewer?->image, getFileSize('reviewerProfile')) }}"
                        alt="@lang('Reviewer Image')">
                @endif
            </div>
            <div class="product-response-info__content mb-2">
                <h6 class="product-response-info__name">
                    {{ $activity->user->fullname ?? $activity->reviewer->name }}
                    - [{{ $activity->user_id ? __('Author') : __('You') }}]
                </h6>
                <small class="product-response-info__date text-muted">
                    {{ showDateTime($activity->created_at, 'd M Y ') }}
                    @lang('at')
                    {{ showDateTime($activity->created_at, 'H:ma') }}
                </small>
                <div class="product-response-list">
                    <p>{{ $activity->message }}</p>
                </div>
            </div>
        </div>
    </div>
@endforeach
