%PDF- %PDF-
Direktori : /var/www/html/camillo/camillo-api-master/resources/views/pdf/ |
Current File : /var/www/html/camillo/camillo-api-master/resources/views/pdf/invoicing.blade.php |
<!doctype html> <html> <head> <meta charset="utf-8"> <style> html, body { font-family: Arial; margin-bottom: 0; padding-bottom: 0; } table { page-break-inside: auto } tr { page-break-inside: avoid; page-break-after: auto } thead { display: table-header-group } tfoot { display: table-footer-group } table tr td img { max-width: 75px; } </style> </head> <body> <div style="height: 80px;"> <style> table.header { width: 100%; border-collapse: collapse; background-color: rgb(226, 226, 226); border: 1px solid black; } table.header tr > th { border: 1px solid black; text-align: left; font-size: 10px; } table.header tr > td { border: 1px solid black; text-align: center; font-size: 8px; padding: 1px; } table.header tr > td > b { margin-left: 5px; } table.header tr > td > span { font-size: 9pt; margin-top: 10px; margin-left: 5px; } </style> </div> <div style="min-height: 525px; margin-top: 40px; margin-bottom: 10px;"> <style> .cell-small { width: 60px; max-width: 60px; } table.items { width: 100%; border-collapse: collapse; page-break-after: always; } table.items tr > th { border: 1px solid black; text-align: left; font-size: 8px; padding-left: 5px; padding-right: 5px; } table.items tr > td { border: 1px solid black; text-align: center; font-size: 9px; padding-left: 5px; padding-right: 5px; } table.items tr > td.text-right { text-align: right; padding: 10px; } table.items tr > td.text-center { text-align: center; } table.items tr > td.text-left { text-align: left; } </style> @foreach($institutes as $institute) <table class="header"> <tr> <td> <b>NOME ISTITUTO</b> <br> <span style="float: none;display: block;">{{$institute->name}}</span> </td> <td> <b>CODICE ISTITUTO</b> <br> <span style="float: none;display: block;">{{$institute->code}}</span> </td> <td> <b>MESE</b> <br> <span style="float: none;display: block;">{{$month}}</span> </td> <td> <b>ANNO</b> <br> <span style="float: none;display: block;">{{$year}}</span> </td> </tr> </table> <br> <table class="items"> <thead> <tr> <th>NOMINATIVO MINORE</th> <th>NOME CLASSE</th> <th>ANNO SCOLASTICO</th> </tr> </thead> <tbody> @if(count($institute->minors) > 0) @foreach($institute->minors as $minor) <tr style="height: 60px"> <td class="text-left">{{$minor->name. ' '. $minor->surname}}</td> <td class="text-left">{{$minor->classrooms->first()['class_name']}}</td> <td class="text-left">{{$minor->classrooms->first()['schoolyear']['description']}}</td> </tr> @endforeach @endif </tbody> </table> @endforeach </div> </body> </html>