@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; // Composite layout — mirrors home-organic.html lines 1935-2030: countdown card LEFT // (col 1 of `tf-grid-layout sm-col-2 xl-col-3`) + 2 stacked banner-image-text cards // in col 2 + 2 stacked banner-image-text cards in col 3. Each banner is `banner-image-text // type-abs style-13` with red overline (`text-primary`) + black h3 title + Shop Now CTA. // // Computes seconds-to-target server-side; the JS countdown widget just decrements. $targetSeconds = 0; if (! empty($shortcode->target_date ?? '')) { try { $target = \Carbon\Carbon::parse($shortcode->target_date); $targetSeconds = (int) max(0, now()->diffInSeconds($target)); } catch (\Throwable $e) { $targetSeconds = 0; } } // outer_spacing_class: allowlist-validated section padding class. Default keeps // back-compat (`flat-spacing pt-0`); pass `''` for demos with no section padding // (home-organic.html §4 L1934-2028 is a bare `