From bccf4c89d135320c4576be680d9ea4a5a44ef68d Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Wed, 22 Feb 2023 13:39:14 +0800 Subject: [PATCH] Add receipt photo at PC side --- .../pembayaran/kaunterpembayaran.blade.php | 254 ++++++++---------- routes/web.php | 1 + 2 files changed, 107 insertions(+), 148 deletions(-) diff --git a/resources/views/pembayaran/kaunterpembayaran.blade.php b/resources/views/pembayaran/kaunterpembayaran.blade.php index f17fa109..6f2b7efc 100644 --- a/resources/views/pembayaran/kaunterpembayaran.blade.php +++ b/resources/views/pembayaran/kaunterpembayaran.blade.php @@ -7,169 +7,127 @@
- - - -
- Senarai Bayaran Pemenang : @foreach($datacaw as $data1) - {{$data1['caw_name']}} - @endforeach + + + +
+ Senarai Bayaran Pemenang : @foreach($datacaw as $data1) + {{$data1['caw_name']}} + @endforeach +
-
-
- @if ($message = Session::get('success')) +
+ @if ($message = Session::get('success'))

{{ $message }}

- @elseif ($message = Session::get('failed')) + @elseif ($message = Session::get('failed'))

{{ $message }}

- @endif - - - - - - - - - - - - - - {{-- --}} - - - - - @php $totalsurat = 0; - $totalbid = 0; - $totalpay = 0; - @endphp - @foreach($listwinner as $winner) + @endif +
NoNamaNo Kad PengenalanNo TelefonBilangan SuratJumlah Bidaan(RM)Amaun Telah Dibayar(RM)Status BayaranPenyata PemenangSlip Serahan MarhunResit PembayaranTindakan
+ - - - - - - - - - + + + + + + + + + + + + {{-- --}} + + + + @php $totalsurat = 0; + $totalbid = 0; + $totalpay = 0; + @endphp + @foreach($listwinner as $winner) + + + + + + + + + + + - - - {{-- --}} - - - - - @php - $totalsurat += $winner['total_surat']; - $totalbid += $winner['totalBid']; - $totalpay += $winner['totalPay']; - @endphp - @endforeach - - - - - - - - - - -
{{ $loop->iteration }} {{ $winner['details']['name']}}{{ $winner['details']['nokp']}}{{ $winner['details']['notelbimbit']}}{{ $winner['total_surat']}}{{ number_format($winner['totalBid'], 2, '.', ',')}}{{ number_format($winner['totalPay'], 2, '.', ',')}} - @if($winner['sts_payment'] == 2) - - @elseif($winner['sts_payment'] == 1) - - @else - - @endif - - - NoNamaNo Kad PengenalanNo TelefonBilangan SuratJumlah Bidaan(RM)Penyata PemenangLakukan Bayaran TunaiStatus BayaranMaklumat BayaranSlip Serahan MarhunResit Pembayaran
{{ $loop->iteration }} {{ $winner['details']['name']}}{{ $winner['details']['nokp']}}{{ $winner['details']['notelbimbit']}}{{ $winner['total_surat']}}{{ number_format($winner['totalBid'], 2, '.', ',')}} + + + + + @if($winner['sts_payment'] == 2) + + @elseif($winner['sts_payment'] == 1) + + @else + + @endif + + @if($winner['sts_payment'] == 1) + + @endif + - - - - - {{-- @if( ($winner['totalPay'] < $winner['totalBid']) || ($winner['sts_payment'] == 2) ) --}} - - {{-- @endif --}} -
JUMLAH KESELURUHAN{{$totalsurat}}{{ number_format($totalbid, 2, '.', ',') }}{{ number_format($totalpay, 2, '.', ',') }}
- {{-- --}} + + + + + @php + $totalsurat += $winner['total_surat']; + $totalbid += $winner['totalBid']; + $totalpay += $winner['totalPay']; + @endphp + @endforeach + + + + JUMLAH KESELURUHAN + {{$totalsurat}} + {{ number_format($totalbid, 2, '.', ',') }} + + + + +
+
-
- - - -@endsection + }); + + @endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 61d12824..878b9ae2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -541,6 +541,7 @@ Route::post('/export',['as'=>'report.exportubahmarhun','uses'=>'ReportController Route::get('/showphotoresit',['as'=>'report.showphotoresit','uses'=>'PembidaController@showPhotoResit']); +Route::get('/detailsbayaran/{lelong_id}/{user_id}/{kodcaw}',['as'=>'report.detailsbayaran','uses'=>'PembidaController@detailsbayaran']); }); //Report by KALI