<ol class="one-page-checkout" id="checkoutSteps">
  <li id="opc-billing" class="section allow active">
    <div id="checkout-step-billing">
      <?php if (!isset($redirect)) { ?>
        <?php if($text_link_account) { ?>
          <div class="warning">
            <span>
              <?php echo $text_link_account; ?>
              <i class="btn-close fas fa-times" aria-hidden="true"></i>
            </span>
          </div>
        <?php } ?>
        <div class="checkout-product">
          <?php foreach ($cartlist as $keyTipo => $cartTipo) { ?>
            <?php foreach ($cartTipo as $keylista => $lista) {  ?>
              <table class="table table-action" id="shopping-cart-table">
                <thead>
                  <tr>
                    <th class="t-medium"><?php echo $column_name; ?></th>
                    <th class="t-medium"><?php echo $column_model; ?></th>
                    <th class="t-medium"><?php echo $column_quantity; ?></th>
                    <th class="t-medium"><?php echo $column_price; ?></th>
                    <th class="t-medium"><?php echo $column_total; ?></th>
                  </tr>
                </thead>
                <tbody>
                  <?php foreach ($lista['products'] as $keyProduto => $product) { ?>
                    <?php if($product['recurring']): ?>
                      <tr>
                        <td colspan="6" style="border:none;"><image src="catalog/view/theme/default/image/reorder.png" alt="" title="" style="float:left;" />
                          <span style="float:left;line-height:18px; margin-left:10px;">
                            <strong><?php echo $text_recurring_item ?></strong>
                            <?php echo $product['profile_description'] ?>
                          </span>
                        </td>
                      </tr>
                    <?php endif; ?>
                    <tr>
                      <td class="fix"></td>
                      <td class="info_responsive"><b><?php echo $column_name; ?></b></td>
                      <td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>

                      <?php if (isset($futuragrade_status) && ($futuragrade_status)) { ?>
                        <?php if(isset($product['color_description'])) { ?>
                          <br>- <small><?php echo $product['color_template_description'].' : '. $product['color_description']; ?></small>
                        <?php } ?>

                        <?php if(isset($product['size_description'])){ ?>
                          <br>- <small><?php echo $product['size_template_description'].' : '.$product['size_description']; ?></small>
                        <?php } ?>

                        <?php if(isset($product['specification_description'])){ ?>
                          <br>- <small><?php echo $product['specification_template_description']; ?> <?php echo $product['specification_description']; ?></small>
                        <?php } ?>
                      <?php } ?>

                      <?php if ($product['recurring']): ?>
                        <br>&nbsp;<small><?php echo $text_payment_profile ?>: <?php echo $product['profile_name'] ?></small>
                      <?php endif; ?>
                      </td>
                      <td class="info_responsive"><b><?php echo $column_model; ?></b></td>
                      <td class="model"><?php echo $product['model']; ?></td>
                      <td class="info_responsive"><b><?php echo $column_quantity; ?></b></td>
                      <td class="quantity"><?php echo $product['quantity']; ?></td>
                      <td class="info_responsive"><b><?php echo $column_price; ?></b></td>
                      <td class="price"><?php echo $product['pontos']; ?></td>
                      <td class="info_responsive"><b><?php echo $column_total; ?></b></td>
                      <td class="total"><?php echo $product['total']; ?></td>
                    </tr>
                  <?php } ?>
                </tbody>
              </table>
            <?php } ?>
          <?php } ?>
          <table class="table table-action" id="shopping-cart-table">
            <tfoot>
              <?php foreach ($totals as $total) { ?>
                <tr>
                  <td colspan="8" style="text-align:right;">
                    <b><?php echo $total['title']; ?>: </b>
                    <?php echo $total['text']; ?>
                  </td>
                </tr>
              <?php } ?>
            </tfoot>
          </table>
        </div>
        <div class="payment"><?php echo $payment; ?></div>
      <?php } else { ?>
        <script type="text/javascript">
          location = '<?php echo $redirect; ?>';
        </script>
      <?php } ?>
    </div>
  </li>
</ol>
