81 lines
2.3 KiB
PHP
81 lines
2.3 KiB
PHP
<table>
|
|
<tr>
|
|
<td style="text-align: center" colspan="{{ $columns->count() }}">
|
|
<strong>{{ $title }}</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><strong>Período:</strong></td>
|
|
<td>Unidade:</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>De {{$start_date}} até {{$end_date}}</td>
|
|
<td>{{$servico_tipo}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><strong>Tipo de serviço:</strong></td>
|
|
<td><strong>Status do processamento:</strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{$servico_tipo}}</td>
|
|
<td>{{$processamento_status}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><strong>Protocolo:</strong></td>
|
|
<td><strong>Lote:</strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{$protocolo}}</td>
|
|
<td>{{$lote}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
@foreach ($columns as $column)
|
|
<th><strong>{{$column['label']}}</strong></th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach ($itens as $item)
|
|
<tr>
|
|
@foreach ($columns as $column)
|
|
@if ($column['key'] === 'inconsistencias')
|
|
@if (isset($item->respostas) && count($item->respostas) > 0)
|
|
@foreach ($item->respostas as $resposta)
|
|
<strong>Código:</strong> {{$resposta['codigo'] ?? 'Não informado'}}, <strong>Valor rejeitado:</strong> {{$resposta['valor_rejeitado'] ?? 'Não informado'}}, <strong>Descrição:</strong> {{$resposta['descricao'] ?? 'Não informado'}}<br />
|
|
@endforeach
|
|
@else
|
|
-
|
|
@endif
|
|
@else
|
|
<td>{{$item->{$column['key']} ?? '-'}}</td>
|
|
@endif
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<table>
|
|
<tr>
|
|
<td><strong>Quantidade total de envios:</strong></td>
|
|
<td><strong>Quantidade total de inconsistências:</strong></td>
|
|
<td><strong>Quantidade total:</strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{$totalizadores->quantidade_total_envios}}</td>
|
|
<td>{{$totalizadores->quantidade_total_inconsistencias}}</td>
|
|
<td>{{$totalizadores->quantidade_total}}</td>
|
|
</tr>
|
|
</table> |