init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,185 @@
@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

View File

@@ -0,0 +1,212 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-balancete > thead > tr > th,
.table-balancete > tfoot > tr > th { text-align: center; white-space: nowrap; }
.col-min { width: 1%; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $grupo ?? 'Todos' }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo ?? 'Todos' }}
</div>
</div>
</fieldset>
<table class="table table-balancete">
<thead>
<tr>
<th colspan="{{ $colunas->contains('material')
? ($colunas->contains('subgrupo') ? 4 : 3)
: ($colunas->contains('subgrupo') ? 2 : 1)
}}"></th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Saldo anterior
</th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Entrada
</th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Saída
</th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Saldo atual
</th>
</tr>
<tr>
@if($colunas->contains('material'))
<th class="col-min">Código</th>
<th>Material</th>
@endif
<th>Grupo</th>
@if($colunas->contains('subgrupo'))
<th>Subgrupo</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
</tr>
</thead>
<tbody>
@foreach ($itens->all() as $item)
<tr>
<tr>
@if($colunas->contains('material'))
<td>{{ $item->material_codigo }}</td>
<td>{{ $item->material_descricao }}</td>
@endif
<td>{{ $item->grupo_nome }}</td>
@if($colunas->contains('subgrupo'))
<td>{{ $item->subgrupo_nome }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_anterior_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_anterior_financeiro }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_entrada_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_entrada_financeiro }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_saida_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_saida_financeiro }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_atual_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_atual_financeiro }}</td>
@endif
</tr>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
@if($colunas->contains('material') && $colunas->contains('subgrupo'))
<th colspan="4"></th>
@elseif($colunas->contains('material') && !$colunas->contains('subgrupo'))
<th colspan="3"></th>
@elseif(!$colunas->contains('material') && $colunas->contains('subgrupo'))
<th colspan="2"></th>
@else
<th></th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_anterior_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_anterior_financeiro'] }}</th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_entrada_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_entrada_financeiro'] }}</th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_saida_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_saida_financeiro'] }}</th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_atual_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_atual_financeiro'] }}</th>
@endif
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,87 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-inventario > thead > tr > th { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-12">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-12">
{{ $localAtendimento }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Grupo:</strong>
</div>
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $grupo ?? 'Todos' }}
</div>
<div class="col-6">
{{ $subgrupo ?? 'Todos' }}
</div>
</div>
</fieldset>
<table class="table table-inventario">
<thead>
<tr>
<th>Código</th>
<th>Descrição</th>
<th>Lote</th>
<th>Validade</th>
@if(!isset($grupo))
<th>Grupo</th>
@endif
@if(!isset($subgrupo))
<th>Subgrupo</th>
@endif
<th>Status</th>
<th>Estoque</th>
<th>Contagem</th>
</tr>
</thead>
<tbody>
@foreach ($materiais as $material)
<tr>
<td class="text-center">{{ $material->codigo_material }}</td>
<td>{{ $material->descricao }}</td>
<td class="text-center">{{ $material->lote }}</td>
<td class="text-center">{{ $material->validade_lote }}</td>
@if(!isset($grupo))
<td class="text-center">{{ $material->grupo }}</td>
@endif
@if(!isset($subgrupo))
<td class="text-center">{{ $material->subgrupo }}</td>
@endif
<td class="text-center">{{ $material->is_ativo ? 'ATIVO' : 'INATIVO' }}</td>
<td class="text-center">{{ $material->estoque }}</td>
<td class="text-center">{{ $material->contagem }}</td>
</tr>
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,122 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Setor:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-6">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Grupo:</strong>
</div>
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $grupo }}
</div>
<div class="col-6">
{{ $subgrupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Material:</strong>
</div>
<div class="col-6">
<strong>Tipo de Documento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $material }}
</div>
<div class="col-6">
{{ $tipo_documento }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 2 }}"></th>
<th>{{ $totalizadores['total'] }}</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,154 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Setor:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-6">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade requisitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento requisitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidadeRequisitante }}
</div>
<div class="col-6">
{{ $infraestruturaRequisitante }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Setor requisitante:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $setorRequisitante }}
</div>
<div class="col-6">
{{ $grupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
<div class="col-6">
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo }}
</div>
<div class="col-6">
{{ $material }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Tipo de cálculo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $tipoCalculo }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 2 }}"></th>
<th>{{ $totalizadores->total }}</th>
<th>{{ $totalizadores->saldo_atual }}</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,167 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Setor:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-6">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Grupo:</strong>
</div>
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $grupo }}
</div>
<div class="col-6">
{{ $subgrupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Fornecedor:</strong>
</div>
<div class="col-3">
<strong>Tipo do documento:</strong>
</div>
<div class="col-3">
<strong>Número do documento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $fornecedor }}
</div>
<div class="col-3">
{{ $tipo_documento }}
</div>
<div class="col-3">
{{ $numero_documento }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Material:</strong>
</div>
<div class="col-6">
<strong>Tipo Entrada:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $material }}
</div>
<div class="col-6">
{{ $tipo_entrada }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] ?? '' }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] ?? '' }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 2 }}"></th>
<th>{{ $totalizadores['valor_unitario'] }}</th>
<th>{{ $totalizadores['total'] }}</th>
</tr>
</tfoot>
</table>
<fieldset>
<h5>Orientações</h5>
<div>
<strong>Data do documento</strong> Data de emissão fiscal do documento (quando aplicável). Movimentos sem documento mostram ‘—’.
</div>
<div>
<strong>Finalizada em</strong> Data em que a entrada foi efetivamente confirmada e contabilizada no estoque e no balancete.
</div>
<div>
<strong>Valor total</strong> Soma do valor unitário x quantidade. Exibido em reais (R$). Linhas com valor 0,00 indicam entradas sem valor financeiro.
</div>
<div>
<strong>Total Quantidade / Total Financeiro</strong> Apresenta o total físico (por unidade de medida) e o total financeiro (R$) do período consultado.
</div>
</fieldset>
@endsection

