Files
rkm-conectasus-ci-sandbox/api/resources/views/exportacoes/almoxarifado/relatorios/posicao-estoque.blade.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

117 lines
2.5 KiB
PHP

<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Unidade:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $unidade_nome_fantasia }}
</td>
<td>
{{ $infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Setor:</strong>
</td>
<td>
<strong>Grupo:</strong>
</td>
</tr>
<tr>
<td>
{{ $setor_nome }}
</td>
<td>
{{ $grupo_nome }}
</td>
</tr>
<tr>
<td>
<strong>Subgrupo:</strong>
</td>
<td>
<strong>Material:</strong>
</td>
</tr>
<tr>
<td>
{{ $subgrupo_nome }}
</td>
<td>
{{ $material_descricao }}
</td>
</tr>
<tr>
<td>
<strong>Status:</strong>
</td>
</tr>
<tr>
<td>
{{ $status }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
@if (in_array($coluna['key'], ['lote', 'validade_lote', 'quantidade']))
<td>
@foreach ($item->lotes as $lote)
{{ $lote->{$coluna['key']} }}<br/>
@endforeach
</td>
@elseif ($coluna['key'] == 'status')
<td style="
{{ $item->status['value'] == 'abaixo_minimo' ? 'color: #dc3545;' : '' }}
{{ $item->status['value'] == 'normal' ? 'color: #28a745;' : '' }}
{{ $item->status['value'] == 'acima_maximo' ? 'color: #ffc107;' : '' }}
">
{{ $item->status['text'] ?? '-' }}
</td>
@else
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
@endif
@endforeach
</tr>
@endforeach
</tbody>
</table>