From ae9aa4e91f8caeea72fa4877dbefe8033a8377d5 Mon Sep 17 00:00:00 2001 From: pro Date: Thu, 29 Jan 2026 08:14:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EC=98=81=EC=97=85=20=EC=8B=9C=EB=82=98?= =?UTF-8?q?=EB=A6=AC=EC=98=A4=20=EB=AA=A8=EB=8B=AC=20Alpine.js=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - @push('scripts') 대신 인라인 x-data로 변경 (HTMX 호환) - x-collapse 플러그인 의존성 제거, x-transition 사용 - $parent 참조 대신 window 이벤트(CustomEvent) 사용 - 체크리스트 토글, 진행률 업데이트, 단계 이동 정상화 Co-Authored-By: Claude Opus 4.5 --- .../sales/modals/scenario-modal.blade.php | 167 ++++++++---------- .../sales/modals/scenario-step.blade.php | 65 +++++-- 2 files changed, 130 insertions(+), 102 deletions(-) diff --git a/resources/views/sales/modals/scenario-modal.blade.php b/resources/views/sales/modals/scenario-modal.blade.php index 76ca4df1..f70afd8d 100644 --- a/resources/views/sales/modals/scenario-modal.blade.php +++ b/resources/views/sales/modals/scenario-modal.blade.php @@ -1,12 +1,70 @@ {{-- 영업/매니저 시나리오 모달 --}} -
+@php + $stepProgressJson = json_encode($progress['steps'] ?? []); +@endphp + +
{{-- 배경 오버레이 --}}
@@ -47,10 +105,10 @@ class="fixed inset-0 z-50 overflow-hidden" {{-- 전체 진행률 --}}
진행률 - {{ $progress['percentage'] }}% +
{{-- 닫기 버튼 --}} - @@ -110,76 +168,3 @@ class="w-full flex items-center gap-3 px-3 py-3 rounded-r-lg text-left transitio
- -@push('scripts') - -@endpush diff --git a/resources/views/sales/modals/scenario-step.blade.php b/resources/views/sales/modals/scenario-step.blade.php index 35a8e246..ba46eec8 100644 --- a/resources/views/sales/modals/scenario-step.blade.php +++ b/resources/views/sales/modals/scenario-step.blade.php @@ -47,15 +47,45 @@ $checkKey = "{$step['id']}_{$checkpoint['id']}"; $isChecked = isset($checklist[$checkKey]); @endphp -
{{-- 체크포인트 헤더 --}}
{{-- 체크박스 --}} -
{{-- 확장 콘텐츠 --}} -
+
{{-- 상세 설명 --}}
@@ -152,8 +189,11 @@ class="flex-shrink-0 w-6 h-6 rounded-full border-2 flex items-center justify-cen {{-- 단계 이동 버튼 --}}
@if($step['id'] > 1) - @else -