120 lines
4.8 KiB
PHP
120 lines
4.8 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col">
|
|
<div class="card">
|
|
<div class="card-header header-style">
|
|
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
|
<i class="fas fa-arrow-left"></i>
|
|
</a>
|
|
<div class="header-style-title">
|
|
Senarai Bayaran Atas Talian <i class="fas fa-caret-right"></i> {{ $getkodcaw['caw_name'] }}
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<div class="mb-3">
|
|
<a href="{{ route('account.listpengesahanakaun',[$lelong_id,'kodcaw'=>$kodcaw]) }}" class="btn btn-success"><i class="fas fa-list"></i>Laporan Pengesahan</a>
|
|
</div>
|
|
<table class="table table-bordered text-center" id="sahsagonline" 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 Pembayaran (RM)</th>
|
|
<th>Jumlah Bidaan (RM)</th>
|
|
<th class="text-center">Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($listwinner as $winner)
|
|
<tr>
|
|
<td> {{ $loop->iteration }} </td>
|
|
<td class="text-left">{{ $winner['details']['name']}}</td>
|
|
<td>{{ $winner['details']['nokp']}}</td>
|
|
<td>{{ $winner['details']['notelbimbit']}}</td>
|
|
<td>{{ $winner['total_surat']}}</td>
|
|
<td>{{ number_format($winner['totalPay'], 2, '.', ',')}}</td>
|
|
<td>{{ number_format($winner['totalBid'], 2, '.', ',')}}</td>
|
|
<td>
|
|
<a href=" {{ route('account.sahsagonline', ['user_id'=>$winner['details']['id'], 'lelong_id'=>$lelong_id, 'caw_code'=>$kodcaw]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
{{-- <div class="modal-footer" style="margin-top:2%;">
|
|
<a href="{{ route('account.senarailelongan') }}" class="btn btn-primary">Kembali</a>
|
|
</div>
|
|
</div>
|
|
</div> --}}
|
|
</div>
|
|
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
|
|
var tablesahsagonline = $('#sahsagonline').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 7,
|
|
"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
|
|
|