I am working on a registration booking program.
I have a Form with a list of checkboxes that need to be updated to reflect if an attendee is booked for an event.
Veiw
@foreach($programs as $program)
<tr>
@foreach( Auth::user()->attendee as $attendee )
<td>
{{
Form::checkbox(
'attendee[]',
array($attendee->id=>$program->id), //ERROR: will not accept array :(
($attendee->scheduled_programs->contains($program))
)
}}
</td>
@endforeach
//irrelevant table data
@endforeach
How do I get the attendee_id and program_id to to my controller to update the pivot table with?