Merge branch 'atie' into 'main'

add Laporan Bayaran Online Lelongan (akaun)

See merge request online-sistem1/lelong!350
This commit is contained in:
Nur Izzati Zulkifli
2022-12-22 08:40:27 +00:00
10 changed files with 875 additions and 3 deletions
+155
View File
@@ -18,6 +18,9 @@ use App\Models\FileResit;
use App\Services\ResitPhotoService;
use App\Models\FileMarhun;
use App\Services\MarhunPhotoService;
use App\Models\Pengesahan;
use App\Models\LelongBidMarhun;
use PDF;
class AccountController extends Controller
{
@@ -637,4 +640,156 @@ class AccountController extends Controller
return $this->resitPhotoService->show($request->user_id, $resit);
}
public function laporanakaun (){
$arraydetails = [];
$laporan= Lelong::join('cawangan_lelong','lelong.id','=','cawangan_lelong.lelong_id')
->join('pengesahan','lelong.id','=','pengesahan.lelong_id')
->select('cawangan_lelong.lelong_id','tarikh_lelong','lelong.fasa')
->distinct()
->orderBy('cawangan_lelong.lelong_id')
->get()
->toArray();
// dd($laporan);
foreach($laporan as $brg)
{
$details = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id', $brg['lelong_id'])
->distinct()
->orderBy('lelong_id')
->get()
->toArray();
array_push($arraydetails,['brg' => $brg, 'detailsbrg' => $details ]);
}
return view('account.laporanakaun', compact('arraydetails'));
}
public function laporanakaundetail ($lelong_id, $kodcaw){
$lelonglel = Lelong::with('cawangan')->find($lelong_id);
$cawanganDetail = $lelonglel->cawangan->where('caw_code', $kodcaw)->first();
// dd($lelonglel->tarikh_lelong);
$listwinner = LelongBidder::join('lelongbid', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
->join('payment', 'lelongbidder.payment_id', '=', 'payment.id')
->join('resit', 'resit.id', '=', 'payment.resit_id')
->whereIn('payment.status_payment_opt', [2,3])
->where('lelongbidder.status_bidder', 1)
->where('lelongbid.lelong_id', $lelong_id)
->where('lelongbid.kodcaw', $kodcaw)
->select('lelongbidder.user_id', 'lelongbid.lelong_id','lelongbid.kodcaw','resit.billplz_id','resit.paid_at')
->groupBy('lelongbidder.user_id')
->get();
foreach($listwinner as $index=>$listing){
$total_payment = 0;
$userdetails = User::where('id', $listing['user_id'])->first();
$SAGWin = LelongBidder::join('lelongbid', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
->where('lelongbid.nopembeli', $listing['user_id'])
->where('lelongbid.kodcaw', $listing['kodcaw'])
->where('lelongbidder.status_bidder', 1)
->where('lelongbid.lelong_id', $listing['lelong_id'])
->get();
foreach($SAGWin as $index2=>$sag)
{
// dd($detailspayment);
$detailspayment = null;
if($sag['payment_id'] != null)
{
$detailspayment = Payment::where('id', $sag['payment_id'])->first();
$total_payment = $total_payment + $detailspayment->total_payment;
// dd($total_payment);
}else
{
$total_payment = '0.00';
}
}
$listwinner[$index]['details'] = $userdetails;
$listwinner[$index]['total_surat'] = sizeof($SAGWin);
$listwinner[$index]['totalBid'] = $SAGWin->sum('hargabida');
$listwinner[$index]['totalPay'] = $total_payment;
$listwinner[$index]['jenisbayaran'] = $detailspayment ;
}
$getpengesahan = Cawangan::where('caw_code', $kodcaw)->first();
return view('account.laporanakaundetail', compact('lelonglel','listwinner','lelong_id','getpengesahan','cawanganDetail'));
}
public function laporanakaundetailexport (Request $request){
$lelong_id = $request->lelong_id;
$kodcaw = $request->kodcaw;
$lelonglel = Lelong::with('cawangan')->find($lelong_id);
$cawanganDetail = $lelonglel->cawangan->where('caw_code', $kodcaw)->first();
// dd($lelonglel->tarikh_lelong);
$listwinner = LelongBidder::join('lelongbid', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
->join('payment', 'lelongbidder.payment_id', '=', 'payment.id')
->join('resit', 'resit.id', '=', 'payment.resit_id')
->whereIn('payment.status_payment_opt', [2,3])
->where('lelongbidder.status_bidder', 1)
->where('lelongbid.lelong_id', $lelong_id)
->where('lelongbid.kodcaw', $kodcaw)
->select('lelongbidder.user_id', 'lelongbid.lelong_id','lelongbid.kodcaw','resit.billplz_id','resit.paid_at')
->groupBy('lelongbidder.user_id')
->get();
foreach($listwinner as $index=>$listing){
$total_payment = 0;
$userdetails = User::where('id', $listing['user_id'])->first();
$SAGWin = LelongBidder::join('lelongbid', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
->where('lelongbid.nopembeli', $listing['user_id'])
->where('lelongbid.kodcaw', $listing['kodcaw'])
->where('lelongbidder.status_bidder', 1)
->where('lelongbid.lelong_id', $listing['lelong_id'])
->get();
foreach($SAGWin as $index2=>$sag)
{
// dd($detailspayment);
$detailspayment = null;
if($sag['payment_id'] != null)
{
$detailspayment = Payment::where('id', $sag['payment_id'])->first();
$total_payment = $total_payment + $detailspayment->total_payment;
// dd($total_payment);
}else
{
$total_payment = '0.00';
}
}
$listwinner[$index]['details'] = $userdetails;
$listwinner[$index]['total_surat'] = sizeof($SAGWin);
$listwinner[$index]['totalBid'] = $SAGWin->sum('hargabida');
$listwinner[$index]['totalPay'] = $total_payment;
$listwinner[$index]['jenisbayaran'] = $detailspayment ;
}
$getpengesahan = Cawangan::where('caw_code', $kodcaw)->first();
if($request->type == 'excel')
{
return view('excel.laporanakaundetail_excel', compact('lelonglel','listwinner','lelong_id','getpengesahan','cawanganDetail'));
}else
{
$pdf = PDF::loadView('pdf.laporanakaundetailpdf',compact('lelonglel','listwinner','lelong_id','getpengesahan','cawanganDetail'))
->setPaper('a4', 'potrait');
return $pdf->download('Laporan Bayaran Online Lelongan.pdf');
}
}
}
@@ -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)
+4
View File
@@ -450,6 +450,10 @@ Route::group(['middleware' => ['permission:pengesahanbayaran'],'prefix'=>'accoun
Route::get('/statuspembayaranbypembida',['as'=>'account.statuspembayaranbypembida','uses'=>'PembidaController@statuspembayaranbypembida']);
Route::get('/sahsagcdm/{lelong_id}/{user_id}/{caw_code}', ['as'=>'account.sahsagcdm','uses'=>'AccountController@sahsagcdm']);
Route::get('/showphotoresit',['as'=>'account.showphotoresit','uses'=>'AccountController@showPhotoResit']);
Route::get('/laporanakaun',['as'=>'account.laporanakaun','uses'=>'AccountController@laporanakaun']);
Route::get('/laporanakaundetail/{lelong_id}/{kodcaw}',['as'=>'account.laporanakaundetail','uses'=>'AccountController@laporanakaundetail']);
Route::post('/laporanakaundetailexport',['as'=>'account.laporanakaundetailexport','uses'=>'AccountController@laporanakaundetailexport']);
});
// Pengurus Cawangan