Merge branch 'atie' into 'main'

update total keseluruhan

See merge request online-sistem1/lelong!342
This commit is contained in:
Nur Izzati Zulkifli
2022-12-17 16:20:27 +00:00
2 changed files with 36 additions and 0 deletions
@@ -44,6 +44,10 @@
</tr>
</thead>
<tbody>
@php $totalsurat = 0;
$totalbid = 0;
$totalpay = 0;
@endphp
@foreach($listwinner as $winner)
<tr>
<td> {{ $loop->iteration }} </td>
@@ -79,8 +83,22 @@
{{-- @endif --}}
</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 align = 'center'><b>{{ number_format($totalpay, 2, '.', ',') }}</b></td>
<td colspan="4"></td>
</tr>
</tfoot>
</table>
{{-- <div class="modal-footer" style="margin-top:2%;">
<a href="{{ route('pembayaran.SenaraiLelongBayar') }}" class="btn btn-primary">Kembali</a>
@@ -44,6 +44,10 @@
</tr>
</thead>
<tbody>
@php $totalsurat = 0;
$totalbid = 0;
$totalpay = 0;
@endphp
@foreach($listwinner as $winner)
<tr>
<td>{{ $loop->iteration }}</td>
@@ -71,8 +75,22 @@
<a class="btn m-1 btn-info" href="{{ route('pembida.detailsbidaan', [ 'user_id'=>$winner['details']['id'], $kodcaw ]) }}" data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-list-alt"></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 align = 'center'><b>{{ number_format($totalpay, 2, '.', ',') }}</b></td>
<td colspan="3"></td>
</tr>
</tfoot>
</table>
</div>