73 lines
2.2 KiB
PHP
73 lines
2.2 KiB
PHP
@extends('layouts.admin_master')
|
|
@section('content')
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
|
|
List Kunjungan Pasien
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th>Barcode</th>
|
|
<th>Registration Date</th>
|
|
<th>Service Date</th>
|
|
<th>Check In</th>
|
|
<th>Active</th>
|
|
<th>ID Dokter</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($dataVisit as $row)
|
|
<tr>
|
|
<td>{{ $row['barcode'] }}</td>
|
|
<td>{{ $row['registration_date'] }}</td>
|
|
<td>{{ $row['service_date'] }}</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>
|
|
<a href="#" class="btn btn-sm btn-info">Edit</a>
|
|
<a href="#" class="btn btn-sm btn-danger">Delete</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
@section('script')
|
|
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$('#dataTable').DataTable({
|
|
columnDefs: [
|
|
{bSortable: false, targets: [6]}
|
|
],
|
|
dom: 'lBfrtip',
|
|
|
|
});
|
|
</script>
|
|
@endsection |