review = $review; $this->productName = $productName; } public function render() { $heading = $this->productName /* translators: %s - product name */ ? sprintf(__("%s's Review", 'fluent-cart'), $this->productName) : __('Review Thread', 'fluent-cart'); $approvedReplies = $this->review->replies() ->where('status', Status::REVIEW_APPROVED) ->orderBy('created_at', 'ASC') ->orderBy('id', 'ASC') ->limit(50) ->get(); ?>