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

68 lines
2.9 KiB
PHP
Raw Permalink 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</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</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">Под наблюдением: {{ $observables['count'] }}</p>
@foreach ($observables['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) {{ $p['diagnosis'] }}.@endif<br>@if ($p['observable_reason']) {{ $p['observable_reason'] }}.@endif</p>
@endforeach
<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>