I have an object returned from Laravel's DB class that I pass to my view:
@foreach ($appts as $appt)
<tr>
<td> {{ $appt->carrier }} </td>
<td> {{ $appt->carrier }} </td>
<td> {{ $appt->name }} </td>
<td> {{ Format::up($appt->lines_of_authority_c) }} </td>
<td> {{ Format::under($appt->status_c) }} </td>
<td> {{ Format::date($appt->effective_date_c) }} </td>
</tr>
@endforeach
Except I have another object I need to iterate over, but if I include it under the current foreach it obviously iterates multiple times.
Is there anyway to do something like:
@foreach($appts as $appt, $agents as $agent)
The above? Multiple foreaches like this? Or some way to achieve this effect?
Or some way to merge them together? They are both stdClass.