0): ?>
addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
item_id)
->where('language_id', $userCurrentLang->id)
->get();
$itemstock = $item->stock;
if (count($variations) == 0) {
if ($itemstock > 0) {
$stock = true;
} else {
$stock = false;
}
$variations = null;
} else {
$stock = true;
$tstock = '';
if (count($variations)) {
foreach ($variations as $varkey => $varvalue) {
$tstock = array_sum(json_decode($varvalue->option_stock));
if ($tstock == 0) {
$stock = false;
}
}
} else {
$stock = true;
}
}
$isFlash = App\Http\Helpers\CheckFlashItem::isFlashItem($item->item_id);
?>
-flash_percentage); ?>%
current_price - ($item->flash_percentage * $item->current_price) / 100;
?>
current_price;
?>
end_date);
$year = $dt->year;
$month = $dt->month;
$day = $dt->day;
$end_time = Carbon\Carbon::parse($item->end_time);
$hour = $end_time->hour;
$minute = $end_time->minute;
$now = str_replace(
'+00:00',
'.000' . $userBs->timezoneinfo->gmt_offset . '00:00',
gmdate('c'),
);
?>
type == 'physical'): ?>
title) > 30 ? mb_substr($item->title, 0, 30, 'UTF-8') . '...' : $item->title); ?>
item_rating_system): ?>
base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : ''); ?>
base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : ''); ?>
base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : ''); ?>
current_price)); ?>
base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : ''); ?>
previous_price > 0): ?>
base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : ''); ?>
previous_price)); ?>
base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : ''); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>
toprated_item_section == 1): ?>
bestseller_item_section == 1): ?>
special_item_section == 1): ?>
flashsale_item_section == 1): ?>
count() > 0): ?>
addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
item_id);
$variations = App\Models\User\UserItemVariation::where('item_id', $item->item_id)
->where('language_id', $userCurrentLang->id)
->get();
$itemstock = $item->stock;
if (count($variations) == 0) {
if ($itemstock > 0) {
$stock = true;
} else {
$stock = false;
}
$variations = null;
} else {
$stock = true;
$tstock = '';
if (count($variations)) {
foreach ($variations as $varkey => $varvalue) {
$tstock = array_sum(json_decode($varvalue->option_stock));
if ($tstock == 0) {
$stock = false;
}
}
} else {
$stock = true;
}
}
?>
-flash_percentage); ?>%
end_date);
$year = $dt->year;
$month = $dt->month;
$day = $dt->day;
$end_time = Carbon\Carbon::parse($item->end_time);
$hour = $end_time->hour;
$minute = $end_time->minute;
$now = str_replace(
'+00:00',
'.000' . $userBs->timezoneinfo->gmt_offset . '00:00',
gmdate('c'),
);
?>
type == 'physical'): ?>
title) > 30 ? mb_substr($item->title, 0, 30, 'UTF-8') . '...' : $item->title); ?>
item_rating_system): ?>
base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : ''); ?>
current_price - ($item->flash_percentage * $item->current_price) / 100;
?>
flash ? formatNumber($n_price) : formatNumber($item->current_price)); ?>
base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : ''); ?>
flash): ?>
base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : ''); ?>
current_price)); ?>
base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : ''); ?>
previous_price > 0): ?>
base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : ''); ?>
previous_price)); ?>
base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : ''); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>