Old Data for Checkbox

Posted 11 months ago by evripidesk

How can I get the old value for the below check box

                     @if (count($chests) > 0)
              @foreach ($chests as $chest)
              <br>  Day:
                    @for ($i = 0; $i < $days; $i++)
                      <label><input type="checkbox" name="{{str_replace(' ', '_', $chest->name)}}_days[]"
                        value="{{$i+1}}">{{$i+1}}</label>

                    @endfor
                    <br>
                  <label><input type="checkbox" name="chest[]" value="{{$chest->name}}">{{$chest->name}}</label><br>
                  <div id="div01">
                  <input type="text" id ="hint" name="{{str_replace(' ', '_', $chest->name)}}_hints[]" placeholder="Hints / Repeats etc">
                  </div>
              @endforeach
              @else
                No Register Machines
              @endif```

how i get the old data for 

             <label><input type="checkbox" name="{{str_replace(' ', '_', $chest->name)}}_days[]"
                    value="{{$i+1}}">{{$i+1}}</label>```

Please sign in or create an account to participate in this conversation.