halaman list kunjungan pasien

This commit is contained in:
person-programmer
2025-12-02 13:37:51 +07:00
parent 1430a21ef5
commit 269ded5178
3 changed files with 26 additions and 12 deletions
+1 -2
View File
@@ -96,9 +96,8 @@ $json = json_decode(file_get_contents('http://10.10.123.135:8081/api/v1/visit'),
"dokter"=>$_POST{'dokter'}] "dokter"=>$_POST{'dokter'}]
]; ];
echo json_encode($arrResult);
//return view('manajemen_pasien.berhasil_daftar_pasien'); return view('manajemen_pasien.berhasil_daftar_pasien', compact('arrResult'));
} }
} }
@@ -0,0 +1,3 @@
<?php
echo json_encode($arrResult);
?>
@@ -15,27 +15,39 @@
<th>Service Date</th> <th>Service Date</th>
<th>Check In</th> <th>Check In</th>
<th>Active</th> <th>Active</th>
<th>Nama Dokter</th> <th>ID Dokter</th>
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach($dataVisit as $row)
<tr> <tr>
<td>dummy</td> <td>{{ $row['barcode'] }}</td>
<td>dummy</td> <td>{{ $row['registration_date'] }}</td>
<td>dummy</td> <td>{{ $row['service_date'] }}</td>
<td>dummy</td> @if(isset($row['check_in']))
<td>{{ $row['check_in'] }}</td>
@endif
@if(isset($row['check_in_date']))
<td>{{ $row['check_in_date'] }}</td>
@endif
<td>{{ $row['active'] }}</td>
@if(isset($row['fk_ms_doctor_id']))
<td>{{ $row['fk_ms_doctor_id'] }}</td>
@else
<td></td>
@endif
<td>dummy</td>
<td>dummy</td>
<td> <td>
<a href="#" class="btn btn-sm btn-info">Edit</a> <a href="#" class="btn btn-sm btn-info">Edit</a>
<a href="#" class="btn btn-sm btn-danger">Delete</a> <a href="#" class="btn btn-sm btn-danger">Delete</a>
</td> </td>
</tr> </tr>
@endforeach
</tbody> </tbody>
</table> </table>