From f5bc4fcb19b704b4d9f128de9b93a53888cbfaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Fri, 6 Mar 2026 17:49:13 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[=EB=AC=B8=EC=84=9C=EC=9D=B8=EC=87=84]?= =?UTF-8?q?=20print.blade.php=EC=97=90=20rendered=5Fhtml=20=EC=8A=A4?= =?UTF-8?q?=EB=83=85=EC=83=B7=20=EC=9A=B0=EC=84=A0=20=EC=B6=9C=EB=A0=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rendered_html 있으면 스냅샷 그대로 출력 - 없으면 기존 템플릿 기반 동적 렌더링 fallback Co-Authored-By: Claude Opus 4.6 --- resources/views/documents/print.blade.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/views/documents/print.blade.php b/resources/views/documents/print.blade.php index 1d1ff7c1..a61de1ab 100644 --- a/resources/views/documents/print.blade.php +++ b/resources/views/documents/print.blade.php @@ -25,6 +25,13 @@ class="bg-gray-200 hover:bg-gray-300 text-gray-700 px-4 py-2 rounded-lg transiti {{-- 성적서 본문 --}}
+ {{-- HTML 스냅샷 우선 출력 (React에서 저장한 rendered_html) --}} + @if($document->rendered_html) +
+ {!! $document->rendered_html !!} +
+ @else + {{-- 레거시: 템플릿 기반 동적 렌더링 --}} @php $template = $document->template; $hasComplexCol = $template->columns->contains(fn($c) => $c->column_type === 'complex' && $c->sub_labels); @@ -364,6 +371,7 @@ class="doc-th"
@endif + @endif {{-- 스냅샷 vs 레거시 분기 끝 --}}