@php $htmlContent = $data['html_content'] ?? ''; $sectionId = $section['id']; // Configurações de Largura $widthType = $data['width_type'] ?? '100'; $customWidth = $data['width_custom'] ?? ''; $iframeWidth = ($widthType === 'custom' && $customWidth) ? $customWidth : $widthType; // Configurações de Altura $heightType = $data['height_type'] ?? 'auto'; $customHeight = $data['height_custom'] ?? ''; $initialHeight = '0'; if ($heightType === 'double') { $initialHeight = '800px'; } elseif ($heightType === 'custom' && $customHeight) { $initialHeight = $customHeight . 'px'; } // Alinhamento Horizontal - Sempre Centralizado $justifyContent = 'center'; // Documento interno $docContent = "
$htmlContent
"; @endphp