This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
@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>Medicamento / Material</strong>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ $unidade_nome_fantasia }}
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
{{ $material_descricao }}
|
||||
</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>
|
||||
@else
|
||||
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user