@include('reports.pdf-style')

Sales Ledger

{{ \Carbon\Carbon::parse($from)->format('d M Y') }} — {{ \Carbon\Carbon::parse($to)->format('d M Y') }}
{{ $orders->count() }}
Orders
Rs. {{ number_format($totalSales, 2) }}
Total Sales
Rs. {{ number_format($totalPaid, 2) }}
Total Received
Rs. {{ number_format($totalSales - $totalPaid, 2) }}
On Credit
@forelse($orders as $order) @empty @endforelse
# Date Customer Items Total Received
{{ $order->id }} {{ $order->date->format('d M') }} {{ $order->customer->name ?? ($order->customer_name ?: 'Walk-in') }} @foreach($order->items as $item) {{ $item->product->category->name ?? '' }} {{ $item->product->weight->label ?? '' }} x{{ (int)$item->quantity }}{{ !$loop->last ? ', ' : '' }} @endforeach Rs. {{ number_format($order->total, 2) }} Rs. {{ number_format($order->paid, 2) }}
No orders in this period
TOTAL Rs. {{ number_format($totalSales, 2) }} Rs. {{ number_format($totalPaid, 2) }}