<?php
  /**
   * Wishlist Page
   *
   * @package Wojo Framework
   * @author wojoscripts.com
   * @copyright 2017
   * @version $Id: wishlist.tpl.php, v1.00 2017-05-05 10:12:05 gewa Exp $
   */
  if (!defined("_WOJO"))
      die('Direct access to this location is not allowed.');
?>
<div class="double-padding">
  <h2><?php echo Lang::$word->META_M_WISHLIST;?> - <?php echo $this->core->company;?></h2>
  <?php if(!$this->data):?>
  <div class="content-center"><img src="<?php echo ADMINVIEW;?>/images/notfound.png" alt="">
    <p class="wojo small thick caps text"><?php echo Lang::$word->FRONT_COMPARE_EMPTY;?></p>
  </div>
  <?php else:?>
  <table class="wojo basic table">
    <thead>
      <tr>
        <th></th>
        <th></th>
        <th><?php echo Lang::$word->NAME;?></th>
        <th><?php echo Lang::$word->PRD_PRICE;?></th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($this->data as $row):?>
      <tr id="wishlist_<?php echo $row->id?>">
        <td class="collapsing"><a data-set='{"option":[{"qAction": "1","page":"removeWishlist", "id":<?php echo $row->id?>}], "url":"/controller.php", "complete":"remove", "parent":"#wishlist_<?php echo $row->id?>"}' class="qAction"><i class="icon negative circular delete link"></i></a></td>
        <td class="collapsing"><img src="<?php echo Product::hasThumb($row->thumb, $row->id);?>" alt="<?php echo $row->title?>" class="wojo basic listing image"></td>
        <td><h4>
            <a href="<?php echo Url::url('/product', $row->slug);?>"><?php echo $row->title?></a>
          </h4></td>
        <td><span class="wojo bold text"><?php echo Utility::renderPrice($row->is_sale, $row->price, $row->sprice, "negative");?></span></td>
        <td class="collapsing"><?php include(THEMEBASE . '/snippets/listButton.tpl.php');?></td>
      </tr>
      <?php endforeach;?>
    </tbody>
  </table>
  <?php endif;?>
</div>