Merged in bugfix/laporan-perbelanjaan (pull request #64)
Bugfix/laporan perbelanjaan Approved-by: nur amirah zulkipli
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<style>
|
||||
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
@@ -215,6 +216,12 @@
|
||||
</table>
|
||||
|
||||
<br>
|
||||
@php
|
||||
$perbelanjaan = collect($perbelanjaan)->sortBy('kategori')->toArray();
|
||||
$counter = 1;
|
||||
$totalbayaran = 0;
|
||||
@endphp
|
||||
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
@@ -225,8 +232,7 @@
|
||||
<th>Baucer#</th>
|
||||
<th>Jumlah (RM)</th>
|
||||
</tr>
|
||||
@php $counter = 1; $totalbayaran = 0;@endphp
|
||||
@foreach($perbelanjaan as $index=>$item)
|
||||
@foreach($perbelanjaan as $index => $item)
|
||||
@php $totalbayaran += $item['bayaran']; @endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
@@ -241,6 +247,7 @@
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
|
||||
<h5 style="float:right;">JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}</h5>
|
||||
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user