lundi 4 janvier 2016

how to print data from select option in laravel 5?

i am using vs moraes pdf-laravel5 to create both print and pdf function. in order to print data from database, i create a file named print.blade.php. there, i call manually all data from database and have to create files to display every single data filtered (filter:all, filter:faculty, filter:program). it's means that i have three print buttons. how can i use only one print button to print any data either all, filter program, or filter faculty ?

print.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>
@foreach($profiles as $profile)

    <tr>
        <td class="counterCell" width="7%"></td>
        <td class="faculty" width="23%">{{$profile->faculty }}</td>
        <td class="program" width="30%"> {{$profile->program }}</td>
        <td class="student_id" width="12%">{{$profile->student_id }}</td>
        <td class="name" width="28%">{{$profile->student_name }}</td>
    </tr>

@endforeach
</tbody>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1kHuNzP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire