This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Município:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ \Illuminate\Support\Carbon::parse($periodo['start'])->format('d/m/Y') }} à {{ \Illuminate\Support\Carbon::parse($periodo['end'])->format('d/m/Y') }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Horário:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $horario }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}">
|
||||
<b>Total</b>
|
||||
</th>
|
||||
<th>
|
||||
<strong>{{ $total }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,199 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motorista</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Município:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motivo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Prontuário</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motorista }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motivo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Motorista</strong>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<strong>Total de viagens</strong>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<strong>Total de passageiros</strong>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<strong>Total de diárias</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($motoristas as $total_motorista)
|
||||
<tr>
|
||||
<td>{{ $total_motorista['motorista'] }}</td>
|
||||
|
||||
<td>{{ $total_motorista['viagens'] }}</td>
|
||||
|
||||
<td>{{ $total_motorista['passageiros'] }}</td>
|
||||
|
||||
<td>{{ $total_motorista['diarias'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Total de viagens</strong>
|
||||
</th>
|
||||
|
||||
<td>
|
||||
<strong>Total de diarias</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Total de pacientes</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Total de acompanhantes</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Total de passageiros</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>% total de acompanhantes</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $total['viagens'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['diarias'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['pacientes'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['acompanhantes'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['passageiros'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['porcentagem'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,93 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo</strong>
|
||||
</td>
|
||||
|
||||
@if ($jornada)
|
||||
<td colspan="3">
|
||||
<strong>Jornada</strong>
|
||||
</td>
|
||||
@else
|
||||
<td>
|
||||
<strong>Município</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Bairro</strong>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
|
||||
@if ($jornada)
|
||||
<td colspan="3">
|
||||
{{ $jornada }}
|
||||
</td>
|
||||
@else
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $bairro }}
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total de passageiros: {{ $total}} </strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,114 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Veículo</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motorista</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Destino</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $motorista }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }}">
|
||||
@if ($coluna['isCurrency'] == 'true')
|
||||
{{ 'R$ ' . number_format(floatval($item->{$coluna['key']}), 2, ',', '.') }}
|
||||
@else
|
||||
{{ $item->{$coluna['key']} ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total diária(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_diaria), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total refeição(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_refeicao), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() % 3 == 0 ? $colunas->count() / 3 : $colunas->count() + 1 }}">
|
||||
<b>Total pernoite(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_pernoite), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total pedágio(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_pedagio), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total combustível(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_combustivel), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() % 3 == 0 ? $colunas->count() / 3 : $colunas->count() + 1 }}">
|
||||
<b>Total outra(s) despesa(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_outras_despesas), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<b>Total KM percorrido:</b>
|
||||
<strong>{{ $total_km_percorrido }}</strong>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<b>Total despesa(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_despesa), 2, ',', '.') }}</strong>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,87 @@
|
||||
<table class="table table-relatorio">
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count()}}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td style="height:20px;"></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td><strong>Veículo:</strong></td>
|
||||
<td><strong>Cidade de Destino:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>De {{ $inicio }} até {{ $fim }}</td>
|
||||
<td>{{ $veiculo }}</td>
|
||||
<td>{{ $municipio }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de Destino:</strong></td>
|
||||
<td><strong>Motivo:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $destino }}</td>
|
||||
<td>{{ $motivo }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr>
|
||||
<td style="text-align:left">
|
||||
<strong>
|
||||
Total de paciente(s): {{ $total_paciente }}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left">
|
||||
<strong>
|
||||
Total de acompanhante(s): {{ $total_acompanhantes }}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left">
|
||||
<strong>
|
||||
Total de paciente(s) e acompanhante(s): {{ $total_paciente_acompanhante }}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<style>
|
||||
body {font-family: Helvetica, arial, sans-serif;}
|
||||
table {margin-bottom: 15px; clear: both;}
|
||||
p {margin:0; padding: 0;}
|
||||
.background-white { background: #fff!important}
|
||||
table.report-container {page-break-after: always;}
|
||||
.table-relatorio > thead > tr > th,
|
||||
.table-relatorio > tfoot > tr > th { text-align: center; }
|
||||
.col-min { width: 1%; }
|
||||
.text-center { text-align: center!important; }
|
||||
</style>
|
||||
@@ -0,0 +1,124 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() + 1 }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motorista:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_motorista }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_status }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
@foreach ($motorista as $motorista)
|
||||
<table class="table table-relatorio">
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="white-space: nowrap; text-align: center">
|
||||
Motorista: {{ $motorista['nome'] }}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@foreach ($consulta as $val)
|
||||
@if ($val['motorista_id'] == $motorista['id'])
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }}">{{ $val[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Totais:</strong>
|
||||
</td>
|
||||
@php $total_geral = 0; @endphp
|
||||
@foreach ($meses as $mes)
|
||||
@php $total_mes = 0; @endphp
|
||||
@foreach ($consulta as $val)
|
||||
@if ($val['motorista_id'] == $motorista['id'])
|
||||
@foreach ($colunas as $coluna)
|
||||
@if($coluna['label'] == $mes['mes_abreviado'] && $val[$coluna['key']])
|
||||
@php $total_mes = $total_mes + $val[$coluna['key']] @endphp
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
<td>{{ $total_mes }}</td>
|
||||
@php $total_geral = $total_geral + $total_mes @endphp
|
||||
@endforeach
|
||||
<td>{{ $total_geral }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endforeach
|
||||
|
||||
@if ($filtro_motorista == 'Todos')
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Totais</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($meses as $mes)
|
||||
<th>
|
||||
<strong>{{ $mes['mes'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
<th>
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
@foreach ($meses as $mes)
|
||||
<td>{{ $mes['total'] }}</td>
|
||||
@endforeach
|
||||
<td>{{ $total }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,93 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Município</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Motorista</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Destino</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }} à {{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motorista }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items['consulta'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th><strong>Agendado(s)</strong></th>
|
||||
<td>{{ $totalizadores['agendado'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Cancelado(s)</strong></th>
|
||||
<td>{{ $totalizadores['cancelado'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Falta(s)</strong></th>
|
||||
<td>{{ $totalizadores['faltou'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Transportado(s)</strong></th>
|
||||
<td>{{ $totalizadores['transportado'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Todos</strong></th>
|
||||
<td>{{ $totalizadores['geral'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,118 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motivo da viagem:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Cidade de destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motivo_viagem }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total Pacientes</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $total_paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total Acompanhantes</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $total_acompanhante }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total Pacientes + Acompanhantes</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $total_paciente_acompanhante }}
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@@ -0,0 +1,106 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_veiculo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_status }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($veiculos as $veiculo)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $veiculo[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio ">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas->splice(2) as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
@foreach ($colunasTotal as $coluna)
|
||||
<td>{{ $totais[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,80 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<strong>Quantidade = paciente + acompanhantes</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Quantidade</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>{{ $total_pacientes_acompanhantes }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user