1 year ago

Old Data for Checkbox

Posted 1 year 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[]"

                  <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">
                No Register Machines

how i get the old data for 

             <label><input type="checkbox" name="{{str_replace(' ', '_', $chest->name)}}_days[]"

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