@foreach($transactions as $transaction) @endforeach
LAPORAN PENJUALAN
Periode: {{ $startDate }} - {{ $endDate }}
RINGKASAN
Total Penjualan Rp {{ number_format($summary['total_amount'], 0, ',', '.') }}
- Tunai / Transfer Rp {{ number_format($summary['total_received'], 0, ',', '.') }}
- Piutang Rp {{ number_format($summary['total_receivables'], 0, ',', '.') }}
Total Pengeluaran (Rp {{ number_format($summary['total_expenses'], 0, ',', '.') }})
Total Pembelian Stok (Rp {{ number_format($summary['total_purchases'], 0, ',', '.') }})
LABA BERSIH Rp {{ number_format($summary['net_income'], 0, ',', '.') }}
Tanggal Kasir Keterangan Metode Pembayaran Total
{{ $transaction->created_at->format('d/m/Y H:i') }} {{ $transaction->user->name }} {{ $transaction->note ?? '-' }} {{ ucfirst($transaction->payment_method) }} {{ $transaction->total_amount }}
@foreach($expenses as $expense) @endforeach
RINCIAN PENGELUARAN OPERASIONAL
Tanggal Keterangan Dicatat Oleh Jumlah
{{ \Carbon\Carbon::parse($expense->date)->isoFormat('D MMM YYYY') }} {{ $expense->description }} {{ $expense->user->name ?? '-' }} {{ $expense->amount }}
TOTAL PENGELUARAN {{ $summary['total_expenses'] }}
@foreach($purchases as $purchase) @endforeach
RINCIAN PEMBELIAN STOK
Tanggal Produk Qty Supplier Catatan Total
{{ \Carbon\Carbon::parse($purchase->date)->isoFormat('D MMM YYYY') }} @foreach($purchase->items as $item) {{ $item->product->name ?? 'Produk Dihapus' }}@if(!$loop->last), @endif @endforeach @foreach($purchase->items as $item) {{ $item->quantity }}@if(!$loop->last), @endif @endforeach {{ $purchase->supplier->name ?? 'Umum' }} {{ $purchase->note ?? '-' }} {{ $purchase->total_amount }}
TOTAL PEMBELIAN STOK {{ $summary['total_purchases'] }}