@if ($data && $data->products->count()) @php $offer = $data; $startTimestamp = $offer->starts_from->timestamp * 1000; $endTimestamp = $offer->ends_at->timestamp * 1000; @endphp
{{ __($offer->name) }}
@if ((!$offer->banner || $offer->show_banner == Status::NO) && $offer->show_countdown)
@endif
@if ($offer->banner && $offer->show_banner)
@if ($offer->show_countdown)
@endif offer-banner
@else
@foreach ($offer->products?->sortByDesc('id') as $product) @endforeach
@endif
@endif