@php $sliderId = 'ecommerce-flash-sale-slider-' . uniqid(); $endDate = optional($flashSale->end_date)->endOfDay(); $endIso = $endDate ? $endDate->toIso8601String() : null; $products = $flashSale->products ?? collect(); @endphp
@if ($shortcode->title)

{{ $shortcode->title }}

@endif @if ($shortcode->subtitle)

{{ $shortcode->subtitle }}

@endif
@if ($shortcode->show_countdown && $endIso)
00 {{ __('D') }}
00 {{ __('H') }}
00 {{ __('M') }}
00 {{ __('S') }}
@endif
@foreach ($products as $product)
@includeIf(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['product' => $product])
@endforeach