85 lines
1.8 KiB
PHP
85 lines
1.8 KiB
PHP
<table>
|
|
<tr>
|
|
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
|
RELATÓRIO DE PLANTÃO
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<strong>Período de:</strong>
|
|
</td>
|
|
<td>
|
|
<strong>Até: </strong>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{{ $params['periodo']['date']['start'] }}
|
|
|
|
@if (!empty($params['periodo']['time']['start']))
|
|
as {{ $params['periodo']['time']['start'] }}
|
|
@endif
|
|
</td>
|
|
<td>
|
|
{{ $params['periodo']['date']['end'] }}
|
|
|
|
@if (!empty($params['periodo']['time']['end']))
|
|
as {{ $params['periodo']['time']['end'] }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<strong>Unidade:</strong>
|
|
</td>
|
|
<td>
|
|
<strong>Local de atendimento:</strong>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{{ $params['unidade'] }}
|
|
</td>
|
|
<td>
|
|
{{ $params['local_atendimento'] }}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<strong>Especialidade:</strong>
|
|
</td>
|
|
<td>
|
|
<strong>Profissional:</strong>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{{ $params['especialidade'] }}
|
|
</td>
|
|
<td>
|
|
{{ $params['profissional'] }}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
@foreach($params['columns'] as $coluna)
|
|
<th>{{ $coluna['label'] }}</th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach ($plantoes as $plantao)
|
|
<tr>
|
|
@foreach($params['columns'] as $coluna)
|
|
<td>{{ $plantao[$coluna['key']] }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table> |