Files
lelong/resources/views/pembida/pembayaranbidaan.blade.php
T
2022-04-10 14:02:58 +08:00

118 lines
4.4 KiB
PHP

@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>
@endif
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Nama Pembida</th>
<th>No Kad Pengenalan</th>
<th>Bilangan Surat</th>
<th> Jumlah Bidaan (RM)</th>
<th> Amaun Telah Dibayar (RM)</th>
<th>Status Pembayaran</th>
<th>Remark</th>
<th>Status</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@foreach($listwinner as $winner)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $winner['details']['name'] }}</td>
<td>{{ $winner['details']['nokp'] }}</td>
<td>{{ $winner['total_surat'] }}</td>
<td>{{ $winner['totalBid'] }}</td>
<td>{{ $winner['totalPay'] }}</td>
<td>
@if($winner['status'] == 1)
<button class="btn btn-info btn-sm" disabled>FEE</button>
@elseif($winner['status'] == 2)
<button class="btn btn-info btn-sm" disabled>BIDAAN MENANG</button>
@endif
</td>
<td><button class="btn btn-info btn-sm" disabled>{{ $winner['remark'] }}</button></td>
<td>
@if($winner['sts_payment'] == 1)
<button class="btn btn-success btn-sm" disabled>BERJAYA</button>
@else
@endif
</td>
<td>
</tr>
@endforeach
</tbody>
</table>
<div class="modal-footer" style="margin-top:2%;">
<a href="{{ route('pembida.senlelpembayaranbidaan') }}" class="btn btn-primary">Kembali</a>
</div>
</div>
</div>
</div>
<script>
//Enable tooltips everywhere
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
var tablesenarailelongonline = $('#senarailelongonline').DataTable({
"columnDefs": [
{
"targets": 0,
"orderable": false
},
{
"targets": 7,
"orderable": false
}
],
order: [[1, '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