108 lines
4.7 KiB
PHP
108 lines
4.7 KiB
PHP
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<table class="table">
|
|
<tr>
|
|
<td>Nama</td>
|
|
<td>: {{ $pasien->name }}</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td>Alamat</td>
|
|
<td>: {{ $pasien->Alamat }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<table class="table">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Kode</th>
|
|
<th>Gejala</th>
|
|
<th>#</th>
|
|
</tr>
|
|
|
|
@foreach ($gejala as $item)
|
|
|
|
@php
|
|
$cek = App\Models\Diagnosa::whereGejalaId($item->id)->wherePasienId(session()->get('pasien_id'))->first();
|
|
@endphp
|
|
|
|
@if ($cek == false)
|
|
|
|
<script>
|
|
var data = <?php echo json_encode($gejelaTerpilih); ?>;
|
|
console.log(data);
|
|
</script>
|
|
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $item->kode_gejala }}</td>
|
|
<td>{{ $item->name }}</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-info">Pilih</button>
|
|
<button type="button" class="btn btn-info dropdown-toggle dropdown-icon" data-toggle="dropdown" aria-expanded="false">
|
|
<span class="sr-only">Toggle Dropdown</span>
|
|
</button>
|
|
<div class="dropdown-menu" role="menu" style="">
|
|
<a class="dropdown-item" href="/admin/diagnosa/pilih?gejala_id={{ $item->id }}&nilai=0.2">Tidak Tahu</a>
|
|
<a class="dropdown-item" href="/admin/diagnosa/pilih?gejala_id={{ $item->id }}&nilai=0.4">Tidak Yakin</a>
|
|
<a class="dropdown-item" href="/admin/diagnosa/pilih?gejala_id={{ $item->id }}&nilai=0.6">Cukup Yakin</a>
|
|
<a class="dropdown-item" href="/admin/diagnosa/pilih?gejala_id={{ $item->id }}&nilai=0.8">Yakin</a>
|
|
<a class="dropdown-item" href="/admin/diagnosa/pilih?gejala_id={{ $item->id }}&nilai=1">Sangat Yakin</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6">
|
|
<table class="table">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Kode</th>
|
|
<th>Gejala</th>
|
|
<th>#</th>
|
|
</tr>
|
|
|
|
@foreach ($gejelaTerpilih as $item)
|
|
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $item->gejala->kode_gejala }}</td>
|
|
<td>{{ $item->gejala->name }}</td>
|
|
<td>
|
|
<a href="/admin/diagnosa/hapus-gejala?gejala_id={{ $item->gejala_id }}" class="btn btn-danger btn-sm"><i class="fas fa-times"></i></a>
|
|
</td>
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
<a href="/admin/diagnosa/proses" class="btn btn-primary btn-block"><i class="fas fa-circle"></i> Diagnosa</a>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|