Laravel wizard system getting data from db -


i creating wizard systeem create taks , wizard. want show take stap not taks in 1 stap.

<div class="slide" id="slide-2" style="display: none">      @foreach($tasks $task)           <div class="form-group">               <label for="task[{{ $loop->index }}]">{{ $task->name }</label>               <input type="checkbox" name="task[]" id="task[{{ $loop->index }}]" value="{{ $task->id }}">           </div>      @endforeach  </div> 

but task in 1 time, how can 1 one?

$tasks array , can array value 1 one key or index

for example:

$tasks[0]->name display first index of $tasks name or $tasks[0]->id

and $tasks[1]->name second , ...

of course there many ways values , depends on how want use it

for loop or switch or other loops conditions


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -