@php use Botble\Base\Facades\BaseHelper; $perView = (int) ($shortcode->items_per_row ?: 4); $perView = max(1, min(6, $perView)); $title = trim((string) ($shortcode->custom_title ?? $shortcode->title ?? '')); $viewAllText = trim((string) ($shortcode->view_all_text ?? __('View All Products'))); $viewAllUrl = trim((string) ($shortcode->view_all_url ?? '')); $timer = (int) ($shortcode->countdown_timer ?: 1093120); if ($timer <= 0) { $timer = 1093120; } @endphp