This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
@extends('impressoes.layout1.content')
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<table class="report-container">
|
||||
|
||||
<thead class="report-header">
|
||||
<tr>
|
||||
<th class="report-header-cell">
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot class="report-footer">
|
||||
<tr>
|
||||
<td class="report-footer-cell">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<tbody class="report-content">
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<fieldset>
|
||||
<legend>Filtros</legend>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<strong>Período de-até:</strong>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<strong>Exame:</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ $periodo['start'] }} - {{ $periodo['end'] }}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ $exame_nome }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<strong>Unidade de coleta:</strong>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<strong>Local de atendimento:</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ $coleta_unidade_nome }}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ $coleta_infraestrutura_nome }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<strong>Laboratório:</strong>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<strong>Local de atendimento:</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ $laboratorio_nome_fantasia }}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ $laboratorio_infraestrutura_nome }}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@php
|
||||
$quantidade = 0;
|
||||
$quantidadeReagentes = 0;
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table class="table">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($agendamentos as $agendamento)
|
||||
|
||||
@php
|
||||
$quantidade = $quantidade + $agendamento['quantidade'];
|
||||
$quantidadeReagentes = $quantidadeReagentes + $agendamento['quantidade_reagente'];
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }}">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 2 }}">
|
||||
<strong>
|
||||
Total
|
||||
</strong>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<strong>
|
||||
{{ $quantidade }}
|
||||
</strong>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<strong>
|
||||
{{ $quantidadeReagentes }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<style>
|
||||
body {font-family: Helvetica, arial, sans-serif;}
|
||||
table {margin-bottom: 15px; clear: both;}
|
||||
p {margin:0; padding: 0;}
|
||||
table.report-container {page-break-after: always;}
|
||||
.col-min { width: 1%; }
|
||||
.text-center { text-align: center!important; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user