buat laporan

This commit is contained in:
hafifierahman
2021-11-12 01:16:54 +08:00
parent a4e02a3914
commit ec7c29250a
6 changed files with 41 additions and 209 deletions
@@ -166,9 +166,8 @@
<table id="scan">
<tr>
<th colspan ="5"><b>SENARAI PELANGGAN BARU</b></th>
<th> </th>
<th> </th>
<th colspan ="2"><b>SENARAI PELANGGAN BARU</b></th>
<th><b> Tarikh Cetak:</b>
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
@@ -185,12 +184,6 @@
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp</td>
<td style="width:50px">
</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
@@ -200,30 +193,21 @@
<table id="details">
<tr>
<th>Bil</th>
<th>No Pelanggan</th>
<th>No KP</th>
<th>Nama</th>
<th>Yuran Ahli</th>
</tr>
@php $counter = 1;$totalyuran = 0; @endphp
@php $counter = 1; @endphp
@foreach($senaraipelanggan as $index=>$item)
<tr>
<td>{{ $counter }}</td>
<td>{{$item['nopelanggan']}}</td>
<td>{{$item['kpbaru']}}</td>
<td>{{$item['nama']}}</td>
<td>{{$item['yuranahli']}}</td>
</tr>
@php $counter++; $totalyuran += $item['yuranahli'];@endphp
@php $counter++;@endphp
@endforeach
<tfoot>
<tr>
<td colspan="3"><b>JUMLAH KESELURUHAN : RM {{ number_format($totalyuran,2) }}</td>
</tr>
</tfoot>
</table>
<br>