Files
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

196 lines
5.1 KiB
PHP

@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-inventario > thead > tr > th { text-align: center; white-space: nowrap; }
.col-min { width: 1%; }
.d-inline-block { display: inline-block; }
</style>
<div class="row">
<div class="col-2">
<strong>Data da requisição:</strong>
</div>
<div class="col-4">
<strong>Número:</strong>
</div>
</div>
<div class="row">
<div class="col-2">
{{ $data }}
</div>
<div class="col-4">
{{ $numero }}
</div>
</div>
<fieldset>
<legend>Dados do requisitante</legend>
<div class="row">
<div class="col-6">
<strong>Unidade:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $requisitante['unidade'] }}
</div>
<div class="col-6">
{{ $requisitante['local_atendimento'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Setor:</strong>
</div>
<div class="col-6">
<strong>Usuário:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $requisitante['setor'] }}
</div>
<div class="col-6">
{{ $requisitante['usuario'] }}
</div>
</div>
<div class="row">
<div class="col-10">
<strong>Endereço:</strong>
</div>
<div class="col-2">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-10">
{{ $requisitante['endereco'] }}
</div>
<div class="col-2">
{{ $requisitante['telefone'] }}
</div>
</div>
</fieldset>
<table class="table table-inventario">
<thead>
<tr>
<th class="col-min">Código</th>
<th>Descrição</th>
@if($isPrimeiroEnvio)
<th class="col-min">Requisitado</th>
@else
<th class="col-min">Entregue</th>
<th class="col-min">Restante requisitado</th>
@endif
<th class="col-min">Lote</th>
<th class="col-min">Validade</th>
<th class="col-min">Enviado</th>
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
<td class="text-center">{{ $item['material']['codigo'] }}</td>
<td>{{ $item['material']['descricao_completa'] }}</td>
@if($isPrimeiroEnvio)
<td class="text-center">{{ $item['requisitado'] }}</td>
@else
<td class="text-center">{{ $item['entregue'] }}</td>
<td class="text-center">{{ $item['restante_requisitado'] }}</td>
@endif
@if ($item['entrada_itens']->isEmpty())
@for ($i = 0; $i < 3; $i++)
<td class="text-center">-</td>
@endfor
@else
<td class="text-center">
@if ($item['possui_entrada_com_lote'])
@foreach ($item['entrada_itens'] as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote['lote'] ?? '-' }}
@endforeach
@else
-
@endif
</td>
<td class="text-center">
@if ($item['possui_entrada_com_lote'])
@foreach ($item['entrada_itens'] as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote['validade_lote'] ?? '-' }}
@endforeach
@else
-
@endif
</td>
<td class="text-center">
@if ($item['possui_entrada_com_lote'])
@foreach ($item['entrada_itens'] as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote['quantidade_saida'] }}
@endforeach
@else
{{ $item['concedido'] }}
@endif
</td>
@endif
</tr>
@endforeach
</tbody>
</table>
<div class="text-center" style="margin-top: 30px">
<div class="d-inline-block">
<strong>Recebido por</strong>
</div>
<div class="d-inline-block" style="border-bottom: 1px solid black; width: 400px;">
&nbsp;
</div>
<div class="d-inline-block">
<strong>Data</strong>
</div>
<div class="d-inline-block">
______/______/______
</div>
</div>
@endsection