This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$inicio}} até {{$fim}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Equipe</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$equipe}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Visualizar por</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{ $tipo_visualizacao === 'equipe' ? 'Equipe' : 'Profissional' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@php
|
||||
$totalColunas = 5;
|
||||
|
||||
if (is_null($unidade_id)) $totalColunas++;
|
||||
if (is_null($equipe_id)) $totalColunas++;
|
||||
if (is_null($usuario_id) && $tipo_visualizacao === 'usuario') $totalColunas++;
|
||||
@endphp
|
||||
|
||||
<th style="text-align: center" colspan="{{ $totalColunas }}"><strong>Totalizadores</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Programados</strong></th>
|
||||
<th><strong>Espontâneos</strong></th>
|
||||
<th><strong>Total</strong></th>
|
||||
<th><strong>% Programados</strong></th>
|
||||
<th><strong>% Espontâneos</strong></th>
|
||||
@if(is_null($unidade_id))
|
||||
<th><strong>Total de unidades</strong></th>
|
||||
@endif
|
||||
|
||||
@if(is_null($equipe_id))
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
@endif
|
||||
|
||||
@if(is_null($usuario_id) && $tipo_visualizacao === 'usuario')
|
||||
<th><strong>Total de profissionais</strong></th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores['total_programados'] }}</td>
|
||||
<td>{{ $totalizadores['total_espontaneos'] }}</td>
|
||||
<td>{{ $totalizadores['total'] }}</td>
|
||||
<td>{{ $totalizadores['percentual_programados'] }}</td>
|
||||
<td>{{ $totalizadores['percentual_espontaneos'] }}</td>
|
||||
@if(is_null($unidade_id))
|
||||
<td>{{ $totalizadores['total_unidades'] }}</td>
|
||||
@endif
|
||||
|
||||
@if(is_null($equipe_id))
|
||||
<td>{{ $totalizadores['total_equipes'] }}</td>
|
||||
@endif
|
||||
|
||||
@if(is_null($usuario_id) && $tipo_visualizacao === 'usuario')
|
||||
<td>{{ $totalizadores['total_profissionais'] }}</td>
|
||||
@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
@if ($tipo_visualizacao === 'usuario')
|
||||
<th><strong>Profissional</strong></th>
|
||||
@endif
|
||||
<th><strong>Programados</strong></th>
|
||||
<th><strong>% Programados</strong></th>
|
||||
<th><strong>Espontâneos</strong></th>
|
||||
<th><strong>% Espontâneos</strong></th>
|
||||
<th><strong>Total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->infraestrutura_nome }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
@if ($tipo_visualizacao === 'usuario')
|
||||
<td>{{ $item->usuario_nome }}</td>
|
||||
@endif
|
||||
<td>{{ $item->total_atendimento_demanda_programada }}</td>
|
||||
<td>{{ $item->porcentagem_atendimento_demanda_programada }}%</td>
|
||||
<td>{{ $item->total_atendimento_demanda_espontanea }}</td>
|
||||
<td>{{ $item->porcentagem_atendimento_demanda_espontanea }}%</td>
|
||||
<td>{{ $item->total_atendimento }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user