87 lines
2.2 KiB
PHP
87 lines
2.2 KiB
PHP
@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 |