I have a generic table.blade.php that manage the build of a table based on the model collection given.
How can I, for example, build the edit link foreach items with the right controller.
Example:
<!-- stored in /resources/views/includes/table.blade.php -->
all table....
<tbody>
@foreach( $items as $model )
<tr><td>
<a href="{{ route( '****.edit', $model ) }}">Edit</a>
</td></tr>
@endforeach
</tbody>
where **** should be the correct controller for the model.