currently, I am using a library of pdf-laravel to display the data in pdf file. it was working when I wrote data directly in the new page to be shown. here, I got the problem on how to display the selected data to be printed. below is my report.blade.php.
<table class=" table-autosort table-autofilter " border="1" width="100%">
<thead>
<tr><br>
<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-right" >
@foreach($profiles as $profile)
<tr>
<!--<td class="student_id" width="15%">{{$profile->student_id }}</td>
<td class="name" width="30%">{{$profile->student_name }}</td>-->
<td class="number" width="7%%"></td>
<td class="faculty" width="40%">{{$profile->faculty }} </td>
<td class="program" width="53%%"> {{$profile->program }}</td>
</tr>
@endforeach
</tbody>
</table>
<br><p align="right"><a href="{{ url('print/') }}" target="_blank">Print</a></p>
</fieldset>
</div>
what should I do when I click the print button(just one print button ), it will print any data of current table has shown (either filter: all ; or filter: program ) ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire