@if ($tampilan == 'rekap') @else @endif @foreach ($transaksi as $tran) @if ($tampilan == 'rekap') @else @endif @endforeach
No Nama BarangSatuan Stok Qty Pembelian Qty Penjualan Qty Stok OpnameTanggal Invoice Transaksi Customer/Supplier Jumlah
{{ $loop->iteration }} {{ $tran->barang->nama }}{{ $tran->barang->satuan }} {{ number_format($tran->barang->stok->stok, 0, ',', '.') }} {{ number_format($tran->qty_pembelian, 0, ',', '.') }} {{ number_format($tran->qty_penjualan, 0, ',', '.') }} {{ number_format($tran->qty_stok_opname, 0, ',', '.') }} {{ date('d/m/Y', strtotime($tran->transaksi->tanggal_faktur ?? '-')) }} {{ $tran->transaksi->no_faktur ?? '-' }} {{ isset($tran->transaksi->jenis) ? ($tran->transaksi->jenis == 1 ? 'Penjualan' : ($tran->transaksi->jenis == 2 ? 'Pembelian' : 'Stok Opname')) : '-' }} {{ $tran->transaksi->supplier->nama_perusahaan ?? ($tran->transaksi->customer->nama ?? '-') }} {{ number_format($tran->jumlah, 0, ',', '.') }}
@push('scripts') @endpush