@php $ROWS_PER_PAGE = request('rpp', 25); $validTransactions = $transactions->filter(fn($t) => strtoupper(trim($t->ST ?? '')) !== 'BATAL')->values(); $pages = $validTransactions->chunk($ROWS_PER_PAGE); if ($pages->isEmpty()) $pages = collect([collect([])]); function fnum($val) { return number_format((float)$val, 0, ',', '.'); } @endphp
@foreach($pages as $pageIdx => $pageRows)
PERUSAHAAN UMUM DAERAH TIRTAWENING KOTA BANDUNG
DATA HARIAN PELAYANAN AIR BERSIH [HALAMAN {{ $pageIdx + 1 }} / {{ count($pages) }}]
TANGGAL : {{ strtoupper(\Carbon\Carbon::parse($date)->translatedFormat('d F Y')) }} | USER: {{ strtoupper($currentUser) }}
@foreach($pageRows as $i => $t) @endforeach @if($loop->last) @endif
NOINVPELANGGANALAMAT JRKSLGGOLVOLRIT TARIFB JRKB SLGB OPRS TAGIHANTUNAIPIUTANGBANK SOPIRKERNETMOBILMTR
{{ ($pageIdx * $ROWS_PER_PAGE) + $i + 1 }} {{ str_pad($t->INVOICE, 6, '0', STR_PAD_LEFT) }} {{ $t->nm_pelanggan }} {{ $t->alamat }} {{ $t->MJARAK ?? 0 }} {{ $t->MSELANG ?? 0 }} {{ $t->gol }} {{ $t->vol }} {{ $t->rit }} {{ fnum($t->Btarif) }} {{ fnum($t->BJARAK) }} {{ fnum($t->BSELANG) }} {{ fnum($t->BOPERASIONAL) }} {{ fnum($t->PENERIMAAN) }} {{ fnum($t->tunai) }} {{ fnum($t->piutang) }} {{ fnum($t->tfbank) }} {{ $t->sopir }} {{ $t->kernet }} {{ $t->nopol }} {{ $t->SMETER }}
@if($loop->last) @endif
@endforeach