PT. POLJAM TECH
Jl. Lingkar Barat II Lr. Veteran Rt. 04 Kel. Bagan Pete, Kec. Alam Barajo, Kota Jambi
Laporan Pembelian
Periode: {{ request('start_date') ? \Carbon\Carbon::parse(request('start_date'))->format('d M Y') : 'Semua' }} {{ request('end_date') ? ' - ' . \Carbon\Carbon::parse(request('end_date'))->format('d M Y') : '' }}
Tanggal Laporan:
{{ now()->format('d M Y H:i') }}
Supplier Filter:
{{ request('supplier') ?: 'Semua Supplier' }}
Tipe Pembelian:
{{ request('purchase_type') ? ucfirst(request('purchase_type')) : 'Semua Tipe' }}
Total Data:
{{ $purchases->count() }} transaksi
Ringkasan Pembelian
Total Pembelian
Rp {{ number_format($totalAmount, 0, ',', '.') }}
Total Transaksi
{{ number_format($totalTransactions, 0, ',', '.') }}
Total Item
{{ number_format($totalItems, 0, ',', '.') }}
Rata-rata per Transaksi
Rp {{ $totalTransactions > 0 ? number_format($totalAmount / $totalTransactions, 0, ',', '.') : '0' }}
Detail Transaksi Pembelian
@if($purchases->count() > 0) @foreach($purchases as $index => $purchase) @endforeach
No Tanggal Kode Pembelian Supplier Tipe Item Dibeli Total Amount Catatan
{{ $index + 1 }} {{ $purchase->purchase_date ? $purchase->purchase_date->format('d/m/Y') : '-' }} {{ $purchase->purchase_code }} {{ $purchase->supplier_name }} {{ ucfirst($purchase->purchase_type) }} @if($purchase->items && $purchase->items->count() > 0)
@foreach($purchase->items as $item)
{{ $item->item_name ?? '-' }} ({{ $item->quantity }} {{ $item->unit ?? 'pcs' }})
@endforeach
@else - @endif
Rp {{ number_format($purchase->total_amount, 0, ',', '.') }} {{ $purchase->notes ?? '-' }}
@else

Tidak ada data pembelian untuk periode yang dipilih.

@endif
Mengetahui,
Manager Pembelian
Jakarta, {{ now()->format('d M Y') }}
Direktur