@foreach($flash_items as $flash_item)
@php
$flash_info = flashAmountStatus($flash_item->item_id, $flash_item->current_price);
$flash_status = $flash_info['status'];
if($flash_status == true) {
$new_price = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_info['amount']));
$old_price = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_item->current_price));
} else {
$new_price = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_item->current_price));
$old_price = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_item->previous_price));
}
@endphp
{{ $keywords['SALE'] ?? __('SALE') }}
{{ $new_price }}
@if($flash_item->previous_price > 0)
{{ $old_price }}
@endif
@if((isset($shop_settings) ? $shop_settings->catalog_mode : ($shopSet->catalog_mode ?? 0)) != 1)
@endif
@endforeach