diff --git a/resources/views/done.blade.php b/resources/views/done.blade.php index 0216756..418e9eb 100644 --- a/resources/views/done.blade.php +++ b/resources/views/done.blade.php @@ -2,29 +2,8 @@ @section('content')
-

+

{{ __($doneText ?? 'wizard::generic.done') }}

- - @isset ($wizardData) -
-
-
    - @foreach ($wizardData as $slug => $stepData) - @if ($stepRepo->find($slug)) -
  • -

    {{ $stepRepo->find($slug)->label() }}

    -
      - @foreach ($stepData as $key => $data) -
    • {{ $key }}: {{ $data }}
    • - @endforeach -
    -
  • - @endif - @endforeach -
-
-
- @endisset
@endsection diff --git a/src/Http/Controllers/WizardController.php b/src/Http/Controllers/WizardController.php index 5690b8a..179712b 100644 --- a/src/Http/Controllers/WizardController.php +++ b/src/Http/Controllers/WizardController.php @@ -186,12 +186,10 @@ public function store(Request $request, string $step) */ public function done(Request $request) { - $wizardData = $request->session()->get('wizard_data'); - $wizardData = json_decode(base64_decode($wizardData), true); $stepRepo = $this->wizard()->stepRepo(); $doneText = $this->doneText; - return view($this->getViewPath('done'), compact('wizardData', 'stepRepo', 'doneText')); + return view($this->getViewPath('done'), compact('stepRepo', 'doneText')); } /** @@ -251,8 +249,6 @@ protected function redirectTo() */ protected function doneRedirectTo($withData = null) { - $withData = $withData ? base64_encode(json_encode($withData)) : null; - session()->put('wizard_data', $withData); return redirect($this->getActionUrl('done')); }