|
@@ -18,7 +18,6 @@
|
|
|
<th>HCP</th>
|
|
|
<th>Ally</th>
|
|
|
<th>Reason(s)</th>
|
|
|
-<th>Content</th>
|
|
|
<th>Ally Signed?</th>
|
|
|
<th>HCP Signed?</th>
|
|
|
<th>Billed?</th>
|
|
@@ -29,15 +28,10 @@
|
|
|
<tr>
|
|
|
<td><a href="/notes/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
|
|
|
<td><?= $record->effective_dateest ?></td>
|
|
|
-<td><?php $_r = \Illuminate\Support\Facades\DB::select("select name_display as result FROM client WHERE id = " . ($record->client_id ? $record->client_id : -1) . "");
|
|
|
-echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td>
|
|
|
-<td><?php $_r = \Illuminate\Support\Facades\DB::select("select name_display as result FROM pro WHERE id = " . ($record->hcp_pro_id ? $record->hcp_pro_id : -1) . "");
|
|
|
-echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td>
|
|
|
-<td><?php $_r = \Illuminate\Support\Facades\DB::select("select name_display as result FROM pro WHERE id = " . ($record->ally_pro_id ? $record->ally_pro_id : -1) . "");
|
|
|
-echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td>
|
|
|
-<td><?php $_r = \Illuminate\Support\Facades\DB::select("select concat(reason1,reason2) as result FROM note WHERE id = " . ($record->id ? $record->id : -1) . "");
|
|
|
-echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td>
|
|
|
-<td><?= $record->content_text ?></td>
|
|
|
+<td><?= value_from_rs($result_clients, 'name_display', [['id', '=', $record->client_id], ], 'all'); ?></td>
|
|
|
+<td><?= value_from_rs($result_pros, 'name_display', [['id', '=', $record->hcp_pro_id], ], 'all'); ?></td>
|
|
|
+<td><?= value_from_rs($result_pros, 'name_display', [['id', '=', $record->ally_pro_id], ], 'all'); ?></td>
|
|
|
+<td><?= value_from_rs($result_reasons, 'result', [['id', '=', $record->id], ], 'all'); ?></td>
|
|
|
<td><?= $record->is_signed_by_ally ?></td>
|
|
|
<td><?= $record->is_signed_by_hcp ?></td>
|
|
|
<td><?php $_r = \Illuminate\Support\Facades\DB::select("SELECT '-- TODO --' as result");
|