title: attendance form : delete and submit using the same form
body: <p>I have an attendance table which has a student_id and lesson_id columns.</p>
  
  <p>in a form that has every student name beside a checkbox if the student attend this lesson the checkbox would be checked</p>
  
  <pre><code>@foreach ($students as $s)
                  &lt;tr&gt;
                    &lt;?php $sd=student::find(1)-&gt;where('id',$s-&gt;student_id)-&gt;first(); ?&gt;
                    &lt;?php $att=att::find(1)-&gt;where('student_id', $sd-&gt;id )-&gt;where('lesson_id', $lessonId)-&gt;first() ?&gt;
                    &lt;?php
                    if($att){
                      echo $att;
                      $check='checked';
  
                    }else {
                      $check='';
  
                    } ?&gt;
                    &lt;td&gt;{{$sd-&gt;name}}&lt;/td&gt;
                    &lt;td&gt;&lt;input {{$check}} type="checkbox" name="attend[]" value="{{$sd-&gt;id}}"&gt;&lt;/td&gt;
                    &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>when i submit this form 
  i want to check if there is any alter in the check boxes
  such as a student has been unchecked to mark him absent.
  or a student had checked which obliviously this form do the job for this part only by sending an attend array that have the id of the checked students.</p>