|
@@ -1,7 +1,7 @@
|
|
|
<script>
|
|
|
window.noteReasons = [];
|
|
|
- @if(count($note->reasons))
|
|
|
- @foreach($note->reasons as $reason)
|
|
|
+ @if(count($note->reasons()))
|
|
|
+ @foreach($note->reasons() as $reason)
|
|
|
window.noteReasons.push({
|
|
|
code: '{{$reason->code}}',
|
|
|
description: '{{$reason->description}}'
|
|
@@ -22,8 +22,8 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- @if(count($note->reasons))
|
|
|
- @foreach($note->reasons as $reason)
|
|
|
+ @if(count($note->reasons()))
|
|
|
+ @foreach($note->reasons() as $reason)
|
|
|
<tr class="data-row">
|
|
|
<td><input type="text" class="form-control note-reason-icd" data-index="{{$loop->index}}" id="icd_{{$loop->index}}" name="noteReasonDTOs[{{$loop->index}}].code" value="{{$reason->code}}"></td>
|
|
|
<td><input type="text" class="form-control note-reason-description" data-index="{{$loop->index}}" id="description_{{$loop->index}}" name="noteReasonDTOs[{{$loop->index}}].description" value="{{$reason->description}}"></td>
|