View File

@@ -0,0 +1,119 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Setor:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-6">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Fornecedor:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $fornecedor }}
</div>
<div class="col-6">
{{ $grupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
<div class="col-6">
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo }}
</div>
<div class="col-6">
{{ $material }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 1 }}"></th>
<th>{{ $totalizadores->quantidade }}</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,127 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-3">
<strong>Setor:</strong>
</div>
<div class="col-3">
<strong>Tipo de saída:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-3">
{{ $setor }}
</div>
<div class="col-3">
{{ $tipoSaida }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Usuário requisitante:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $usuarioRequisitante }}
</div>
<div class="col-6">
{{ $grupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
<div class="col-6">
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo }}
</div>
<div class="col-6">
{{ $material }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 1 }}"></th>
<th>{{ $totalizadores->quantidade }}</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,122 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th {text-align: center;}
.col-min {width: 1%;}
.text-center {text-align: center;}
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-3">
<strong>Tipo de movimentação:</strong>
</div>
<div class="col-3">
<strong>Subtipo de movimentação:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{$periodo['start']}} até {{$periodo['end']}}
</div>
<div class="col-3">
{{$movimentacao_tipo}}
</div>
<div class="col-3">
{{$movimentacao_subtipo}}
</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">
{{$infraestrutura}}
</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-6">
<strong>Origem programática:</strong>
</div>
<div>
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$origem_programatica}}
</div>
<div class="col-6">
{{$material}}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{$coluna['class']}}">{{$coluna['label']}}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{$coluna['class']}}">{{$item->{$coluna['key']} ?? '-'}}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,134 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
.text-danger { color: #dc3545; }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
</style>
<fieldset>
<legend>Filtros</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">
{{ $unidade_nome_fantasia }}
</div>
<div class="col-6">
{{ $infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Setor:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $setor_nome }}
</div>
<div class="col-6">
{{ $grupo_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
<div>
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo_nome }}
</div>
<div class="col-6">
{{ $material_descricao }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Status:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $status }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
<th colspan="{{ sizeof($colunas) - 4 }}"></th>
<th colspan="4">
Estoque
</th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
@if (in_array($coluna['key'], ['lote', 'validade_lote', 'quantidade']))
<td class="{{ $coluna['class'] }}">
@foreach ($item->lotes as $lote)
<div>{{ $lote->{$coluna['key']} }}</div>
@endforeach
</td>
@elseif ($coluna['key'] == 'status')
<td class="
{{ $coluna['class'] }}
{{ $item->status['value'] == 'abaixo_minimo' ? 'text-danger' : '' }}
{{ $item->status['value'] == 'normal' ? 'text-success' : '' }}
{{ $item->status['value'] == 'acima_maximo' ? 'text-warning' : '' }}
">
{{ $item->status['text'] ?? '-' }}
</td>
@else
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endif
@endforeach
</tr>
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,327 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
.margin-bottom { margin-bottom: 15px; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade (Almoxarifado):</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento (Almoxarifado):</strong>
</div>
<div class="col-6">
<strong>Setor (Almoxarifado):</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-6">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade requisitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento requisitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidadeRequisitante }}
</div>
<div class="col-6">
{{ $infraestruturaRequisitante }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Setor requisitante:</strong>
</div>
<div class="col-6">
<strong>Usuário requisitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $setorRequisitante }}
</div>
<div class="col-6">
{{ $usuarioRequisitante }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Status:</strong>
</div>
<div class="col-3">
<strong>Número:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $status }}
</div>
<div class="col-3">
{{ $numero }}
</div>
<div class="col-6">
{{ $grupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
<div class="col-6">
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo }}
</div>
<div class="col-6">
{{ $material }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($requisicoes as $requisicao)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $requisicao->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@if ($withDetails)
<tr>
<td colspan="{{ $colunas->count() }}">
@if ($requisicao->respostas->isNotEmpty())
@foreach ($requisicao->respostas as $k => $resposta)
<table class="table table-relatorio margin-bottom">
<thead>
<tr>
<th colspan="7" style="text-align: left !important;">
<span><strong>{{ $resposta->numero_resposta }}ª resposta</strong></span>
@if (!is_null($resposta->data_hora_envio))
<span><br>Data/hora envio: {{ $resposta->data_hora_envio }} ({{ $resposta->usuario_envio }})</span>
@endif
@if (!is_null($resposta->data_hora_recebimento))
<span><br>Data/hora recebimento: {{ $resposta->data_hora_recebimento }}</span>
@endif
</th>
</tr>
<tr>
<th>Material</th>
<th class="col-min">{{ $resposta->numero_resposta === 1 ? 'Requisitado' : 'Restante requisitado' }}</th>
<th class="col-min">Lote</th>
<th class="col-min">Validade</th>
<th class="col-min">Enviado</th>
<th class="col-min">Recebido</th>
<th style="width: 150px">Motivo da diferença entre solicitado e enviado</th>
</tr>
</thead>
<tbody>
@foreach ($resposta->itens as $item)
<tr>
<td>{{ $item->material }}</td>
<td class="text-center">{{ $item->requisitado }}</td>
<td class="text-center">
@if ($item->possui_entrada_com_lote)
@if ($item->entrada_itens->isNotEmpty())
@foreach ($item->entrada_itens as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote->lote ?? '-' }}
@endforeach
@else
-
@endif
@else
-
@endif
</td>
<td class="text-center">
@if ($item->possui_entrada_com_lote)
@if ($item->entrada_itens->isNotEmpty())
@foreach ($item->entrada_itens as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote->validade_lote ?? '-' }}
@endforeach
@else
-
@endif
@else
-
@endif
</td>
<td class="text-center">
@if ($item->possui_entrada_com_lote)
@if ($item->entrada_itens->isNotEmpty())
@foreach ($item->entrada_itens as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote->enviado ?? '-' }}
@endforeach
@else
0
@endif
@else
{{ $item->enviado }}
@endif
</td>
<td class="text-center">
@if ($item->possui_entrada_com_lote)
@if ($item->entrada_itens->isNotEmpty())
@foreach ($item->entrada_itens as $i => $lote)
@if ($i > 0)
<br>
@endif
{{ $lote->recebido ?? '-' }}
@endforeach
@else
0
@endif
@else
{{ $item->recebido }}
@endif
</td>
<td>
{{ $item->motivo_diferenca ?? '-' }}
</td>
</tr>
@endforeach
</tbody>
@if (!is_null($resposta->observacoes))
<tfoot>
<tr>
<th colspan="7" style="text-align: left !important;">
<span>
<strong>Observações:</strong> <span style="font-weight: normal;">{{ $resposta->observacoes }}</span>
</span>
</th>
</tr>
</tfoot>
@endif
</table>
@endforeach
@else
<table class="table table-relatorio margin-bottom">
<thead>
<tr>
<th>Material</th>
<th class="col-min text-center">Requisitado</th>
<th class="col-min text-center">Lote</th>
<th class="col-min text-center">Validade</th>
<th class="col-min text-center">Enviado</th>
<th class="col-min text-center">Recebido</th>
<th style="width: 150px">Motivo da diferença entre solicitado e enviado</th>
</tr>
</thead>
<tbody>
@foreach ($requisicao->itens as $item)
<tr>
<td>{{ $item->material }}</td>
<td class="col-min text-center">{{ $item->requisitado }}</td>
<td class="col-min text-center">-</td>
<td class="col-min text-center">-</td>
<td class="col-min text-center">-</td>
<td class="col-min text-center">-</td>
<td>-</td>
</tr>
@endforeach
</tbody>
</table>
@endif
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,189 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Setor:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-6">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Tipo:</strong>
</div>
<div class="col-3">
<strong>Motivo:</strong>
</div>
<div class="col-6">
<strong>Usuário que realizou a saída:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $tipo }}
</div>
<div class="col-3">
{{ $motivo }}
</div>
<div class="col-6">
{{ $usuarioSaida }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade requisitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento requisitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidadeRequisitante }}
</div>
<div class="col-6">
{{ $infraestruturaRequisitante }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Setor requisitante:</strong>
</div>
<div class="col-6">
<strong>Usuário requisitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $setorRequisitante }}
</div>
<div class="col-6">
{{ $usuarioRequisitante }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Grupo:</strong>
</div>
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $grupo }}
</div>
<div class="col-6">
{{ $subgrupo }}
</div>
</div>
<div class="row">
<div>
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div>
{{ $material }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 1 }}"></th>
<th>{{ $totalizadores->quantidade }}</th>
</tr>
<tr>
<th colspan="{{ $colunas->count() }}" style="white-space: nowrap">
@foreach ($totalizadores->tipos as $i => $totalizadorTipo)
@if($i > 0)|@endif {{ $totalizadorTipo->nome }}: {{ $totalizadorTipo->quantidade }}
@endforeach
</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,113 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-3">
<strong>Setor:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-3">
{{ $setor }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Grupo:</strong>
</div>
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $grupo }}
</div>
<div class="col-6">
{{ $subgrupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Material:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $material }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 1 }}"></th>
<th>{{ $totalizadores['total'] }}</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,134 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-inventario > thead > tr > th { text-align: center; white-space: nowrap; }
.col-min { width: 1%; }
.col-lote { width: 15%; }
.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-lote">Lote</th>
<th class="col-min">Validade</th>
<th class="col-min">Conceder</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
<td class="text-center"></td>
<td class="text-center"></td>
<td class="text-center"></td>
</tr>
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,195 @@
@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

View File

@@ -0,0 +1,174 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-saida > 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-saida">
<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_completa'] }}
</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>
<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

View File

@@ -0,0 +1,154 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-transferencia > thead > tr > th { text-align: center; white-space: nowrap; }
.col-min { width: 1%; }
.d-inline-block { display: inline-block; }
</style>
<fieldset>
<legend>Dados do destino</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">
{{ $destino['unidade'] }}
</div>
<div class="col-6">
{{ $destino['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">
{{ $destino['setor'] }}
</div>
<div class="col-6">
{{ $destino['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">
{{ $destino['endereco'] }}
</div>
<div class="col-2">
{{ $destino['telefone'] }}
</div>
</div>
</fieldset>
<table class="table table-transferencia">
<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_completa'] }}
</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>
<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