@if(old('steps'))
- @foreach(old('steps') as $i => $step)
+ @foreach(old('steps') as $i => $step_default)
@if (empty($step)) @continue @endif
-
-
{{ $step_number++ }}
-
-
+ @include('recipes.partials.step-input')
@endforeach
@else
@foreach($recipe->steps as $step)
-
-
{{ $step_number++ }}
-
-
+ @include('recipes.partials.step-input', ['step_default' => $step->step])
@endforeach
@endif
-
+ @include('recipes.partials.step-input')