133 lines
6.6 KiB
PHP
133 lines
6.6 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="{{ route('pembayaran.SenaraiLelongBayar') }}" class="header-style-icon">
|
|
<i class="fas fa-arrow-left"></i>
|
|
</a>
|
|
<div class="header-style-title">
|
|
Senarai Bayaran Pemenang : @foreach($datacaw as $data1)
|
|
{{$data1['caw_name']}}
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@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
|
|
<table class="table text-center table-bordered" 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>Penyata Pemenang</th>
|
|
<th class="text-center">Lakukan Bayaran Tunai</th>
|
|
<th>Status Bayaran</th>
|
|
<th>Maklumat Bayaran</th>
|
|
<th>Slip Serahan Marhun</th>
|
|
{{-- <th>Resit Pembayaran</th> --}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php $totalsurat = 0;
|
|
$totalbid = 0;
|
|
$totalpay = 0;
|
|
@endphp
|
|
@foreach($listwinner as $winner)
|
|
<tr>
|
|
<td> {{ $loop->iteration }} </td>
|
|
<td style='white-space:nowrap;' 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 align="center">
|
|
<a class="btn btn-warning" 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 class="btn btn-primary" href=" {{ route('pembayaran.SAGBidItem', ['user_id'=>$winner['details']['id'], 'lelong_id'=>$lelong_id]) }} " data-toggle="tooltip" data-placement="top" title="Buat Pembayaran"><i class="far fa-edit"></i></a>
|
|
</td>
|
|
<td>
|
|
@if($winner['sts_payment'] == 2)
|
|
<button class="btn btn-warning" disabled>TUNGGU PENGESAHAN</button>
|
|
@elseif($winner['sts_payment'] == 1)
|
|
<button class="btn btn-success" disabled>SELESAI</button>
|
|
@else
|
|
<button class="btn btn-danger" disabled>BELUM BAYAR</button>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if($winner['sts_payment'] == 1)
|
|
<a href="{{ route('report.detailsbayaran', [ $lelong_id, 'user_id'=>$winner['details']['id'], $datacaw[0]->caw_code ]) }}" class="btn btn-warning" data-toggle="tooltip" data-placement="top" title="Butiran Bayaran"><i class="far fa-list-alt"></i></a>
|
|
@endif
|
|
</td>
|
|
|
|
<td align="center">
|
|
<a class="btn m-1 btn-success" 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>
|
|
</tr>
|
|
@php
|
|
$totalsurat += $winner['total_surat'];
|
|
$totalbid += $winner['totalBid'];
|
|
$totalpay += $winner['totalPay'];
|
|
@endphp
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4"><b>JUMLAH KESELURUHAN</b></td>
|
|
<td align='center'><b><b>{{$totalsurat}}</b></td>
|
|
<td align='center'><b>{{ number_format($totalbid, 2, '.', ',') }}</b></td>
|
|
<td colspan="5"></td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(function() {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
var tablekaunter = $('#tablekaunter').DataTable({
|
|
"columnDefs": [{
|
|
"targets": 6,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 7,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 8,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 9,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 10,
|
|
"orderable": false
|
|
}
|
|
],
|
|
});
|
|
</script>
|
|
|
|
@endsection |