This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="{{$columns->count()}}" style="text-align: center">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Grupo</strong></td>
|
||||
<td><strong>Subgrupo</strong></td>
|
||||
<td><strong>Tipo de receita</strong></td>
|
||||
<td><strong>Livro</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$grupo}}</td>
|
||||
<td>{{$subgrupo}}</td>
|
||||
<td>{{$receita_tipo}}</td>
|
||||
<td>{{$livro}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Tipo de livro</strong></td>
|
||||
<td><strong>Forma farmacêutica</strong></td>
|
||||
<td colspan="2"><strong>Programas/Ações</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$livro_tipo}}</td>
|
||||
<td>{{$forma_farmaceutica}}</td>
|
||||
<td colspan="2">{{$programas_acoes}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="4"><strong>Material</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$material}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
<td>
|
||||
<strong>{{$column['label']}}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens as $item)
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
<td>{{$item->{$column['key']} ?? '-'}}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user