我想将第1页上显示的表格中的视图数据传递到第2页。例如,我有来自javascript函数的表格过滤器。所以,在过滤数据之后,我也想在第2页上显示它。第2页用于打印并保存为pdf文件。如何获取它参数,以便它显示当前表中显示的数据?
page1.blade.php(我不确定它是否正确)
<form target="_blank" method="post" action="print">
<table class=" table-autosort table-autofilter " border="1" width="100%" id="save">
<thead>
<tr>
<td>bil</td>
<td class="table-filterable table-sortable:numeric table-sortable"> faculty</td>
<td class="table-filterable table-sortable:numeric table-sortable"> programme</td>
</tr>
</thead>
<tbody class="bottom" >
@foreach($profiles as $profile)
<tr>
<td class="number" width="7%%"></td>
<td class="faculty" width="40%">{{$profile->faculty}} </td>
<td class="program" width="53%%"> {{$profile->programme}}</td>
</tr>
@endforeach
</tbody>
</table>
page2.blade.php
<table width="100%" class="printTable">
<thead>
<tr>
<td>bil</td>
<td>faculty</td>
<td>programme</td>
<td>student id</td>
<td>student name</td>
</tr>
</thead>
<tbody>
//possible code here //i dont know how to get it parameter
</tbody>