fix
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<div class="d-flex justify-content-between mb-2">
|
||||
<h5 class="mt-2">Senarai Permohonan Masih Aktif</h5>
|
||||
<div>
|
||||
<button class="btn btn-info" data-toggle="modal" data-target="#PermohonanWang">Mohon</button>
|
||||
<button class="btn btn-info" data-backdrop="static" data-keyboard="false" data-toggle="modal" data-target="#PermohonanWang">Mohon</button>
|
||||
<a class="btn btn-info" href="{{ route('permohonan.rekod') }}">Rekod Permohonan</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -64,17 +64,17 @@
|
||||
<td>{{ $mohon['tarikh_permohonan'] }}</td>
|
||||
<td>{{ number_format($mohon['amaun_mohon'],2) }}</td>
|
||||
<td>
|
||||
<a href="{{ route('permohonan.status', ['mohonid' => $mohon['mohonid']]) }}" class="btn btn-info"><i class="fas fa-eye"></i></a>
|
||||
<a href="{{ route('permohonan.status', ['mohonid' => $mohon['nopermohonan']]) }}" class="btn btn-info"><i class="fas fa-eye"></i></a>
|
||||
</td>
|
||||
<td>{{ $mohon['jenismohon'] }}</td>
|
||||
<td>
|
||||
@php
|
||||
if($mohon['tagdeposit'] === 1)
|
||||
{
|
||||
echo '<button data-mohonid="' . $mohon["mohonid"] . '" id="btnterima" class="btn btn-success"><i class="fas fa-check"></i></button>';
|
||||
echo '<button data-mohonid="' . $mohon["nopermohonan"] . '" id="btnterima" class="btn btn-success"><i class="fas fa-check"></i></button>';
|
||||
}else if(($mohon['tagcit'] === 0 && $mohon['jenismohon'] === 'bayaranbalik'))
|
||||
{
|
||||
echo '<button data-mohonid="' . $mohon["mohonid"] . '" id="btncit" class="btn btn-secondary" data-toggle="modal" data-target="#CITModal">CIT</button>';
|
||||
echo '<button data-mohonid="' . $mohon["nopermohonan"] . '" id="btncit" class="btn btn-secondary" data-toggle="modal" data-backdrop="static" data-keyboard="false" data-target="#CITModal">CIT</button>';
|
||||
}
|
||||
else{
|
||||
echo '<span class="p-2 badge badge-info">DALAM PROSES</span>';
|
||||
@@ -106,11 +106,14 @@
|
||||
$(this)
|
||||
.find("input[name='jumlahmohon']")
|
||||
.val('')
|
||||
.removeClass('is-invalid')
|
||||
.end()
|
||||
.find("input[type=checkbox], input[type=radio]")
|
||||
.prop("checked", "")
|
||||
.end();
|
||||
|
||||
$("#erroramaun").hide();
|
||||
$("#pilihper").hide();
|
||||
|
||||
})
|
||||
|
||||
@@ -135,6 +138,11 @@
|
||||
$("#erroramaun").show();
|
||||
// $("[name='erroramaun']").text("*Isikan amaun dalam input!");
|
||||
$("[name='jumlahmohon']").addClass('is-invalid');
|
||||
boolamaun = true;
|
||||
}else{
|
||||
$("#erroramaun").hide();
|
||||
$("[name='jumlahmohon']").removeClass('is-invalid');
|
||||
boolamaun = false;
|
||||
}
|
||||
|
||||
if(!jenis)
|
||||
@@ -143,7 +151,7 @@
|
||||
|
||||
booljenis = true;
|
||||
}else{
|
||||
$("pilihper").hide();
|
||||
$("#pilihper").hide();
|
||||
|
||||
booljenis = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user