96 lines
2.4 KiB
PHP
96 lines
2.4 KiB
PHP
@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 !important; }
|
|
</style>
|
|
|
|
<fieldset>
|
|
<legend>Filtros</legend>
|
|
|
|
<div class="row">
|
|
<div class="col-2">
|
|
<strong>Ano</strong>
|
|
|
|
<div>
|
|
{{ $ano }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-4">
|
|
<strong>Mês</strong>
|
|
|
|
<div>
|
|
{{ $mes }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6">
|
|
<strong>Unidade</strong>
|
|
|
|
<div>
|
|
{{ $unidade }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<strong>Local de atendimento</strong>
|
|
|
|
<div>
|
|
{{ $infraestrutura }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6">
|
|
<strong>Equipe</strong>
|
|
|
|
<div>
|
|
{{ $equipe }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
|
|
@foreach ($resultado as $key => $data)
|
|
<table class="table table-relatorio" style="page-break-inside: avoid; {{ $key !== 'levantamento_quantitativo' ? 'margin-top: 15px;' : '' }}">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="{{ isset($data['itens'][0]['percentual']) ? 3 : 2 }}">{{ $data['titulo'] }}</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>Quantitativo</th>
|
|
<th style="width: 110px;">Quantidade</th>
|
|
|
|
@isset($data['itens'][0]['percentual'])
|
|
<th style="width: 110px;">%</th>
|
|
@endisset
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach ($data['itens'] as $item)
|
|
<tr>
|
|
<td>{{ $item['descricao'] }}</td>
|
|
<td class="text-center">{{ $item['quantidade'] }}</td>
|
|
|
|
@isset($item['percentual'])
|
|
<td class="text-center">{{ $item['percentual'] }}</td>
|
|
@endisset
|
|
</tr>
|
|
@endforeach
|
|
|
|
@isset($data['rodape'])
|
|
<tr>
|
|
<th colspan="{{ isset($data['itens'][0]['percentual']) ? 3 : 2 }}" style="font-weight: normal;">{{ $data['rodape'] }}</th>
|
|
</tr>
|
|
@endisset
|
|
</tbody>
|
|
</table>
|
|
@endforeach
|
|
@endsection |