| Current Path : /home/users/unlimited/www/eshop.codeskitter.site/application/views/front-end/modern/pages/ |
| Current File : /home/users/unlimited/www/eshop.codeskitter.site/application/views/front-end/modern/pages/home.php |
<section class="deeplink_wrapper">
</section>
<section class="mt-3">
<div class="container pb-md-1 py-lg-1 overflow-hidden">
<div class="row align-items-center">
<!-- Swiper -->
<div class="swiper-container category-swiper ">
<div class="swiper-wrapper">
<div class="swiper-slide swiper-slide-category">
<a href="<?= base_url('home/categories/') ?>" class="text-decoration-none">
<img src="<?= base_url('media/image?path=assets/front_end/modern/img/new/dashboard.png&width=110&quality=80') ?>" class="" alt="<?= !empty($this->lang->line('see_all')) ? str_replace('\\', '', $this->lang->line('see_all')) : 'See All'; ?>" />
<h6 class="fs-14 mb-0"><?= !empty($this->lang->line('see_all')) ? str_replace('\\', '', $this->lang->line('see_all')) : 'See All'; ?></h6>
</a>
</div>
<?php
foreach ($categories as $key => $row) { ?>
<div class="swiper-slide swiper-slide-category">
<a href="<?= base_url('products/category/' . html_escape($row['slug'])) ?>" class="brand_image_div mx-2 text-decoration-none">
<img class="lazy" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $row['relative_path'] . '&width=130&quality=80') ?>" alt="<?= html_escape($row['name']) ?>" />
<h6 class="fs-14 mb-0"><?= html_escape($row['name']) ?></h6>
</a>
</div>
<?php }
?>
</div>
<div class="swiper-controls">
<div class="swiper-pagination category-swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span>
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 2"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="Go to slide 3" aria-current="true"></span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- slider section -->
<section class="slider container">
<div class="pb-md-1">
<div class="swiper-container swiper-slide-container overflow-hidden" data-margin="30" data-nav="true" pagination="true" pagination-dynamic-bullets="true">
<div class="swiper-wrapper">
<?php if (isset($sliders) && !empty($sliders)) { ?>
<?php foreach ($sliders as $row) { ?>
<div class="swiper-slide">
<div class="slide-img">
<a href="<?= $row['link'] ?>" target="<?= ($row['type'] == "slider_url") ? "_blank" : "" ?>">
<picture>
<source srcset="<?= base_url('media/image?path=' . $row['image'] . '&width=1000&quality=80') ?>" media="(max-width: 500px)">
<source srcset="<?= base_url('media/image?path=' . $row['image'] . '&width=1100&quality=80') ?>" media="(max-width: 800px)">
<source srcset="<?= base_url('media/image?path=' . $row['image'] . '&width=1600&quality=80') ?>">
<img class="lazy image-fit rounded-3" src="<?= base_url('media/image?path=' . $row['image'] . '&width=1300&quality=80') ?>" data-src="<?= base_url('media/image?path=' . $row['image'] . '&width=1300&quality=80') ?>" alt="Offer Slider" />
</picture>
</a>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<div class="swiper-controls">
<div class="swiper-pagination slide-swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span>
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 2"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="Go to slide 3" aria-current="true"></span>
</div>
</div>
</div>
</section>
<?php if (isset($brands) && !empty($brands) && $brands != []) { ?>
<section class="mt-3">
<div class="container pb-md-1 pt-md-14 py-lg-1 overflow-hidden">
<div class="row align-items-center">
<div class="my-4 featured-section-title">
<div class="d-md-flex justify-content-md-between">
<div>
<h3 class="text-dark mb-0"><?= !empty($this->lang->line('brands')) ? str_replace('\\', '', $this->lang->line('brands')) : 'Brands'; ?></h3>
</div>
<div>
<a href="<?= base_url('home/brands/') ?>" class="hover text-decoration-none">
<span> <?= !empty($this->lang->line('see_all')) ? str_replace('\\', '', $this->lang->line('see_all')) : 'See All' ?></span>
<i class="uil uil-arrow-right"></i>
</a>
</div>
</div>
</div>
<!-- Swiper -->
<div class="swiper-container category-swiper ">
<div class="swiper-wrapper">
<?php
foreach ($brands as $key => $row) { ?>
<div class="swiper-slide swiper-slide-category">
<a href="<?= base_url('products?brand=' . html_escape($row['brand_slug'])) ?>" class="brand_image_div mx-2 text-decoration-none">
<img class="lazy" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $row['brand_img'] . '&width=110&quality=80') ?>" alt="<?= html_escape($row['brand_name']) ?>" />
<h6 class="fs-14 mb-0"><?= html_escape($row['brand_name']) ?></h6>
</a>
</div>
<?php }
?>
</div>
<div class="swiper-controls">
<div class="swiper-pagination category-swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span>
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 2"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="Go to slide 3" aria-current="true"></span>
</div>
</div>
</div>
</div>
</div>
</section>
<?php } ?>
<!-- sections -->
<section class="container main-content">
<?php $offer_counter = 0;
$offers = get_offers();
foreach ($sections as $count_key => $row) {
$i = 0;
if (!empty($row['product_details'])) {
if ($row['style'] == 'default') {
if ($count_key != 0) {
$offer_counter++;
$i++;
if (!empty($offers) && !empty($offers[$count_key - 1])) { ?>
<div class="offer-img">
<a href="<?= $offers[$count_key - 1]['link'] ?>">
<img class="img-fluid my-4 rounded offer-image lazy image-fit" data-src="<?= base_url('media/image?path=' . $offers[$count_key - 1]['image'] . '&width=1518&quality=80') ?>" alt="Offer image-<?= $i ?>" src="https://placehold.co/1290x268?text=Loading%20Offers..%20.&font=Montserrat">
</a>
</div>
<?php }
} ?>
<!-- Default style -->
<section class="wrapper mt-4">
<div class="my-4 featured-section-title">
<div class="align-items-center d-flex justify-content-between">
<div class="default_heading">
<h3 class="mb-0 section-title"><?= ucfirst($row['title']) ?></h3>
<h6 class="title-sm text-muted font-weight-light"><?= $row['short_description']; ?></h6>
</div>
<div>
<a href="<?= base_url('products/section/' . $row['id'] . '/' . $row['slug']) ?>" class="hover text-decoration-none"><?= !empty($this->lang->line('view_more')) ? str_replace('\\', '', $this->lang->line('view_more')) : 'View More' ?>
<i class="uil uil-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="grid grid-view shop mb-13">
<div class="row ">
<?php if (isset($row['product_details']) && !empty($row['product_details'])) { ?>
<?php
$i = 0;
if (count($row['product_details']) > 0) {
foreach ($row['product_details'] as $product_row) {
if ($product_row['type'] == 'simple_product') {
$product_stock = $product_row['stock'];
} else {
$product_stock = $product_row['total_stock'];
}
if ($i == 4) {
break;
}
?>
<div class="project item col-6 col-xl-3 default-style mb-3">
<figure class="rounded d-flex justify-content-center">
<div>
<a href="<?= base_url('products/details/' . $product_row['slug']) ?>">
<img class="lazy fig_image image-fit" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $product_row['relative_path'] . '&width=600&quality=80') ?>" alt="<?= $product_row['name'] ?>" />
</a>
</div>
<div class="desktop_quick_view">
<a class="item-like text-decoration-none add-to-fav-btn
<?= ($product_row['is_favorite'] == 1) ? 'fa fa-heart text-danger' : 'fa fa-heart-o' ?>
" href="#" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('add_to_favorite')) ? str_replace('\\', '', $this->lang->line('add_to_favorite')) : 'Add to Favorite' ?>" data-product-id="<?= $product_row['id'] ?>">
<i class=""></i>
</a>
<a href="#" class="quick-view-btn item-view text-decoration-none" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $product_row['variants'][0]['id'] ?>" data-izimodal-open="#quick-view">
<i class="uil uil-eye"></i>
</a>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
$modal = "";
} else {
$variant_id = "";
$modal = "#quick-view";
}
?>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
} else {
$variant_id = "";
}
?>
<a href="#" class="compare item-compare text-decoration-none" data-tip="<?= !empty($this->lang->line('compare')) ? str_replace('\\', '', $this->lang->line('compare')) : 'Compare' ?>" data-bs-toggle="white-tooltip" title="compare" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>">
<i class="uil uil-exchange-alt"></i>
</a>
</div>
<?php if (isset($product_row['min_max_price']['special_price']) && $product_row['min_max_price']['special_price'] != '' && $product_row['min_max_price']['special_price'] != 0 && $product_row['min_max_price']['special_price'] < $product_row['min_max_price']['min_price']) { ?>
<span class="avatar bg-pink d-flex position-absolute text-uppercase text-white sale_tag">
<span class=""><?= !empty($this->lang->line('sale')) ? str_replace('\\', '', $this->lang->line('sale')) : 'Sale' ?></span>
</span>
<?php } ?>
<?php $variant_price = ($product_row['variants'][0]['special_price'] > 0 && $product_row['variants'][0]['special_price'] != '') ? $product_row['variants'][0]['special_price'] : $product_row['variants'][0]['price'];
$data_min = (isset($product_row['minimum_order_quantity']) && !empty($product_row['minimum_order_quantity'])) ? $product_row['minimum_order_quantity'] : 1;
$data_step = (isset($product_row['minimum_order_quantity']) && !empty($product_row['quantity_step_size'])) ? $product_row['quantity_step_size'] : 1;
$data_max = (isset($product_row['total_allowed_quantity']) && !empty($product_row['total_allowed_quantity'])) ? $product_row['total_allowed_quantity'] : 0;
?>
<div class="desktop_quick_view">
<a href="#" class="add_to_cart item-cart text-decoration-none" data-product-id="<?= $product_row['id'] ?>" data-product-stock="<?= $product_stock ?>" data-product-variant-id="<?= $variant_id ?>" data-product-slug="<?= $product_row['slug'] ?>" data-product-title="<?= $product_row['name'] ?>" data-product-image="<?= $product_row['image']; ?>" data-product-price="<?= $variant_price; ?>" data-min="<?= $data_min; ?>" data-step="<?= $data_step; ?>" data-product-description="<?= short_description_word_limit(output_escaping(str_replace('\r\n', ' ', strip_tags($product_row['short_description'])))); ?>" data-izimodal-open="<?= $modal ?>">
<i class="uil uil-shopping-bag"></i> <?= !empty($this->lang->line('add_to_cart')) ? str_replace('\\', '', $this->lang->line('add_to_cart')) : 'Add To Cart' ?></a>
</div>
</figure>
<div class="post-header text-center mt-3">
<input id="input" name="rating" class="rating rating-loading d-none" data-size="xs" value="<?= $product_row['rating'] ?>" data-show-clear="false" data-show-caption="false" readonly>
<h4 class="title post-title m-0 mt-2 title_wrap fs-16" title="<?= output_escaping(str_replace('\r\n', ' ', $product_row['name'])) ?>">
<a class="link-dark text-decoration-none" href="<?= base_url('products/details/' . $product_row['slug']) ?>"><?= str_replace('\r\n', ' ', strip_tags($product_row['name'])) ?></a>
</h4>
<?php
if (($product_row['variants'][0]['special_price'] < $product_row['variants'][0]['price']) && ($product_row['variants'][0]['special_price'] != 0)) { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['special_price'];
echo format_price($price);
?>
</span>
<sup>
<span class="special-price striped-price text-danger" id="product-striped-price-div">
<s id="striped-price">
<?php echo $settings['currency'] ?>
<?php $price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</s>
</span>
</sup>
</p>
<?php } else { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</span>
</p>
<?php } ?>
</div>
<!-- /.post-header -->
</div>
<?php $i++;
}
} ?>
<?php } ?>
<!-- /.item -->
<!-- /.item -->
</div>
<!-- /.row -->
</div>
</section>
<!-- style 1 -->
<?php } else if ($row['style'] == 'style_1') {
if ($count_key != 0) {
if (!empty($offers) && !empty($offers[$count_key - 1])) { ?>
<div class="offer-img">
<a href="<?= $offers[$count_key - 1]['link'] ?>">
<img class="img-fluid lazy my-4 rounded offer-image image-fit" data-src="<?= base_url('media/image?path=' . $offers[$count_key - 1]['image'] . '&width=1518&quality=80') ?>" alt="Offer image-<?= $i ?>" src="https://placehold.co/1290x268?text=Loading%20Offers..%20.&font=Montserrat">
</a>
</div>
<?php }
}
?>
<section class="mt-md-5 wrapper">
<div>
<div class="align-items-center gx-xl-12 row">
<div class="col-lg-9">
<div class="swiper-container text-center mySwiper overflow-hidden" data-margin="30" data-items-xl="3" data-items-md="2" data-items-xs="2">
<div class="swiper-wrapper">
<?php $product_count = count($row['product_details']) - 1; ?>
<?php
$i = 0;
if (count($row['product_details']) > 0) {
foreach ($row['product_details'] as $key => $product_row) {
if ($product_row['type'] == 'simple_product') {
$product_stock = $product_row['stock'];
} else {
$product_stock = $product_row['total_stock'];
}
if ($i == 8) {
break;
}
?>
<?php if ($key != 0) { ?>
<div class="swiper-slide shadow-xl product-bg slide_image">
<figure class="rounded ">
<div>
<a href="<?= base_url('products/details/' . $product_row['slug']) ?>">
<img class="lazy fig_image image-fit" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $product_row['relative_path'] . '&width=600&quality=80') ?>" alt="<?= $product_row['name'] ?>">
</a>
</div>
<div class="desktop_quick_view">
<a class="item-like text-decoration-none add-to-fav-btn
<?= ($product_row['is_favorite'] == 1) ? 'fa fa-heart text-danger' : 'fa fa-heart-o' ?>
" href="#" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('add_to_favorite')) ? str_replace('\\', '', $this->lang->line('add_to_favorite')) : 'Add to Favorite' ?>" data-product-id="<?= $product_row['id'] ?>">
<i class=""></i>
</a>
<a href="#" class="quick-view-btn item-view text-decoration-none" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $product_row['variants'][0]['id'] ?>" data-izimodal-open="#quick-view">
<i class="uil uil-eye"></i>
</a>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
$modal = "";
} else {
$variant_id = "";
$modal = "#quick-view";
}
?>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
} else {
$variant_id = "";
}
?>
<a href="#" class="compare item-compare text-decoration-none" data-bs-toggle="white-tooltip" title="Compare" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('compare')) ? str_replace('\\', '', $this->lang->line('compare')) : 'Compare' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>">
<i class="uil uil-exchange-alt"></i>
</a>
</div>
<?php if (isset($product_row['min_max_price']['special_price']) && $product_row['min_max_price']['special_price'] != '' && $product_row['min_max_price']['special_price'] != 0 && $product_row['min_max_price']['special_price'] < $product_row['min_max_price']['min_price']) { ?>
<span class="avatar bg-pink d-flex position-absolute text-uppercase text-white sale_tag">
<span class=""><?= !empty($this->lang->line('sale')) ? str_replace('\\', '', $this->lang->line('sale')) : 'Sale' ?></span>
</span>
<?php } ?>
<div class="card-body my-4">
<input id="input" name="rating" class="rating rating-loading d-none" data-size="xs" value="<?= $product_row['rating'] ?>" data-show-clear="false" data-show-caption="false" readonly>
<div class="product-content mt-2">
<h4 class="title post-title m-0 title_wrap fs-16" title="<?= output_escaping(str_replace('\r\n', ' ', $product_row['name'])) ?>">
<a class="link-dark text-decoration-none" href="<?= base_url('products/details/' . $product_row['slug']) ?>"><?= str_replace('\r\n', ' ', strip_tags($product_row['name'])) ?></a>
</h4>
<?php
if (($product_row['variants'][0]['special_price'] < $product_row['variants'][0]['price']) && ($product_row['variants'][0]['special_price'] != 0)) { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['special_price'];
echo format_price($price);
?>
</span>
<sup>
<span class="special-price striped-price text-danger" id="product-striped-price-div">
<s id="striped-price">
<?php echo $settings['currency'] ?>
<?php $price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</s>
</span>
</sup>
</p>
<?php } else { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</span>
</p>
<?php } ?>
<?php $variant_price = ($product_row['variants'][0]['special_price'] > 0 && $product_row['variants'][0]['special_price'] != '') ? $product_row['variants'][0]['special_price'] : $product_row['variants'][0]['price'];
$data_min = (isset($product_row['minimum_order_quantity']) && !empty($product_row['minimum_order_quantity'])) ? $product_row['minimum_order_quantity'] : 1;
$data_step = (isset($product_row['minimum_order_quantity']) && !empty($product_row['quantity_step_size'])) ? $product_row['quantity_step_size'] : 1;
$data_max = (isset($product_row['total_allowed_quantity']) && !empty($product_row['total_allowed_quantity'])) ? $product_row['total_allowed_quantity'] : 0;
?>
<a href="#" class="add_to_cart btn btn-xs btn-outline-primary rounded-pill" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>" data-product-stock="<?= $product_stock ?>" data-product-title="<?= $product_row['name'] ?>" data-product-slug="<?= $product_row['slug'] ?>" data-product-image="<?= $product_row['image']; ?>" data-product-price="<?= $variant_price; ?>" data-min="<?= $data_min; ?>" data-step="<?= $data_step; ?>" data-product-description="<?= short_description_word_limit(output_escaping(str_replace('\r\n', ' ', strip_tags($product_row['short_description'])))); ?>" data-izimodal-open="<?= $modal ?>">
<i class="uil uil-shopping-bag"></i> <?= !empty($this->lang->line('add_to_cart')) ? str_replace('\\', '', $this->lang->line('add_to_cart')) : 'Add To Cart' ?></a>
</div>
</figure>
<!-- /.social -->
</div>
<!--/.swiper-slide -->
<?php }
$i++;
} ?>
<?php } ?>
</div>
<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
<!-- /.swiper -->
<div class="swiper-controls">
<div class="swiper-pagination product-swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span>
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 2"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="Go to slide 3" aria-current="true"></span>
</div>
</div>
</div>
<!-- /.swiper-container -->
</div>
<!--/column -->
<div class="col-lg-3">
<div class="default_heading">
<h3 class="mb-0 section-title"><?= ucfirst($row['title']) ?></h3>
<h6 class="title-sm text-muted font-weight-light"><?= $row['short_description']; ?></h6>
</div>
<div>
<a href="<?= base_url('products/section/' . $row['id'] . '/' . $row['slug']) ?>" class="hover text-decoration-none"><?= !empty($this->lang->line('view_more')) ? str_replace('\\', '', $this->lang->line('view_more')) : 'View More' ?>
<i class="uil uil-arrow-right"></i>
</a>
</div>
</div>
<!--/column -->
</div>
</div>
</section>
<!-- style 2 -->
<?php } else if ($row['style'] == 'style_2') {
if ($count_key != 0) {
if (!empty($offers) && !empty($offers[$count_key - 1])) { ?>
<div class="offer-img">
<a href="<?= $offers[$count_key - 1]['link'] ?>">
<img class="img-fluid lazy my-4 rounded offer-image image-fit" data-src="<?= base_url('media/image?path=' . $offers[$count_key - 1]['image'] . '&width=1518&quality=80') ?>" alt="Offer image-<?= $i ?>" src="https://placehold.co/1290x268?text=Loading%20Offers..%20.&font=Montserrat">
</a>
</div>
<?php }
}
?>
<section class="mt-md-8 wrapper">
<div>
<div class="align-items-center gx-lg-8 gx-xl-12 row">
<div class="col-lg-3 mb-2">
<div class="default_heading">
<h3 class="mb-0 section-title"><?= ucfirst($row['title']) ?></h3>
<h6 class="title-sm text-muted font-weight-light"><?= $row['short_description']; ?></h6>
</div>
<div>
<a href="<?= base_url('products/section/' . $row['id'] . '/' . $row['slug']) ?>" class="hover text-decoration-none"><?= !empty($this->lang->line('view_more')) ? str_replace('\\', '', $this->lang->line('view_more')) : 'View More' ?>
<i class="uil uil-arrow-right"></i>
</a>
</div>
</div>
<!--/column -->
<div class="col-lg-9">
<div class="swiper-container text-center mySwiper overflow-hidden" data-margin="30" data-items-xl="3" data-items-md="2" data-items-xs="2">
<div class="swiper-wrapper">
<?php $product_count = count($row['product_details']) - 1; ?>
<?php
$i = 0;
if (count($row['product_details']) > 0) {
foreach ($row['product_details'] as $key => $product_row) {
if ($product_row['type'] == 'simple_product') {
$product_stock = $product_row['stock'];
} else {
$product_stock = $product_row['total_stock'];
}
if ($i == 8) {
break;
}
?>
<?php if ($key != 0) { ?>
<div class="swiper-slide shadow-xl product-bg slide_image">
<figure class="rounded ">
<div>
<a href="<?= base_url('products/details/' . $product_row['slug']) ?>">
<img class="lazy fig_image image-fit" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $product_row['relative_path'] . '&width=610&quality=80') ?>" alt="<?= $product_row['name'] ?>">
</a>
</div>
<div class="desktop_quick_view">
<a class="item-like text-decoration-none add-to-fav-btn
<?= ($product_row['is_favorite'] == 1) ? 'fa fa-heart text-danger' : 'fa fa-heart-o' ?>
" href="#" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('add_to_favorite')) ? str_replace('\\', '', $this->lang->line('add_to_favorite')) : 'Add to Favorite' ?>" data-product-id="<?= $product_row['id'] ?>">
<i class=""></i>
</a>
<a href="#" class="quick-view-btn item-view text-decoration-none" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $product_row['variants'][0]['id'] ?>" data-izimodal-open="#quick-view">
<i class="uil uil-eye"></i>
</a>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
$modal = "";
} else {
$variant_id = "";
$modal = "#quick-view";
}
?>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
} else {
$variant_id = "";
}
?>
<a href="#" class="compare item-compare text-decoration-none" data-bs-toggle="white-tooltip" title="Compare" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('compare')) ? str_replace('\\', '', $this->lang->line('compare')) : 'Compare' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>">
<i class="uil uil-exchange-alt"></i>
</a>
</div>
<?php if (isset($product_row['min_max_price']['special_price']) && $product_row['min_max_price']['special_price'] != '' && $product_row['min_max_price']['special_price'] != 0 && $product_row['min_max_price']['special_price'] < $product_row['min_max_price']['min_price']) { ?>
<span class="avatar bg-pink d-flex position-absolute text-uppercase text-white sale_tag">
<span class=""><?= !empty($this->lang->line('sale')) ? str_replace('\\', '', $this->lang->line('sale')) : 'Sale' ?></span>
</span>
<?php } ?>
<div class="card-body my-4">
<input id="input" name="rating" class="rating rating-loading d-none" data-size="xs" value="<?= $product_row['rating'] ?>" data-show-clear="false" data-show-caption="false" readonly>
<div class="product-content mt-2">
<h4 class="title post-title m-0 title_wrap fs-16" title="<?= output_escaping(str_replace('\r\n', ' ', $product_row['name'])) ?>">
<a class="link-dark text-decoration-none" href="<?= base_url('products/details/' . $product_row['slug']) ?>"><?= str_replace('\r\n', ' ', strip_tags($product_row['name'])) ?></a>
</h4>
<?php
if (($product_row['variants'][0]['special_price'] < $product_row['variants'][0]['price']) && ($product_row['variants'][0]['special_price'] != 0)) { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['special_price'];
echo format_price($price);
?>
</span>
<sup>
<span class="special-price striped-price text-danger" id="product-striped-price-div">
<s id="striped-price">
<?php echo $settings['currency'] ?>
<?php $price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</s>
</span>
</sup>
</p>
<?php } else { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</span>
</p>
<?php } ?>
<?php $variant_price = ($product_row['variants'][0]['special_price'] > 0 && $product_row['variants'][0]['special_price'] != '') ? $product_row['variants'][0]['special_price'] : $product_row['variants'][0]['price'];
$data_min = (isset($product_row['minimum_order_quantity']) && !empty($product_row['minimum_order_quantity'])) ? $product_row['minimum_order_quantity'] : 1;
$data_step = (isset($product_row['minimum_order_quantity']) && !empty($product_row['quantity_step_size'])) ? $product_row['quantity_step_size'] : 1;
$data_max = (isset($product_row['total_allowed_quantity']) && !empty($product_row['total_allowed_quantity'])) ? $product_row['total_allowed_quantity'] : 0;
?>
<a href="#" class="add_to_cart btn btn-xs btn-outline-primary rounded-pill" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>" data-product-stock="<?= $product_stock ?>" data-product-title="<?= $product_row['name'] ?>" data-product-slug="<?= $product_row['slug'] ?>" data-product-image="<?= $product_row['image']; ?>" data-product-price="<?= $variant_price; ?>" data-min="<?= $data_min; ?>" data-step="<?= $data_step; ?>" data-product-description="<?= short_description_word_limit(output_escaping(str_replace('\r\n', ' ', strip_tags($product_row['short_description'])))); ?>" data-izimodal-open="<?= $modal ?>">
<i class="uil uil-shopping-bag"></i> <?= !empty($this->lang->line('add_to_cart')) ? str_replace('\\', '', $this->lang->line('add_to_cart')) : 'Add To Cart' ?></a>
</div>
</figure>
<!-- /.social -->
</div>
<!--/.swiper-slide -->
<?php }
$i++;
} ?>
<?php } ?>
</div>
<!-- /.swiper -->
<div class="swiper-controls">
<div class="swiper-pagination product-swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span>
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 2"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="Go to slide 3" aria-current="true"></span>
</div>
</div>
</div>
<!-- /.swiper-container -->
</div>
<!--/column -->
</div>
</div>
</section>
<!-- Style 3 Design -->
<!-- First Product -->
<?php } else if ($row['style'] == 'style_3') {
if ($count_key != 0) {
if (!empty($offers) && !empty($offers[$count_key - 1])) { ?>
<div class="offer-img">
<a href="<?= $offers[$count_key - 1]['link'] ?>">
<img class="img-fluid lazy my-4 rounded offer-image image-fit" data-src="<?= base_url('media/image?path=' . $offers[$count_key - 1]['image'] . '&width=1518&quality=80') ?>" alt="Offer image-<?= $i ?>" src="https://placehold.co/1290x268?text=Loading%20Offers..%20.&font=Montserrat">
</a>
</div>
<?php }
}
?>
<?php $first_product = $row['product_details'][0];
if ($first_product['type'] == 'simple_product') {
$product_stock = $first_product['stock'];
} else {
$product_stock = $first_product['total_stock'];
}
?>
<div class="bg-white d-flex align-items-center flex-wrap">
<div class="col-md-4 col-12 style-3-product-right-lg">
<div class="card project item">
<figure class="">
<div class="product-image-container d-flex align-items-center justify-content-center">
<div>
<a href="<?= base_url('products/details/' . $first_product['slug']) ?>">
<img class="pic-1 lazy image_fit h-100" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $first_product['relative_path'] . '&width=700&quality=80') ?>" alt="<?= $first_product['name'] ?>">
</a>
</div>
</div>
<div class="desktop_quick_view">
<a class="item-like text-decoration-none add-to-fav-btn
<?= ($first_product['is_favorite'] == 1) ? 'fa fa-heart text-danger' : 'fa fa-heart-o' ?>
" href="#" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('add_to_favorite')) ? str_replace('\\', '', $this->lang->line('add_to_favorite')) : 'Add to Favorite' ?>" data-product-id="<?= $first_product['id'] ?>">
<i class=""></i>
</a>
<a href="#" class="quick-view-btn item-view text-decoration-none" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-product-id="<?= $first_product['id'] ?>" data-product-variant-id="<?= $first_product['variants'][0]['id'] ?>" data-izimodal-open="#quick-view">
<i class="uil uil-eye"></i>
</a>
<?php
if (count($first_product['variants']) <= 1) {
$variant_id = $first_product['variants'][0]['id'];
$modal = "";
} else {
$variant_id = "";
$modal = "#quick-view";
}
?>
<?php
if (count($first_product['variants']) <= 1) {
$variant_id = $first_product['variants'][0]['id'];
} else {
$variant_id = "";
}
?>
<a href="#" class="compare item-compare text-decoration-none" data-bs-toggle="white-tooltip" title="Compare" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('compare')) ? str_replace('\\', '', $this->lang->line('compare')) : 'Compare' ?>" data-product-id="<?= $first_product['id'] ?>" data-product-variant-id="<?= $variant_id ?>">
<i class="uil uil-exchange-alt"></i>
</a>
</div>
<?php if (isset($first_product['min_max_price']['special_price']) && $first_product['min_max_price']['special_price'] != '' && $first_product['min_max_price']['special_price'] != 0 && $first_product['min_max_price']['special_price'] < $first_product['min_max_price']['min_price']) { ?>
<span class="avatar bg-pink d-flex position-absolute text-uppercase text-white sale_tag">
<span class=""><?= !empty($this->lang->line('sale')) ? str_replace('\\', '', $this->lang->line('sale')) : 'Sale' ?></span>
</span>
<?php } ?>
<div class="my-4 text-center">
<input id="input" name="rating" class="rating rating-loading d-none" data-size="xs" value="<?= $first_product['rating'] ?>" data-show-clear="false" data-show-caption="false" readonly>
<div class="product-content mt-2">
<h4 class="title post-title m-0 title_wrap fs-16" title="<?= output_escaping(str_replace('\r\n', ' ', $first_product['name'])) ?>">
<a class="link-dark text-decoration-none" href="<?= base_url('products/details/' . $first_product['slug']) ?>"><?= str_replace('\r\n', ' ', strip_tags($first_product['name'])) ?></a>
</h4>
<?php if (($first_product['variants'][0]['special_price'] < $first_product['variants'][0]['price']) && ($first_product['variants'][0]['special_price'] != 0)) { ?>
<p class="mb-0 price text-muted">
<span id="price" style='font-size: 18px;'>
<?php echo $settings['currency'] ?>
<?php
$price = $first_product['variants'][0]['special_price'];
echo format_price($price);
?>
</span>
<sup>
<span class="special-price striped-price text-danger" id="product-striped-price-div">
<s id="striped-price">
<?php echo $settings['currency'] ?>
<?php $price = $first_product['variants'][0]['price'];
echo format_price($price);
?>
</s>
</span>
</sup>
</p>
<?php } else { ?>
<p class="mb-0 price text-muted">
<span id="price" style='font-size: 18px;'>
<?php echo $settings['currency'] ?>
<?php
$price = $first_product['variants'][0]['price'];
echo format_price($price);
?>
</span>
</p>
<?php } ?>
<?php $variant_price = ($first_product['variants'][0]['special_price'] > 0 && $first_product['variants'][0]['special_price'] != '') ? $first_product['variants'][0]['special_price'] : $first_product['variants'][0]['price'];
$data_min = (isset($first_product['minimum_order_quantity']) && !empty($first_product['minimum_order_quantity'])) ? $first_product['minimum_order_quantity'] : 1;
$data_step = (isset($first_product['minimum_order_quantity']) && !empty($first_product['quantity_step_size'])) ? $first_product['quantity_step_size'] : 1;
$data_max = (isset($first_product['total_allowed_quantity']) && !empty($first_product['total_allowed_quantity'])) ? $first_product['total_allowed_quantity'] : 0;
?>
<a href="#" class="add_to_cart btn btn-xs btn-outline-primary rounded-pill" data-product-id="<?= $first_product['id'] ?>" data-product-variant-id="<?= $variant_id ?>" ddata-product-stock="<?= $product_stock ?>" data-product-title="<?= $first_product['name'] ?>" data-product-slug="<?= $first_product['slug'] ?>" data-product-image="<?= $first_product['image']; ?>" data-product-price="<?= $variant_price; ?>" data-min="<?= $data_min; ?>" data-step="<?= $data_step; ?>" data-product-description="<?= short_description_word_limit(output_escaping(str_replace('\r\n', ' ', strip_tags($first_product['short_description'])))); ?>" data-izimodal-open="<?= $modal ?>">
<i class="uil uil-shopping-bag"></i> <?= !empty($this->lang->line('add_to_cart')) ? str_replace('\\', '', $this->lang->line('add_to_cart')) : 'Add To Cart' ?></a>
</div>
</figure>
</div>
</div>
<div class="col-12 col-md-8 products-list">
<div class="row">
<div class="my-4">
<div class="align-items-md-center d-flex justify-content-between">
<div class="default_heading">
<h3 class="mb-0 section-title"><?= ucfirst($row['title']) ?></h3>
<h6 class="title-sm text-muted font-weight-light"><?= $row['short_description']; ?></h6>
</div>
<div>
<a href="<?= base_url('products/section/' . $row['id'] . '/' . $row['slug']) ?>" class="hover text-decoration-none"><?= !empty($this->lang->line('view_more')) ? str_replace('\\', '', $this->lang->line('view_more')) : 'View More' ?>
<i class="uil uil-arrow-right"></i>
</a>
</div>
</div>
<hr class="mb-0 mt-4">
</div>
<?php $product_count = count($row['product_details']) - 1; ?>
<?php
$i = 0;
if (count($row['product_details']) > 0) {
foreach ($row['product_details'] as $key => $product_row) {
if ($product_row['type'] == 'simple_product') {
$product_stock = $product_row['stock'];
} else {
$product_stock = $product_row['total_stock'];
}
if ($i == 4) {
break;
}
?>
<?php if ($key != 0) { ?>
<div class="col-md-4 mt-5 col-6">
<div class="card item project">
<figure class="">
<div>
<a href="<?= base_url('products/details/' . $product_row['slug']) ?>">
<img class="lazy fig_image image-fit" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $product_row['relative_path'] . '&width=560&quality=80') ?>" alt="<?= $product_row['name'] ?>" alt="<?= $product_row['name'] ?>">
</a>
</div>
<div class="desktop_quick_view">
<a class="item-like text-decoration-none add-to-fav-btn <?= ($product_row['is_favorite'] == 1) ? 'fa fa-heart text-danger' : 'fa fa-heart-o' ?>" href="#" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('add_to_favorite')) ? str_replace('\\', '', $this->lang->line('add_to_favorite')) : 'Add to Favorite' ?>" data-product-id="<?= $product_row['id'] ?>">
<i class=""></i>
</a>
<a href="#" class="quick-view-btn item-view text-decoration-none" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $product_row['variants'][0]['id'] ?>" data-izimodal-open="#quick-view">
<i class="uil uil-eye"></i>
</a>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
$modal = "";
} else {
$variant_id = "";
$modal = "#quick-view";
}
?>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
} else {
$variant_id = "";
}
?>
<a href="#" class="compare item-compare text-decoration-none" data-bs-toggle="white-tooltip" title="Compare" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('compare')) ? str_replace('\\', '', $this->lang->line('compare')) : 'Compare' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>">
<i class="uil uil-exchange-alt"></i>
</a>
</div>
<?php if (isset($product_row['min_max_price']['special_price']) && $product_row['min_max_price']['special_price'] != '' && $product_row['min_max_price']['special_price'] != 0 && $product_row['min_max_price']['special_price'] < $product_row['min_max_price']['min_price']) { ?>
<span class="avatar bg-pink d-flex position-absolute text-uppercase text-white sale_tag">
<span class=""><?= !empty($this->lang->line('sale')) ? str_replace('\\', '', $this->lang->line('sale')) : 'Sale' ?></span>
</span>
<?php } ?>
<div class="my-4 text-center style_3">
<input id="input" name="rating" class="rating rating-loading d-none" data-size="xs" value="<?= $product_row['rating'] ?>" data-show-clear="false" data-show-caption="false" readonly>
<div class="product-content mt-2">
<h4 class="title post-title m-0 title_wrap fs-16" title="<?= output_escaping(str_replace('\r\n', ' ', $product_row['name'])) ?>">
<a class="link-dark text-decoration-none" href="<?= base_url('products/details/' . $product_row['slug']) ?>"><?= str_replace('\r\n', ' ', strip_tags($product_row['name'])) ?></a>
</h4>
<?php if (($product_row['variants'][0]['special_price'] < $product_row['variants'][0]['price']) && ($product_row['variants'][0]['special_price'] != 0)) { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['special_price'];
echo format_price($price);
?>
</span>
<sup>
<span class="special-price striped-price text-danger" id="product-striped-price-div">
<s id="striped-price">
<?php echo $settings['currency'] ?>
<?php $price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</s>
</span>
</sup>
</p>
<?php } else { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</span>
</p>
<?php } ?>
<?php $variant_price = ($product_row['variants'][0]['special_price'] > 0 && $product_row['variants'][0]['special_price'] != '') ? $product_row['variants'][0]['special_price'] : $product_row['variants'][0]['price'];
$data_min = (isset($product_row['minimum_order_quantity']) && !empty($product_row['minimum_order_quantity'])) ? $product_row['minimum_order_quantity'] : 1;
$data_step = (isset($product_row['minimum_order_quantity']) && !empty($product_row['quantity_step_size'])) ? $product_row['quantity_step_size'] : 1;
$data_max = (isset($product_row['total_allowed_quantity']) && !empty($product_row['total_allowed_quantity'])) ? $product_row['total_allowed_quantity'] : 0;
?>
<a href="#" class="add_to_cart btn btn-xs btn-outline-primary rounded-pill" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>" data-product-stock="<?= $product_stock ?>" data-product-title="<?= $product_row['name'] ?>" data-product-image="<?= $product_row['image']; ?>" data-product-price="<?= $variant_price; ?>" data-min="<?= $data_min; ?>" data-step="<?= $data_step; ?>" data-product-description="<?= short_description_word_limit(output_escaping(str_replace('\r\n', ' ', strip_tags($product_row['short_description'])))); ?>" data-izimodal-open="<?= $modal ?>">
<i class="uil uil-shopping-bag"></i> <?= !empty($this->lang->line('add_to_cart')) ? str_replace('\\', '', $this->lang->line('add_to_cart')) : 'Add To Cart' ?></a>
</div>
</figure>
</div>
</div>
<?php }
$i++;
}
} ?>
<?php ?>
</div>
</div>
</div>
<!-- Style 4 Design -->
<?php } else if ($row['style'] == 'style_4') {
if ($count_key != 0) {
if (!empty($offers) && !empty($offers[$count_key - 1])) { ?>
<div class="offer-img">
<a href="<?= $offers[$count_key - 1]['link'] ?>">
<img class="img-fluid lazy my-4 rounded offer-image image-fit" data-src="<?= base_url('media/image?path=' . $offers[$count_key - 1]['image'] . '&width=1518&quality=80') ?>" alt="Offer image-<?= $i ?>" src="https://placehold.co/1290x268?text=Loading%20Offers..%20.&font=Montserrat">
</a>
</div>
<?php }
}
?>
<section class="mt-md-8 wrapper">
<div>
<div class="align-items-center gx-lg-8 gx-xl-12 row">
<div class="col-lg-3 mb-2">
<div class="default_heading">
<h3 class="mb-0 section-title"><?= ucfirst($row['title']) ?></h3>
<h6 class="title-sm text-muted font-weight-light"><?= $row['short_description']; ?></h6>
</div>
<div>
<a href="<?= base_url('products/section/' . $row['id'] . '/' . $row['slug']) ?>" class="hover text-decoration-none"><?= !empty($this->lang->line('view_more')) ? str_replace('\\', '', $this->lang->line('view_more')) : 'View More' ?>
<i class="uil uil-arrow-right"></i>
</a>
</div>
</div>
<!--/column -->
<div class="col-lg-9">
<div class="swiper-container text-center mySwiper overflow-hidden" data-margin="30" data-items-xl="3" data-items-md="2" data-items-xs="2">
<div class="swiper-wrapper">
<?php $product_count = count($row['product_details']) - 1; ?>
<?php
$i = 0;
if (count($row['product_details']) > 0) {
foreach ($row['product_details'] as $key => $product_row) {
if ($product_row['type'] == 'simple_product') {
$product_stock = $product_row['stock'];
} else {
$product_stock = $product_row['total_stock'];
}
if ($i == 8) {
break;
}
?>
<?php if ($key != 0) { ?>
<div class="swiper-slide shadow-xl product-bg slide_image">
<figure class="rounded ">
<div>
<a href="<?= base_url('products/details/' . $product_row['slug']) ?>">
<img class="lazy fig_image image-fit" src="<?= base_url('assets/front_end/modern/img/product-placeholder.jpg') ?>" data-src="<?= base_url('media/image?path=' . $product_row['relative_path'] . '&width=610&quality=80') ?>" alt="<?= $product_row['name'] ?>">
</a>
</div>
<div class="desktop_quick_view">
<a class="item-like text-decoration-none add-to-fav-btn
<?= ($product_row['is_favorite'] == 1) ? 'fa fa-heart text-danger' : 'fa fa-heart-o' ?>
" href="#" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('add_to_favorite')) ? str_replace('\\', '', $this->lang->line('add_to_favorite')) : 'Add to Favorite' ?>" data-product-id="<?= $product_row['id'] ?>">
<i class=""></i>
</a>
<a href="#" class="quick-view-btn item-view text-decoration-none" data-bs-toggle="white-tooltip" title="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $product_row['variants'][0]['id'] ?>" data-izimodal-open="#quick-view">
<i class="uil uil-eye"></i>
</a>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
$modal = "";
} else {
$variant_id = "";
$modal = "#quick-view";
}
?>
<?php
if (count($product_row['variants']) <= 1) {
$variant_id = $product_row['variants'][0]['id'];
} else {
$variant_id = "";
}
?>
<a href="#" class="compare item-compare text-decoration-none" data-bs-toggle="white-tooltip" title="Compare" data-tip="<?= !empty($this->lang->line('quick_view')) ? str_replace('\\', '', $this->lang->line('quick_view')) : 'Quick View' ?>" data-tip="<?= !empty($this->lang->line('compare')) ? str_replace('\\', '', $this->lang->line('compare')) : 'Compare' ?>" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>">
<i class="uil uil-exchange-alt"></i>
</a>
</div>
<?php if (isset($product_row['min_max_price']['special_price']) && $product_row['min_max_price']['special_price'] != '' && $product_row['min_max_price']['special_price'] != 0 && $product_row['min_max_price']['special_price'] < $product_row['min_max_price']['min_price']) { ?>
<span class="avatar bg-pink d-flex position-absolute text-uppercase text-white sale_tag">
<span class=""><?= !empty($this->lang->line('sale')) ? str_replace('\\', '', $this->lang->line('sale')) : 'Sale' ?></span>
</span>
<?php } ?>
<div class="card-body my-4">
<input id="input" name="rating" class="rating rating-loading d-none" data-size="xs" value="<?= $product_row['rating'] ?>" data-show-clear="false" data-show-caption="false" readonly>
<div class="product-content mt-2">
<h4 class="title post-title m-0 title_wrap fs-16" title="<?= output_escaping(str_replace('\r\n', ' ', $product_row['name'])) ?>">
<a class="link-dark text-decoration-none" href="<?= base_url('products/details/' . $product_row['slug']) ?>"><?= str_replace('\r\n', ' ', strip_tags($product_row['name'])) ?></a>
</h4>
<?php
if (($product_row['variants'][0]['special_price'] < $product_row['variants'][0]['price']) && ($product_row['variants'][0]['special_price'] != 0)) { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['special_price'];
echo format_price($price);
?>
</span>
<sup>
<span class="special-price striped-price text-danger" id="product-striped-price-div">
<s id="striped-price">
<?php echo $settings['currency'] ?>
<?php $price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</s>
</span>
</sup>
</p>
<?php } else { ?>
<p class="mb-0 price text-muted">
<span id="price">
<?php echo $settings['currency'] ?>
<?php
$price = $product_row['variants'][0]['price'];
echo format_price($price);
?>
</span>
</p>
<?php } ?>
<?php $variant_price = ($product_row['variants'][0]['special_price'] > 0 && $product_row['variants'][0]['special_price'] != '') ? $product_row['variants'][0]['special_price'] : $product_row['variants'][0]['price'];
$data_min = (isset($product_row['minimum_order_quantity']) && !empty($product_row['minimum_order_quantity'])) ? $product_row['minimum_order_quantity'] : 1;
$data_step = (isset($product_row['minimum_order_quantity']) && !empty($product_row['quantity_step_size'])) ? $product_row['quantity_step_size'] : 1;
$data_max = (isset($product_row['total_allowed_quantity']) && !empty($product_row['total_allowed_quantity'])) ? $product_row['total_allowed_quantity'] : 0;
?>
<a href="#" class="add_to_cart btn btn-xs btn-outline-primary rounded-pill" data-product-id="<?= $product_row['id'] ?>" data-product-variant-id="<?= $variant_id ?>" data-product-stock="<?= $product_stock ?>" data-product-title="<?= $product_row['name'] ?>" data-product-slug="<?= $product_row['slug'] ?>" data-product-image="<?= $product_row['image']; ?>" data-product-price="<?= $variant_price; ?>" data-min="<?= $data_min; ?>" data-step="<?= $data_step; ?>" data-product-description="<?= short_description_word_limit(output_escaping(str_replace('\r\n', ' ', strip_tags($product_row['short_description'])))); ?>" data-izimodal-open="<?= $modal ?>">
<i class="uil uil-shopping-bag"></i> <?= !empty($this->lang->line('add_to_cart')) ? str_replace('\\', '', $this->lang->line('add_to_cart')) : 'Add To Cart' ?></a>
</div>
</figure>
<!-- /.social -->
</div>
<!--/.swiper-slide -->
<?php }
$i++;
} ?>
<?php } ?>
</div>
<!-- /.swiper -->
<div class="swiper-controls">
<div class="swiper-pagination product-swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal">
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span>
<span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 2"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="Go to slide 3" aria-current="true"></span>
</div>
</div>
</div>
<!-- /.swiper-container -->
</div>
<!--/column -->
</div>
</div>
</section>
<?php } ?>
<?php }
$offer_counter++;
$i++;
} ?>
</section>
<?php $web_settings = get_settings('web_settings', true); ?>
<?php if (isset($web_settings['app_download_section']) && $web_settings['app_download_section'] == 1) { ?>
<section class="wrapper bg-soft-grape">
<div class="align-items-md-center d-flex flex-wrap justify-content-center gap-5 pb-15">
<div>
<img class="w-100 lazy" src="<?= THEME_ASSETS_URL . 'demo/avtars/4530199.png' ?>" data-src="<?= THEME_ASSETS_URL . 'demo/avtars/4530199.png' ?>" alt="Download - <?= $web_settings['app_download_section_title'] ?>" />
</div>
<div class="col-md-7">
<h1 class="display-4 mb-4 px-md-10 px-lg-0"><?= $web_settings['app_download_section_title'] ?></h1>
<h3 class="mt-3 header-p"><?= $web_settings['app_download_section_tagline'] ?></h3>
<p class="lead fs-lg mb-7 px-md-10 px-lg-0 pe-xxl-15"><?= $web_settings['app_download_section_short_description'] ?></p>
<span><a href="<?= $web_settings['app_download_section_appstore_url'] ?>" target="_blank" class="btn btn-dark btn-icon btn-icon-start rounded-pill me-2"><i class="uil uil-apple"></i>
App Store</a></span>
<span><a href="<?= $web_settings['app_download_section_playstore_url'] ?>" target="_blank" class="btn btn-green btn-icon btn-icon-start rounded-pill"><i class="uil uil-google-play"></i>
Google Play</a></span>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</section>
<?php } ?>