This commit is contained in:
hafifierahman
2021-10-03 10:29:42 +08:00
parent 872e83b1dd
commit 2cf211215c
+27 -5
View File
@@ -131,10 +131,17 @@
cursor: pointer;
}
.btn-sub:disabled{
background-color: #8AA1B1; /* Green */
color: white;
cursor: pointer;
}
.tablebayaran{
margin-left:auto;
margin-right:auto;
border-spacing:10px;
text-align: center;
}
input[type=text] {
@@ -277,14 +284,15 @@
<tr>
<th>Norujukan</th>
<th>Pembiayaan</th>
<th>Jumlah Pembiayaan</th>
<th></th>
<th>Keuntungan</th>
<th>Bayaran</th>
</tr>
<tr>
<td><input type="checkbox" name="chkboxnorujukan"/>{{ $gad['norujukan'] }}</td>
<td><input type="checkbox" name="chkboxnorujukan" value="{{ $gad['norujukan'] }}" onclick="funccheck(this)" id="chkboxnr"/>{{ $gad['norujukan'] }}</td>
<td><span>{{ number_format($gad['bakihargajualan'],2) }}</span></td>
<td><input type="text"/></td>
<td><button type="submit" class="btn-sub">Bayar</button></td>
<td><span>{{ number_format($gad['bakiupah'],2) }}</span></td>
<td><input type="text" name="txtbayar" readonly/></td>
<td><button type="submit" class="btn-sub" disabled>Bayar</button></td>
</tr>
</table>
@@ -293,6 +301,20 @@
</div>
<script>
function funccheck(e)
{
var check = document.getElementById("chkboxnr").checked;
if(check === true)
{
}else{
console.log('false');
}
}
</script>
</page>
</body>