{{ $userSec->flash_section_title ?? ($keywords['Super Flash Sale'] ?? __('Super Flash Sale')) }}

@for ($skeleton = 1; $skeleton <= 3; $skeleton++) @endfor

{{ $userSec->flash_section_title ?? ($keywords['Super Flash Sale'] ?? __('Super Flash Sale')) }}

@if (count($flash_items) > 0) @foreach ($flash_items as $item)
@php $i = $loop->iteration; @endphp
Product
Product
@php // Task 1: Ensure timer always shows — use end_date from DB, // but fall back to 3 days from now if it's missing or already past. $timerEndDate = $item->end_date ?? ''; $timerEndTime = $item->end_time ?? '23:59:59'; $fallbackEndDate = now()->addDays(3)->format('Y-m-d'); if (empty($timerEndDate) || \Carbon\Carbon::parse($timerEndDate)->isPast()) { $timerEndDate = $fallbackEndDate; $timerEndTime = '23:59:59'; } @endphp
{{ $keywords['Days'] ?? __('Days') }}
{{ $keywords['Hours'] ?? __('Hours') }}
{{ $keywords['Mins'] ?? __('Mins') }}
{{ $keywords['Sec'] ?? __('Sec') }}
@php $customer_id = Auth::guard('customer')->check() ? Auth::guard('customer')->user()->id : null; $checkWishList = $customer_id ? checkWishList($item->item_id, $customer_id) : false; @endphp @if ($shop_settings->catalog_mode != 1) @php $current_price = $item->flash == 1 ? $item->current_price - $item->current_price * ($item->flash_amount / 100) : $item->current_price; @endphp @endif
{{ $item->title }}
@if ($item->flash == 1) {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($item->current_price - $item->current_price * ($item->flash_amount / 100))) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($item->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($item->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($item->previous_price)) }} @endif
@endforeach @else
{{ $keywords['NO PRODUCTS FOUND'] ?? __('NO PRODUCTS FOUND') }}
@endif