add Laporan Bayaran Online Lelongan (akaun)
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header header-style">
|
||||
<div class="header-style-title">
|
||||
Laporan bayaran online lelongan
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-bordered text-center" id="tablenotislelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Batch Lelong</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
{{-- <th>Fasa</th> --}}
|
||||
<th>Cawangan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($arraydetails as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['brg']['lelong_id']}}</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['brg']['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
{{-- <td>{{ $laporan['brg']['fasa']}}</td> --}}
|
||||
<td align="left">
|
||||
@foreach($laporan['detailsbrg'] as $details)
|
||||
<a class="btn m-1 btn-danger" href=" {{ route('account.laporanakaundetail', ['lelong_id'=>$laporan['brg']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun"><i class="far fa-edit"></i></a>
|
||||
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{ $details['caw_name']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
var tablenotislelong = $('#tablenotislelong').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 3,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,182 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="{{ route('account.laporanakaun') }}" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
Laporan bayaran online lelongan: {{ $cawanganDetail->caw_name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
Batch Lelong: {{$lelong_id}} <br>
|
||||
Tarikh Lelong: @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelonglel->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp
|
||||
</div>
|
||||
<form id="exportpdf" action="{{route('account.laporanakaundetailexport')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id}}">
|
||||
<input type="hidden" name="kodcaw" value="{{ $cawanganDetail->caw_code}}">
|
||||
<table class='table text-center table-bordered table-hover' id="tablelelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Pemenang</th>
|
||||
<th>Jumlah Bidaan(RM)</th>
|
||||
<th>Caj(RM)</th>
|
||||
<th>Jumlah Bayaran(RM)</th>
|
||||
<th>Jenis Bayaran</th>
|
||||
<th>Billplz ID</th>
|
||||
<th>Tarikh/Masa</th>
|
||||
<th>Status Bayaran</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$totalbidaan = 0;
|
||||
$totalcaj = 0;
|
||||
$totalbayaran = 0;
|
||||
@endphp
|
||||
@forelse($listwinner as $winner)
|
||||
@php
|
||||
$totalbidaan += $winner['totalPay'];
|
||||
$totalcaj += 1;
|
||||
$totalbayaran = $totalbidaan + $totalcaj;
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td align = 'left' style='text-transform: uppercase'>{{ $winner['details']['name'] }}</td>
|
||||
<td>{{ number_format($winner['totalPay'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format(1, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($winner['totalPay']+1, 2, '.', ',') }}</td>
|
||||
<td> @if($winner['jenisbayaran'] != NULL)
|
||||
{{-- {{ dump($winner['jenisbayaran'])}} --}}
|
||||
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
||||
TUNAI
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
||||
FPX
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
||||
KAUNTER BANK/CDM
|
||||
|
||||
@endif
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $winner['billplz_id']}}</td>
|
||||
<td>{{ $winner['paid_at']}}</td>
|
||||
<td> @if($winner['jenisbayaran'] != NULL)
|
||||
@if($winner['jenisbayaran']['disahkan_oleh'] != NULL)
|
||||
SELESAI
|
||||
@elseif($winner['jenisbayaran']['disahkan_oleh'] == NULL)
|
||||
TUNGGU PENGESAHAN
|
||||
@else
|
||||
BELUM SELESAI
|
||||
@endif
|
||||
@else
|
||||
BELUM SELESAI
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="8">No Data</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td><b>{{ number_format($totalbidaan, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($totalcaj, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($totalbayaran, 2, '.', ',') }}</b></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
|
||||
var tablelelong = $('#tablelelong').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 4,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[0, 'asc']],
|
||||
// "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
{
|
||||
className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
target: "_blank",
|
||||
titleAttr: 'Export to Excel',
|
||||
text: '<h8><b>EXCEL</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('excel');
|
||||
$("#exportpdf").submit();
|
||||
// window.open("_blank");
|
||||
}
|
||||
},
|
||||
{
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Export to PDF',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('pdf');
|
||||
$("#exportpdf").submit();
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// $('.addsim').tooltip();
|
||||
// $('.export').tooltip();
|
||||
// // $( '.dt-buttons').addClass('btn-group');
|
||||
// $( '.addsim').removeClass('dt-button');
|
||||
// $( '.export').removeClass('dt-button');
|
||||
|
||||
// function selectall(cb) {
|
||||
// tablelelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
// $(this).prop('checked', cb.checked);
|
||||
// })
|
||||
// }
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -38,7 +38,7 @@
|
||||
@forelse($listwinner as $winner)
|
||||
<tr>
|
||||
<td> {{ $loop->iteration }} </td>
|
||||
<td class="text-left">{{ $winner['details']['name']}}</td>
|
||||
<td class="text-left" style='text-transform: uppercase'>{{ $winner['details']['name']}}</td>
|
||||
<td>{{ $winner['details']['nokp']}}</td>
|
||||
<td>{{ $winner['details']['notelbimbit']}}</td>
|
||||
<td>{{ $winner['total_surat']}}</td>
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||
<style>
|
||||
|
||||
.letter{
|
||||
font-family:'Times New Roman', Times, serif;
|
||||
|
||||
}
|
||||
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
|
||||
}
|
||||
|
||||
.first-prgph{
|
||||
|
||||
float: left;
|
||||
width: 10%;
|
||||
padding: 2px;
|
||||
}
|
||||
.first-prgph1{
|
||||
|
||||
float: left;
|
||||
width: 30%;
|
||||
padding-left: 50px;
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
.name{
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div class = "letter">
|
||||
<div class="first-prgph1">
|
||||
Batch Lelong: {{$lelong_id}} <br>
|
||||
Tarikh Lelong: @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelonglel->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp
|
||||
Cawangan: {{ $cawanganDetail->caw_name }}
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
|
||||
<table width="100%" height="168" id="customers">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Pemenang</th>
|
||||
<th>Jumlah Bidaan(RM)</th>
|
||||
<th>Caj(RM)</th>
|
||||
<th>Jumlah Bayaran(RM)</th>
|
||||
<th>Jenis Bayaran</th>
|
||||
<th>Billplz ID</th>
|
||||
<th>Tarikh/Masa</th>
|
||||
<th>Status Bayaran</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$totalbidaan = 0;
|
||||
$totalcaj = 0;
|
||||
$totalbayaran = 0;
|
||||
@endphp
|
||||
@forelse($listwinner as $winner)
|
||||
@php
|
||||
$totalbidaan += $winner['totalPay'];
|
||||
$totalcaj += 1;
|
||||
$totalbayaran = $totalbidaan + $totalcaj;
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td align = 'left' style='text-transform: uppercase'>{{ $winner['details']['name'] }}</td>
|
||||
<td>{{ number_format($winner['totalPay'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format(1, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($winner['totalPay']+1, 2, '.', ',') }}</td>
|
||||
<td> @if($winner['jenisbayaran'] != NULL)
|
||||
{{-- {{ dump($winner['jenisbayaran'])}} --}}
|
||||
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
||||
TUNAI
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
||||
FPX
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
||||
KAUNTER BANK/CDM
|
||||
|
||||
@endif
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $winner['billplz_id']}}</td>
|
||||
<td>{{ $winner['paid_at']}}</td>
|
||||
<td> @if($winner['jenisbayaran'] != NULL)
|
||||
@if($winner['jenisbayaran']['disahkan_oleh'] != NULL)
|
||||
SELESAI
|
||||
@elseif($winner['jenisbayaran']['disahkan_oleh'] == NULL)
|
||||
TUNGGU PENGESAHAN
|
||||
@else
|
||||
BELUM SELESAI
|
||||
@endif
|
||||
@else
|
||||
BELUM SELESAI
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="8">No Data</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td><b>{{ number_format($totalbidaan, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($totalcaj, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($totalbayaran, 2, '.', ',') }}</b></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
var table2excel = new Table2Excel();
|
||||
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
||||
setTimeout(function(){ window.close() }, 10);
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@@ -635,6 +635,35 @@
|
||||
Status Pembayaran Pembida
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="sidebar-menu-title">Laporan</div>
|
||||
</li>
|
||||
<li class="{{ (request()->is('account/')) ? 'active' : '' }}">
|
||||
<a href="#reportSubmenu" data-toggle="collapse" aria-expanded="false">
|
||||
<div class="sidebar-menu">
|
||||
<div class="sidebar-menu-main-title">
|
||||
<span class="material-symbols-rounded sidebar-menu-item-main">
|
||||
dynamic_feed
|
||||
</span>
|
||||
Utama
|
||||
</div>
|
||||
<span class="material-symbols-rounded sidebar-menu-item-expand">expand_more</span>
|
||||
</div>
|
||||
</a>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('account/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('account/laporanakaun/*') || request()->is('account/laporanakaun') ) ? 'active' : '' }}">
|
||||
<a href="{{url('account/laporanakaun')}}">Bayaran Online Lelongan</a>
|
||||
</li>
|
||||
</ul>
|
||||
{{-- <ul class="list-unstyled collapse {{ (request()->is('report/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('report/lapbidaanpembidaindex/*') || request()->is('report/lapbidaanpembidaindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('report/lapbidaanpembidaindex')}}">Bidaan Pembida</a>
|
||||
</li>
|
||||
</ul> --}}
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
@endhasrole
|
||||
@hasrole('pembida')
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr {
|
||||
border-bottom: 1px black;
|
||||
}
|
||||
#sim th {
|
||||
border: 1px black;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sim2 th {
|
||||
text-align: center;
|
||||
border: 0px solid ;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
/* text-align: right; */
|
||||
padding: 16px;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
|
||||
}
|
||||
|
||||
.font{
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/** Define now the real margins of every page in the PDF **/
|
||||
body {
|
||||
margin-top: 1cm;
|
||||
/* margin-left: 2cm; */
|
||||
/* margin-right: 2cm; */
|
||||
margin-bottom: 2cm;
|
||||
}
|
||||
|
||||
/** Define the header rules **/
|
||||
header {
|
||||
position: fixed;
|
||||
top: -1cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 0cm;
|
||||
/** Extra personal styles **/
|
||||
/* background-color: #eaeaea; */
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
}
|
||||
|
||||
/** Define the footer rules **/
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 2cm;
|
||||
|
||||
/** Extra personal styles **/
|
||||
/* background-color: #eaeaea; */
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
}
|
||||
footer .pagenum:before {
|
||||
content: counter(page);
|
||||
}
|
||||
|
||||
.font{
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
{{--
|
||||
<div>
|
||||
|
||||
<div class="first-prgph1">
|
||||
<h5> {{$caw['caw_name']}}<br>
|
||||
{{$caw['alamat1']}}<br>
|
||||
{{$caw['alamat2']}}<br>
|
||||
No Tel: {{$caw['notel']}}<br>
|
||||
No Faks: {{$caw['nofaks']}}
|
||||
</h5>
|
||||
</div>
|
||||
</div>--}}
|
||||
<body>
|
||||
<header>
|
||||
<div class="font"><u><b><h5>LAPORAN BAYARAN ONLINE LELONGAN : {{ $cawanganDetail->caw_name }}</h5></b></u></div>
|
||||
</header>
|
||||
|
||||
<div class="font">
|
||||
{{-- Cawangan: {{ $cawanganDetail->caw_name }} <br> --}}
|
||||
Batch Lelong: {{$lelong_id}} <br>
|
||||
Tarikh Lelong: @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelonglel->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</div><br>
|
||||
|
||||
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Pemenang</th>
|
||||
<th>Jumlah Bidaan(RM)</th>
|
||||
<th>Caj(RM)</th>
|
||||
<th>Jumlah Bayaran(RM)</th>
|
||||
<th>Jenis Bayaran</th>
|
||||
<th>Billplz ID</th>
|
||||
<th>Tarikh/Masa</th>
|
||||
<th>Status Bayaran</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$totalbidaan = 0;
|
||||
$totalcaj = 0;
|
||||
$totalbayaran = 0;
|
||||
@endphp
|
||||
@forelse($listwinner as $winner)
|
||||
@php
|
||||
$totalbidaan += $winner['totalPay'];
|
||||
$totalcaj += 1;
|
||||
$totalbayaran = $totalbidaan + $totalcaj;
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td align = 'left' style='white-space:nowrap;text-transform: uppercase'>{{ $winner['details']['name'] }}</td>
|
||||
<td align = 'right'>{{ number_format($winner['totalPay'], 2, '.', ',') }}</td>
|
||||
<td align = 'right'>{{ number_format(1, 2, '.', ',') }}</td>
|
||||
<td align = 'right'>{{ number_format($winner['totalPay']+1, 2, '.', ',') }}</td>
|
||||
<td align = 'center'> @if($winner['jenisbayaran'] != NULL)
|
||||
{{-- {{ dump($winner['jenisbayaran'])}} --}}
|
||||
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
||||
TUNAI
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
||||
FPX
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
||||
KAUNTER BANK/CDM
|
||||
|
||||
@endif
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td align = 'center'>{{ $winner['billplz_id']}}</td>
|
||||
<td>{{ $winner['paid_at']}}</td>
|
||||
<td align = 'center'> @if($winner['jenisbayaran'] != NULL)
|
||||
@if($winner['jenisbayaran']['disahkan_oleh'] != NULL)
|
||||
SELESAI
|
||||
@elseif($winner['jenisbayaran']['disahkan_oleh'] == NULL)
|
||||
TUNGGU PENGESAHAN
|
||||
@else
|
||||
BELUM SELESAI
|
||||
@endif
|
||||
@else
|
||||
BELUM SELESAI
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="8">No Data</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalbidaan, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalcaj, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalbayaran, 2, '.', ',') }}</b></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
</span><br>
|
||||
{{-- {{dd($listwinner)}} --}}
|
||||
@forelse($details['listwinner'] as $winner)
|
||||
<i class="fas fa-caret-right"></i> {{ $winner['details']['name'] }}
|
||||
<span style='text-transform: uppercase'><i class="fas fa-caret-right"></i> {{ $winner['details']['name'] }}</<span>
|
||||
<br>
|
||||
@empty
|
||||
- <br>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
@hasrole('operasi')
|
||||
{{-- <a class="btn btn-info btn-sm" href=" {{ route('pembida.pembayaranbidaan', ['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> --}}
|
||||
@endhasrole
|
||||
<span class="m-2">{{ $winner['details']['name'] }}
|
||||
<span class="m-2" style='text-transform: uppercase'>{{$loop->iteration}}{{'.'}} {{ $winner['details']['name'] }}
|
||||
</span><br>
|
||||
{{-- {{dd($listwinner)}} --}}
|
||||
{{-- @forelse($winner as $caw)
|
||||
|
||||
Reference in New Issue
Block a user