i want to pass view data from shown table on page 1 to page 2. for example, i have table filter used from javascript function. so, after filter the data i wanna it displayed on page 2 also. page 2 is for print and save in pdf file. how to get it parameter so that it displays the data from current table showned?
page1.blade.php (am not sure it is right or not)
<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"> name</td>
<td class="table-filterable table-sortable:numeric table-sortable"> address</td>
</tr>
</thead>
<tbody class="bottom" >
@foreach($profiles as $profile)
<tr>
<td class="number" width="7%%"></td>
<td class="faculty" width="40%">{{$profile->name}} </td>
<td class="program" width="53%%"> {{$profile->address}}</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>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire