211 lines
11 KiB
PHP
211 lines
11 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<br>(RM)</th>
|
|
<th>Penyata Pemenang</th>
|
|
<th class="text-center">Lakukan Bayaran Tunai</th>
|
|
<th>Status Bayaran</th>
|
|
<th>Kaedah 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['jenisbayaran'] != NULL)
|
|
{{-- {{ dump($winner['jenisbayaran'])}} --}}
|
|
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
|
<span class="badge badge-pill badge-dark">TUNAI</span>
|
|
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
|
<span class="badge badge-pill badge-primary">FPX</span>
|
|
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
|
<span class="badge badge-pill badge-secondary">CDM</span>
|
|
|
|
@endif
|
|
@else
|
|
-
|
|
@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="6"></td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{{-- //table cdm/ppx/tunai --}}
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col-6 mx-auto p-6">
|
|
<div class="card">
|
|
<div class="card-header header-style">
|
|
|
|
<div class="header-style-title">
|
|
Jumlah Kaedah Bayaran
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
<table class="table text-center table-bordered" id="tablekaunter" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Kaedah Bayaran</th>
|
|
<th>Bilangan SAG</th>
|
|
<th>Jumlah Bayaran (RM)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php $totalsurat = 0;
|
|
$totalbid = 0;
|
|
$totalpay = 0;
|
|
@endphp
|
|
<tr>
|
|
<td> 1 </td>
|
|
<td style='white-space:nowrap;' align='left'><span class="badge badge-pill badge-dark">TUNAI</span></td>
|
|
<td align='center'>{{$biltunai}}</td>
|
|
<td align='right'>{{ number_format($kaedah_tunai, 2, '.', ',') }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td> 2 </td>
|
|
<td style='white-space:nowrap;' align='left'><span class="badge badge-pill badge-primary">FPX</span></td>
|
|
<td align='center'>{{$bilfpx}}</td>
|
|
<td align='right'>{{ number_format($kaedah_fpx, 2, '.', ',') }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td> 3 </td>
|
|
<td style='white-space:nowrap;' align='left'><span class="badge badge-pill badge-secondary">CDM</span></td>
|
|
<td align='center'>{{$bilcdm}}</td>
|
|
<td align='right'>{{ number_format($kaedah_cdm, 2, '.', ',') }}</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2"><b>JUMLAH KESELURUHAN</b></td>
|
|
<td align='center'><b><b>{{$biltunai+$bilfpx+$bilcdm}}</b></td>
|
|
<td align='right'><b>{{ number_format($kaedah_tunai+$kaedah_fpx+$kaedah_cdm, 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 |