{{ $title }}

Periode: {{ \Carbon\Carbon::parse($tanggalMulai)->format('d M Y') }} - {{ \Carbon\Carbon::parse($tanggalAkhir)->format('d M Y') }}

@if($jenis === 'masuk') @php $grandTotal = 0; @endphp @foreach($data as $index => $item) @php $grandTotal += $item->total_jumlah; @endphp @endforeach @else @php $grandTotal = 0; @endphp @foreach($data as $index => $item) @php $grandTotal += $item->total_jumlah; @endphp @endforeach @endif
No Nama Obat Satuan Total Jumlah Masuk
{{ $index + 1 }} {{ $item->nama_obat ?? 'N/A' }} {{ $item->satuan ?? '-' }} {{ number_format($item->total_jumlah, 0, ',', '.') }}
TOTAL {{ number_format($grandTotal, 0, ',', '.') }}
No Nama Obat Satuan Total Jumlah Keluar
{{ $index + 1 }} {{ $item->nama_obat ?? 'N/A' }} {{ $item->satuan ?? '-' }} {{ number_format($item->total_jumlah, 0, ',', '.') }}
TOTAL {{ number_format($grandTotal, 0, ',', '.') }}