From 2fcd9c67246939f1574b84449d077dc2655125fa Mon Sep 17 00:00:00 2001 From: pro Date: Thu, 29 Jan 2026 13:59:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EB=8B=A8=EA=B3=84=20=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=99=84=EC=A0=84=20=EC=9E=AC=EC=9E=91?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - @click → x-on:click (Blade 지시자 충돌 방지) - 동적 색상 → 고정 색상 bg-indigo-600 (Tailwind JIT 문제 방지) - 모든 조건 값을 @php에서 명시적 계산 - 조건 로직 단순화 ($isLastStep 불린 사용) Co-Authored-By: Claude Opus 4.5 --- .../sales/modals/scenario-step.blade.php | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/resources/views/sales/modals/scenario-step.blade.php b/resources/views/sales/modals/scenario-step.blade.php index 519e79d7..578720d1 100644 --- a/resources/views/sales/modals/scenario-step.blade.php +++ b/resources/views/sales/modals/scenario-step.blade.php @@ -151,16 +151,21 @@ class="border-t border-gray-100"> {{-- 단계 이동 버튼 --}} @php - // 버튼 조건을 위해 총 단계 수를 명시적으로 계산 + $currentStepId = (int) $step['id']; $totalSteps = count($steps); + $isLastStep = ($currentStepId >= $totalSteps); + $nextStepId = $currentStepId + 1; + $prevStepId = $currentStepId - 1; + $stepColor = $step['color'] ?? 'blue'; @endphp
- @if($step['id'] > 1) + {{-- 이전 단계 버튼 --}} + @if($currentStepId > 1) - @else - + @else + @endif