|
@@ -51,35 +51,38 @@
|
|
|
</section>
|
|
|
|
|
|
<?php $clinical = json_decode($prescription->clinical_detail_json); ?>
|
|
|
-<div style="margin: 1.5rem 0 1rem; font-weight: bold; opacity: 0.5"><span style="font-size: 24px">R</span><span style="font-size: 16px">x</span></div>
|
|
|
-<section style="font-size: 15px;">
|
|
|
- <?php $count = 0; ?>
|
|
|
- <?php foreach ($clinical->items as $item): ?>
|
|
|
- <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; margin-bottom: 5pt">
|
|
|
- <tr>
|
|
|
- <td style="width: 20px; vertical-align: top; opacity: 0.75; font-size: 14px">
|
|
|
- <span>{{ ++$count }}. </span>
|
|
|
- </td>
|
|
|
- <td style="vertical-align: top">
|
|
|
- <div>
|
|
|
- <p style="margin: 0">
|
|
|
- <b>{{ $item->medication }}</b>
|
|
|
- </p>
|
|
|
- <div style="">
|
|
|
- @if(@$item->frequency)
|
|
|
- <p style="margin: 0.5rem 0;">Frequency: {{ $item->frequency }}</p>
|
|
|
- @endif
|
|
|
- @if(@$item->dispense)
|
|
|
- <p style="margin: 0.5rem 0;">Dispense: {{ $item->dispense }}</p>
|
|
|
- @endif
|
|
|
- @if(@$item->refills)
|
|
|
- <p style="margin: 0.5rem 0;">Refills: {{ $item->refills }}</p>
|
|
|
- @endif
|
|
|
+<?php if($clinical && @$clinical->items): ?>
|
|
|
+ <div style="margin: 1.5rem 0 1rem; font-weight: bold; opacity: 0.5"><span style="font-size: 24px">R</span><span style="font-size: 16px">x</span></div>
|
|
|
+ <section style="font-size: 15px;">
|
|
|
+ <?php $count = 0; ?>
|
|
|
+ <?php foreach ($clinical->items as $item): ?>
|
|
|
+ <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; margin-bottom: 5pt">
|
|
|
+ <tr>
|
|
|
+ <td style="width: 20px; vertical-align: top; opacity: 0.75; font-size: 14px">
|
|
|
+ <span>{{ ++$count }}. </span>
|
|
|
+ </td>
|
|
|
+ <td style="vertical-align: top">
|
|
|
+ <div>
|
|
|
+ <p style="margin: 0">
|
|
|
+ <b>{{ $item->medication }}</b>
|
|
|
+ </p>
|
|
|
+ <div style="">
|
|
|
+ @if(@$item->frequency)
|
|
|
+ <p style="margin: 0.5rem 0;">Frequency: {{ $item->frequency }}</p>
|
|
|
+ @endif
|
|
|
+ @if(@$item->dispense)
|
|
|
+ <p style="margin: 0.5rem 0;">Dispense: {{ $item->dispense }}</p>
|
|
|
+ @endif
|
|
|
+ @if(@$item->refills)
|
|
|
+ <p style="margin: 0.5rem 0;">Refills: {{ $item->refills }}</p>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <?php endforeach; ?>
|
|
|
-</section>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </section>
|
|
|
+<?php endif; ?>
|
|
|
+
|
|
|
|