added function operasi can edit perubatan asal

This commit is contained in:
hafifierahman
2024-11-10 22:31:55 +08:00
parent c4388321aa
commit f59e0a4d4e
5 changed files with 76 additions and 9 deletions
@@ -26,7 +26,7 @@
<th scope="col">#</th>
<th scope="col">Nama</th>
<th scope="col">Baki Perubatan</th>
<th scope="col">Perubatan</th>
<th scope="col" style="width:15%;">Perubatan</th>
<th scope="col">Tindakan</th>
</tr>
</thead>
@@ -35,9 +35,9 @@
<tr>
<td>{{ ($paginate->currentPage() - 1) * $paginate->perPage() + $loop->index + 1 }}</td>
<td scope="col">{{ $page->name }}</td>
<td scope="col">{{ $page->perubatan }}</td>
<td scope="col">{{ number_format($page->perubatan,2) }}</td>
<td scope="col">
<input name="perubatan" id="input-{{ $page->id }}" class="" value="{{ $page->perubatan_asal }}" disabled/>
<input name="perubatan" id="input-{{ $page->id }}" class="form-control" value="{{ $page->perubatan_asal }}" disabled/>
</td>
<td>
<div id="divedit-{{ $page->id }}" class="d-block">
@@ -63,5 +63,8 @@
</div>
</div>
</div>
<script>
let updateurl = "{{ route('perubatan.update') }}";
</script>
<script src="{{ asset('js/perubatan.js') }}"></script>
@endsection