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

186 lines
4.3 KiB
PHP

@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-baixa > thead > tr > th { text-align: center; white-space: nowrap; }
.col-min { width: 1%; }
</style>
<fieldset>
<legend>Dados</legend>
<div class="row">
<div class="col-6">
<strong>Data</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $data }}
</div>
</div>
<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">
{{ $unidade }}
</div>
<div class="col-6">
{{ $localAtendimento }}
</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">
{{ $setor }}
</div>
<div class="col-6">
{{ $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">
{{ $endereco }}
</div>
<div class="col-2">
{{ $telefone }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Motivo:</strong>
</div>
@if(!is_null($usuarioSolicitante))
<div class="col-6">
<strong>Usuário solicitante:</strong>
</div>
@endif
</div>
<div class="row">
<div class="col-6">
{{ $motivo }}
</div>
@if(!is_null($usuarioSolicitante))
<div class="col-6">
{{ $usuarioSolicitante }}
</div>
@endif
</div>
@if(!is_null($justificativa))
<div class="row">
<div class="col-12">
<strong>Justificativa:</strong>
</div>
</div>
<div class="row">
<div class="col-12">
{{ $justificativa }}
</div>
</div>
@endif
</fieldset>
<table class="table table-baixa">
<thead>
<tr>
<th>Material</th>
<th class="col-min">Lote</th>
<th class="col-min">Validade</th>
<th class="col-min">Quantidade</th>
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
<td>
{{ $item['material']['descricao'] }}
</td>
<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['quantidade'] }}
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection