Tambah Function declare xlaku joybidder-temp
This commit is contained in:
@@ -40,6 +40,12 @@
|
||||
<input type="hidden" name="kodcaw" value="{{ $cawanganDetail->caw_code }}" />
|
||||
<input type="hidden" name="user_id" value="{{ $user_id }}" />
|
||||
<input type="hidden" name="senarai_sag" value="{{ $senaraisag }}" />
|
||||
<input type="hidden" name="jenis_button" value="terima" id="jenis_button" />
|
||||
<input type="hidden" name="nama_pembida" value="{{ $userdetails['name']}}" />
|
||||
<input type="hidden" name="nokp_pembida" value="{{ $userdetails['nokp'] }}" />
|
||||
<input type="hidden" name="notel_pembida" value="{{ $userdetails['notelbimbit'] }}" />
|
||||
<input type="hidden" name="kodcaw" value="{{ $caw_code }}" />
|
||||
|
||||
<table class="table table-bordered text-center" style="width:100%">
|
||||
{{-- <thead class="bg-primary text-white">
|
||||
<tr>
|
||||
@@ -127,7 +133,8 @@
|
||||
{{-- @if($sag['checking_payment'])
|
||||
<button type="button" class="btn btn-success" disabled>Berjaya Disahkan</button>
|
||||
@else --}}
|
||||
<button type="button" class="btn btn-success" onclick="confirm()" >Sahkan</button>
|
||||
<button type="button" class="btn btn-success" onclick="confirm(this)" id="sah">Sahkan</button>
|
||||
<button type="button" class="btn btn-danger" onclick="xsahconfirm(this)" id="tidaksah" >Tidak Sah</button>
|
||||
{{-- @endif --}}
|
||||
{{-- @endforeach --}}
|
||||
</div>
|
||||
@@ -163,6 +170,7 @@
|
||||
<script>
|
||||
|
||||
function confirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
@@ -172,9 +180,10 @@
|
||||
Sahkan: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
},
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
@@ -182,6 +191,33 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function xsahconfirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
TidakSah: {
|
||||
btnClass: 'btn-danger',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
}
|
||||
,
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
var tablekaunter = $('#tablekaunter').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
|
||||
@@ -35,6 +35,12 @@
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}" />
|
||||
<input type="hidden" name="user_id" value="{{ $user_id }}" />
|
||||
<input type="hidden" name="senarai_sag" value="{{ $senaraisag }}" />
|
||||
<input type="hidden" name="jenis_button" value="terima" id="jenis_button" />
|
||||
<input type="hidden" name="nama_pembida" value="{{ $userdetails['name']}}" />
|
||||
<input type="hidden" name="nokp_pembida" value="{{ $userdetails['nokp'] }}" />
|
||||
<input type="hidden" name="notel_pembida" value="{{ $userdetails['notelbimbit'] }}" />
|
||||
<input type="hidden" name="kodcaw" value="{{ $caw_code }}" />
|
||||
|
||||
<table class="table table-striped table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
{{-- <thead class="bg-primary text-white">
|
||||
<tr>
|
||||
@@ -124,7 +130,8 @@
|
||||
{{-- @if($sag['checking_payment'])
|
||||
<button type="button" class="btn btn-success" disabled>Berjaya Disahkan</button>
|
||||
@else --}}
|
||||
<button type="button" class="btn btn-success" onclick="confirm()" >Sahkan</button>
|
||||
<button type="button" class="btn btn-success" onclick="confirm(this)" id="sah">Sahkan</button>
|
||||
<button type="button" class="btn btn-danger" onclick="xsahconfirm(this)" id="tidaksah" >Tidak Sah</button>
|
||||
{{-- @endif --}}
|
||||
{{-- @endforeach --}}
|
||||
</div>
|
||||
@@ -160,6 +167,7 @@
|
||||
<script>
|
||||
|
||||
function confirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
@@ -169,6 +177,7 @@
|
||||
Sahkan: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
},
|
||||
@@ -179,6 +188,30 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function xsahconfirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
TidakSah: {
|
||||
btnClass: 'btn-danger',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
}
|
||||
,
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
var tablekaunter = $('#tablekaunter').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td class="text-left">
|
||||
<td class="text-left" style="white-space: nowrap;">
|
||||
@foreach($lel['detailsinfo'] as $details)
|
||||
<a href="{{ route('pembida.senaraipemenangbycaw', ['lelong_id'=>$lel['detail']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
||||
<span class="m-2"><b>{{ $details['caw_name']}}</b>
|
||||
@@ -267,11 +267,11 @@
|
||||
@if($winner['jenisbayaran'] != NULL)
|
||||
{{-- {{ dump($winner['jenisbayaran'])}} --}}
|
||||
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
||||
TUNAI
|
||||
<span class="badge badge-pill badge-dark">TUNAI</span>
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
||||
FPX
|
||||
<span class="badge badge-pill badge-primary">FPX</span>
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
||||
KAUNTER BANK/CDM
|
||||
<span class="badge badge-pill badge-secondary">CDM</span>
|
||||
|
||||
@endif
|
||||
@else
|
||||
@@ -291,15 +291,15 @@
|
||||
@forelse($details['listwinner'] as $winner)
|
||||
@if($winner['jenisbayaran'] != NULL)
|
||||
@if($winner['jenisbayaran']['disahkan_oleh'] != NULL)
|
||||
SELESAI
|
||||
<button class="btn btn-sm btn-success" disabled>SELESAI</button>
|
||||
@elseif($winner['jenisbayaran']['disahkan_oleh'] == NULL)
|
||||
TUNGGU PENGESAHAN
|
||||
<span class="badge badge-warning">TUNGGU PENGESAHAN</span>
|
||||
@else
|
||||
BELUM SELESAI
|
||||
<button class="btn btn-sm btn-danger" disabled>BELUM SELESAI</button>
|
||||
|
||||
@endif
|
||||
@else
|
||||
BELUM SELESAI
|
||||
<button class="btn btn-sm btn-danger" disabled>BELUM SELESAI</button>
|
||||
@endif
|
||||
<br>
|
||||
@empty
|
||||
|
||||
Reference in New Issue
Block a user