Files
onboard/resources/views/reports/duty.blade.php

65 lines
2.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>{{ $title }}</title>
<style>
body { font-family: 'DejaVu Sans', sans-serif; font-size: 12px; color: #1f2430; line-height: 1.5; }
h1 { font-size: 14px; text-align: center; margin: 0 0 4px; }
.sub { text-align: center; margin: 0 0 16px; }
.label { font-weight: bold; margin: 10px 0 2px; }
.patient { margin: 2px 0 2px 12px; }
.signature { position: absolute }
</style>
</head>
<body>
<h1>{{ $title }}</h1>
<p class="sub">За «{{ $day }}» {{ $month }} {{ $year }} год.</p>
<p class="label">Плановые: {{ $planned['count'] }}</p>
@foreach ($planned['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) Д/З: {{ $p['diagnosis'] }}.@endif id = {{ $p['migration_id'] }}</p>
@endforeach
<p class="label">Экстренные: {{ $urgent['count'] }}</p>
@foreach ($urgent['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) Д/З: {{ $p['diagnosis'] }}.@endif id = {{ $p['migration_id'] }}</p>
@endforeach
<p class="label">В отделении состоит: {{ $inDepartment }}</p>
<p class="label">Плановых операций: {{ $plannedOperations['count'] }}</p>
@foreach ($plannedOperations['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.</p>
@endforeach
<p class="label">Экстренных операций: {{ $urgentOperations['count'] }}</p>
@foreach ($urgentOperations['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.</p>
@endforeach
<p class="label">Реанимация: {{ $reanimation['count'] }}</p>
@foreach ($reanimation['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) {{ $p['diagnosis'] }}.@endif</p>
@endforeach
<p class="label">Под наблюдением: {{ $observableCount }}</p>
<p class="label">Летальные исходы: {{ $deceased['count'] > 0 ? '' : 'не было.' }}</p>
@foreach ($deceased['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) {{ $p['diagnosis'] }}.@endif</p>
@endforeach
<div class="signature" style="left: 0; bottom: 30px;">
<div>
____________________________
</div>
</div>
<div class="signature" style="right: 0; bottom: 30px;">
<div>
____________________________
</div>
</div>
</body>
</html>