From b6255d65d39d2e3f0adae37150db27d0a4b8247d Mon Sep 17 00:00:00 2001 From: Majid Al Zariey Date: Tue, 16 Apr 2024 20:09:47 +0300 Subject: [PATCH 1/2] Add completed icon retrieval in wizard component In the "wizard.blade.php" file, introduced a new piece of PHP code to get the "completed icon" associated with each step in the form wizard from the step model. This is to display the appropriate icon upon completion of each step during the form filling process. --- packages/forms/resources/views/components/wizard.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/forms/resources/views/components/wizard.blade.php b/packages/forms/resources/views/components/wizard.blade.php index 139f077f8e1..0aeffb0f771 100644 --- a/packages/forms/resources/views/components/wizard.blade.php +++ b/packages/forms/resources/views/components/wizard.blade.php @@ -160,6 +160,9 @@ class="fi-fo-wizard-header-step-icon-ctn flex h-10 w-10 shrink-0 items-center ju getStepIndex(step) < {{ $loop->index }}, }" > + @php + $completedIcon = $step->getCompletedIcon(); + @endphp Date: Tue, 16 Apr 2024 18:18:06 +0100 Subject: [PATCH 2/2] Update wizard.blade.php --- packages/forms/resources/views/components/wizard.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/forms/resources/views/components/wizard.blade.php b/packages/forms/resources/views/components/wizard.blade.php index 0aeffb0f771..151d44224e3 100644 --- a/packages/forms/resources/views/components/wizard.blade.php +++ b/packages/forms/resources/views/components/wizard.blade.php @@ -163,6 +163,7 @@ class="fi-fo-wizard-header-step-icon-ctn flex h-10 w-10 shrink-0 items-center ju @php $completedIcon = $step->getCompletedIcon(); @endphp +