<?php if ($reviews) { ?>
  <?php foreach ($reviews as $review) { ?>
    <div class="bottom-padding-medium bottom-margin-medium bottom-border-gray">
      <span class="text-medium text-dark visible-block bottom-margin-x-small"><?php echo $review['author']; ?></span>
      <div class="vertical-middle">
        <i class="far fa-star text-medium active_star<?php echo $review['rating']; ?>" aria-hidden="true"></i>
        <i class="far fa-star text-medium active_star<?php echo $review['rating']; ?>" aria-hidden="true"></i>
        <i class="far fa-star text-medium active_star<?php echo $review['rating']; ?>" aria-hidden="true"></i>
        <i class="far fa-star text-medium active_star<?php echo $review['rating']; ?>" aria-hidden="true"></i>
        <i class="far fa-star text-medium active_star<?php echo $review['rating']; ?>" aria-hidden="true"></i>
      </div>
      <span class="text-medium text-gray left-margin-x-small vertical-middle"><?php echo $review['date_added']; ?></span>
      <div class="text-medium text-gray top-margin-x-small"><?php echo $review['text']; ?></div>
    </div>
  <?php } ?>
  <div class="pagination"><?php echo $pagination; ?></div>
<?php } else { ?>
  <div class="text-medium text-gray"><?php echo $text_no_reviews; ?></div>
<?php } ?>
