title: Laravel: how to insert an array with radio button per row
body: <p>I want to insert a different status for each student per row where my status are (<strong>present, absent,late,others</strong>)</p>
  
  <p><strong>Here's my view</strong></p>
  
  <pre><code>&lt;div align="center"&gt;&lt;b&gt;List of Students Enrolled&lt;/b&gt;&lt;/div&gt;
    &lt;table class="table table-striped table-bordered"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
     &lt;th&gt;Student ID&lt;/th&gt;
      &lt;th&gt;Student Name&lt;/th&gt;
      &lt;th&gt;Present&lt;/th&gt;
      &lt;th&gt;Late&lt;/th&gt;
      &lt;th&gt;Absent&lt;/th&gt;
      &lt;th&gt;Others&lt;/th&gt;
      &lt;th&gt;Comments&lt;/th&gt;
  
          &lt;/tr&gt;
      &lt;/thead&gt;
  
      &lt;tbody&gt;
          @foreach ($users as $users)
              &lt;tr&gt;
        &lt;td&gt;{{ $users-&gt;student_id  }} &lt;/td&gt;
         &lt;td&gt;{{ $users-&gt;student_firstname  }} {{ $users-&gt;student_lastname  }}&lt;/td&gt; 
      &lt;td&gt;{{ Form::radio('student['.$users-&gt;student_id.'][status]', 'present' , true) }}&lt;/td&gt;
  &lt;td&gt;{{ Form::radio('student['.$users-&gt;student_id.'][status]', 'late' ) }}&lt;/td&gt;
  &lt;td&gt;{{ Form::radio('student['.$users-&gt;student_id.'][status]', 'absent') }}&lt;/td&gt;
  &lt;td&gt;{{ Form::radio('student['.$users-&gt;student_id.'][status]', 'others') }}&lt;/td&gt;
  &lt;td&gt;{{ Form::text('student['.$users-&gt;student_id.'][comment]') }}&lt;/td&gt;
  
            @endforeach
  </code></pre>
  
  <p>Is there anyway i can insert this inside a function in my controller? </p>
  
  <p>Thank You!</p>