title: Can't submit form of table data using Laravel
body: <p>The form doesn't get submitted when clicking on the button and frankly I have no idea why it doesn't. </p>
  
  <p>I have other pages with the same type of forms in my website but those work fine.</p>
  
  <p>Here is the Html <code>form</code> that I want to submit.</p>
  
  <pre><code>&lt;form action="/store-absence" method="POST"&gt;
      {{ csrf_field() }}
      &lt;thead&gt;
      &lt;tr role="row"&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;Date&lt;/th&gt;
          &lt;th&gt;Attended&lt;/th&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
  
      &lt;?php date_default_timezone_set('Asia/Baghdad') ?&gt;
      @foreach ($students as $student)
      &lt;tr&gt;
          &lt;input type="hidden" name="student_id[]" id="" value="{{$student-&gt;id}}"&gt;
          &lt;input type="hidden" name="date" value="{{date('Y-m-d')}}"&gt;
          &lt;td colspan=""&gt; {{$student-&gt;name}} &lt;/td&gt;
          &lt;td colspan=""&gt; {{date('Y-m-d')}} &lt;/td&gt;
          &lt;td colspan="1"&gt;
              &lt;input style="border:none" type="checkbox" name="attended[]" id=""&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      @endforeach
  
      &lt;/tbody&gt;
  
      &lt;/table&gt;
  
      &lt;button type="submit" class="btn btn-block btn-primary btn-lg"&gt;
          Insert
      &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>