add senarai pemenang page operasi table paydenokaunter
This commit is contained in:
@@ -261,7 +261,63 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(count($arrayinfomenang)> 0)
|
||||
SENARAI PEMENANG BIDAAN MENGIKUT CAWANGAN
|
||||
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Lelong</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Status Export</th>
|
||||
<th>Harga Emas Semasa</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Status Lelong</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($arrayinfomenang as $lel)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $lel['detail']['lelong_id']}}</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['detail']['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td class="text-left">
|
||||
@foreach($lel['detailsinfo'] as $details)
|
||||
<a href=" {{ route('pembida.kaunterpembayaran', ['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">{{ $details['caw_name']}}
|
||||
</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td class="text-left">
|
||||
@foreach($lel['detailsinfo'] as $details)
|
||||
<span class="m-2"> @if($details['export_data_sts'] == '1')
|
||||
<i class="far fa-flag"></i> Selesai Export
|
||||
|
||||
@endif
|
||||
|
||||
</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>{{ $lel['detail']['harga_emas_asas'] }}</td>
|
||||
<td>{{ $lel['detail']['jbg'] }}</td>
|
||||
<td>{{ $lel['detail']['cajlelong'] }}</td>
|
||||
<td>
|
||||
@if($lel['detail']['sts_lelong'] == 3)
|
||||
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@endhasrole
|
||||
@hasrole('account')
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
</div>
|
||||
<h4> Senarai Pemenang </h4>
|
||||
<table class="table table-striped table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>No Kad Pengenalan</th>
|
||||
<th>No Telefon</th>
|
||||
<th>Bilangan Surat</th>
|
||||
<th>Jumlah Bidaan(RM)</th>
|
||||
<th>Amaun Telah Dibayar(RM)</th>
|
||||
<th>Status Bayaran</th>
|
||||
{{-- <th>Penyata Bayaran</th>
|
||||
<th>Slip Serahan</th>
|
||||
<th>Resit Pembayaran</th> --}}
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($listwinner as $winner)
|
||||
<tr>
|
||||
<td> {{ $loop->iteration }} </td>
|
||||
<td align = 'left'>{{ $winner['details']['name']}}</td>
|
||||
<td>{{ $winner['details']['nokp']}}</td>
|
||||
<td>{{ $winner['details']['notelbimbit']}}</td>
|
||||
<td>{{ $winner['total_surat']}}</td>
|
||||
<td>{{ number_format($winner['totalBid'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($winner['totalPay'], 2, '.', ',')}}</td>
|
||||
<td>
|
||||
@if($winner['totalPay'] < $winner['totalBid'])
|
||||
<button class="btn btn-danger btn-sm" disabled>BELUM SELESAI</button>
|
||||
@elseif($winner['totalPay'] == $winner['totalBid'])
|
||||
<button class="btn btn-success btn-sm" disabled>SELESAI</button>
|
||||
@endif
|
||||
</td>
|
||||
{{-- <td>
|
||||
<a href="{{ route('serahan.penyatabayaran',['user_id'=>$winner['details']['id'],'lelong_id'=>$lelong_id]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Penyata Bayaran" ><i class="fas fa-download"></i></a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="{{ route('serahan.slipserahan',['user_id'=>$winner['details']['id'],'lelong_id'=>$lelong_id]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Slip Serahan" ><i class="fas fa-download"></i></a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href=" {{ route('serahan.resit', ['user_id'=>$winner['details']['id'], 'lelong_id'=>$lelong_id]) }} " data-toggle="tooltip" data-placement="top" title="Resit Pembayaran"><i class="far fa-edit"></i></a>
|
||||
</td> --}}
|
||||
|
||||
|
||||
<td>
|
||||
<a href=" {{ route('pembida.SAGBidItembycaw', ['user_id'=>$winner['details']['id'], 'lelong_id'=>$lelong_id, 'kodcaw'=>$kodcaw]) }} " data-toggle="tooltip" data-placement="top" title="Buat Pembayaran"><i class="far fa-edit"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
{{-- <a href="{{ route('pembayaran.SenaraiLelongBayar') }}" class="btn btn-primary">Kembali</a> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
var tablekaunter = $('#tablekaunter').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 8,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 9,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 10,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[0, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
// buttons: [
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addcaw',
|
||||
// text: '<i class="fas fa-plus" id="test"></i>',
|
||||
// titleAttr: 'Tambah Cawangan',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// // alert( 'Button activated' );
|
||||
// // console.log('hye');
|
||||
|
||||
// $('#myModal').modal("show");
|
||||
// $('#myModal').on('shown.bs.modal', function () {
|
||||
// $('#rolename').trigger('focus')
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Export to CSV',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
});
|
||||
|
||||
// $('.addcaw').tooltip();
|
||||
// $('.export').tooltip();
|
||||
// // $( '.dt-buttons').addClass('btn-group');
|
||||
// $( '.addcaw').removeClass('dt-button');
|
||||
// $( '.export').removeClass('dt-button');
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -72,10 +72,8 @@
|
||||
<td align = 'right'>{{ number_format($marhun['pinjaman'] , 2, '.', ',') }}</td>
|
||||
<td align = 'right'>{{ number_format($marhun['bakiupah'], 2, '.', ',') }}</td>
|
||||
<td align = 'right'>{{ number_format($marhun['cajlelong'], 2, '.', ',') }}</td>
|
||||
{{-- {{dd($marhun['norujukan'])}} --}}
|
||||
@php
|
||||
|
||||
|
||||
|
||||
if(strpos($marhun['baki'], '-') !== false)
|
||||
{
|
||||
$rugi = $marhun['baki'];
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
<input type="hidden" name="user_id" value="{{ $user_id }}" />
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}" />
|
||||
<input type="hidden" name="eachbid[]" id="eachbid" value="" />
|
||||
<input type="text" name="norujukan[]" id="norujukan" value="" />
|
||||
<input type="hidden" name="norujukan[]" id="norujukan" value="" />
|
||||
|
||||
<div class="modal-content">
|
||||
<div class="modal-header justify-content-center" style="text-align: center;">
|
||||
|
||||
@@ -82,9 +82,9 @@
|
||||
<button type="button" class="btn btn-success" onclick="confirmsah()" >Benarkan Bayaran Tunai</button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
{{-- <div>
|
||||
<a href="{{ route('pembida.kebenaranbayarantunai' ) }}" class="btn btn-primary" style="width:15%; margin-right:53%;">Kembali</a>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user