{{-- @intent Rodapé oficial para impressão. @description Posicionado via position:fixed no fim de cada página. QR Code gerado server-side (SVG vetorial) — sem dependência externa. @accessibility QR Code com fallback textual. --}} @php $currentUrl = url()->current(); $brandName = $portalTheme['cms_brand_name'] ?? 'PORTAL'; $timestamp = date('d/m/Y \à\s H:i:s'); $qrCodeSvg = null; // Tenta gerar QR Code via container Laravel (auto-descoberta) // Se falhar, tenta instanciação direta // Se ambos falharem, exibe fallback textual "QR" try { $qrCodeSvg = app('qrcode')->size(55)->generate($currentUrl); } catch (\Exception $e) { try { if (class_exists('\SimpleSoftwareIO\QrCode\BaconQrCodeGenerator')) { $gen = new \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator(); $qrCodeSvg = $gen->size(55)->generate($currentUrl); } } catch (\Exception $e2) { $qrCodeSvg = null; } } @endphp