@section('js') @php $allImage = []; if (isset($images)) { foreach ($images as $im) { $allImage[] = getBackgroundImage($im); } } $format = getFormatedCountdown(); $formatSaleTo = date($format, strtotime(strtr($sale_to ?? null, " ", ''))); @endphp