|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/angkasapuraretail.com/public_html/application/modules/wishlist/views/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!--make some space gap on top with menu-->
<div class="banner" style="padding-top: 30px;"></div>
<div class="container">
<div class="accountPage" style="padding-bottom:50px;">
<div class="myaccount_menu" style="border-right:1px solid #ccc;">
<?= Modules::run('myaccount_menu'); ?>
</div><!-- end col-sm-2-->
<div class="my_profile">
<h4 style="text-align:center;"><?= strtoupper("Wishlist Saya"); ?></h4>
<div class="isotope-grid cols-3 mb-2">
<?php if($products != null): ?>
<?php foreach ($products as $item) : ?>
<!-- Product-->
<div class="grid-item" style="padding: 2px;margin-bottom: 20px;">
<div class="product-card" style="padding:5px;">
<!-- product image -->
<div class="product-image" style="margin-bottom: 10px;position: relative;">
<?php if($item->is_sale == 'yes') : ?>
<div style="width: 40px; height: 40px; color:white !important; background:#F48120; display: block; border-radius:50%; line-height: 40px; text-align: center; font-weight: bold;position: absolute;right: 5px">
SALE
</div>
<?php endif; ?>
<a class="product-thumb" href="<?= base_url() . 'product/' . $item->alias; ?>">
<?php if($item->image1 != null): ?>
<?php if (file_exists(FCPATH.'/uploads/product/small/' . $item->image1)):?>
<img src="<?= base_url() . 'uploads/product/small/' . $item->image1; ?>" alt="<?= $item->title; ?>">
<?php else: ?>
<img src="<?= base_url() . 'uploads/product/small/placeholder.jpg';?>" alt="<?= $item->title; ?>">
<?php endif; ?>
<?php else: ?>
<img src="<?= base_url() . 'uploads/product/small/placeholder.jpg';?>" alt="<?= $item->title; ?>">
<?php endif; ?>
</a>
<div class="medicine-indicator">
<?php if ($item->golongan_obat != null): ?>
<i class="fa fa-circle fa-2x circle-product" style="color: <?= $item->golongan_obat; ?>"></i>
<?php endif; ?>
</div>
<div class="medicine-love">
<a href="<?= base_url('wishlist/delete/'.$item->product_id); ?>" data-toast data-toast-type="danger" data-toast-position="topRight" data-toast-icon="icon-circle-check" data-toast-title="DELETE WISHLIST" data-toast-message="successfuly remove from wishlist!">
<i class="fa fa-trash love-product"></i>
</a>
</div>
</div>
<!-- product image -->
<!-- product name, price and ratings -->
<h3 class="product-title">
<a href="<?= base_url() . 'product/' . $item->alias; ?>"><?= ucfirst($item->title); ?></a>
</h3>
<?php if($item->is_sale == 'no') : ?>
<h4 style="font-size:15px; color:#F87F38; line-height:0.5;display: inline;">Rp <?= number_format($item->sale_price); ?></h4>
/ <span style="font-size: 15px;"><?= $item->text_satuan_jual; ?></span><br>
<del>Rp <?= number_format($item->competitor_price); ?></del>
<?php
$hemat = number_format(($item->competitor_price - $item->sale_price) / $item->competitor_price * 100);
echo $hemat . '%';
?>
<?php else : ?>
<h4 style="font-size:15px; color:#F87F38; line-height:0.5;display: inline;">Rp <?= number_format($item->discounted_price); ?></h4>
/ <span style="font-size: 15px;"><?= $item->text_satuan_jual; ?></span><br>
<del>Rp <?= number_format($item->sale_price); ?></del>
<?php
$hemat = number_format(($item->sale_price - $item->discounted_price) / $item->sale_price * 100);
echo $hemat . '%';
?>
<?php endif; ?>
</div>
</div>
<!-- Product-->
<?php endforeach; ?>
<?php else: ?>
<p style="text-align:center;"><?= strtoupper(lang('no_wishlist')); ?>.</p>
<?php endif; ?>
</div>
</div><!-- end row-->
</div><!-- end container -->
</div><!--tambahan agar footer bisa fullscrean-->