<?php

$item = null;
$value = null;
$order = "id";

$products = ControllerProducts::ctrShowProducts($item, $value, $order);

 ?>

<!-- Log on to codeastro.com for more projects! -->
<div class="box box-default">

  <div class="box-header with-border">

    <h3 class="box-title">Recently Added Products</h3>

    <div class="box-tools pull-right">

      <button type="button" class="btn btn-box-tool" data-widget="collapse">

        <i class="fa fa-minus"></i>

      </button>

      <button type="button" class="btn btn-box-tool" data-widget="remove">

        <i class="fa fa-times"></i>

      </button>

    </div>

  </div>
  <!-- Log on to codeastro.com for more projects! -->
  <div class="box-body">

    <ul class="products-list product-list-in-box">

    <?php

    for($i = 0; $i < 7; $i++){

      echo '<li class="item">

        <div class="product-img">

          <img src="'.$products[$i]["image"].'" alt="Product Image">

        </div>

        <div class="product-info">

          <a href="" class="product-title">

            '.$products[$i]["description"].'

            <span class="label label-warning pull-right">₦'.$products[$i]["sellingPrice"].'</span>

          </a>
    
       </div>

      </li>';

    }

    ?>

    </ul>

  </div>

  <div class="box-footer text-center">

    <a href="products" class="uppercase">View All Products</a>
  
  </div>
	<!-- Log on to codeastro.com for more projects! -->
</div>
