M.D.S

Receivables           وصولی ادھاری

مورخہ: {{ \Carbon\Carbon::parse($selectedDate)->format('d M, Y') }}

@php $half = (int) ceil($sales->count() / 2); $firstPart = $sales->slice($half); // LEFT column $secondPart = $sales->slice(0, $half); // RIGHT column @endphp
{{-- LEFT --}}
@php $leftTodayTotal = 0; $leftPaidTotal = 0; $leftBalanceTotal = 0; @endphp @foreach ($firstPart as $sale) @php $leftPaidTotal += $sale->recovery; $leftTodayTotal += $sale->today_sale; $leftBalanceTotal += $sale->previous_balance; @endphp @endforeach
وصولی فروخت وغیرہ سابِقہ بیلنس پارٹی
{{ number_format($sale->recovery, 0) }} {{ number_format($sale->today_sale, 0) }} {{ number_format($sale->previous_balance, 0) }} {{ $sale->customer?->customer_name_urdu }}
{{ number_format($leftPaidTotal, 0) }} {{ number_format($leftTodayTotal, 0) }} {{ number_format($leftBalanceTotal, 0) }} ٹوٹل
{{-- RIGHT --}}
@php $rightTodayTotal = 0; $rightPaidTotal = 0; $rightBalanceTotal = 0; @endphp @foreach ($secondPart as $sale) @php $rightPaidTotal += $sale->recovery; $rightTodayTotal += $sale->today_sale; $rightBalanceTotal += $sale->previous_balance; @endphp @endforeach
وصولی فروخت وغیرہ سابِقہ بیلنس پارٹی
{{ number_format($sale->recovery, 0) }} {{ number_format($sale->today_sale, 0) }} {{ number_format($sale->previous_balance, 0) }} {{ $sale->customer?->customer_name_urdu }}
{{ number_format($rightPaidTotal, 0) }} {{ number_format($rightTodayTotal, 0) }} {{ number_format($rightBalanceTotal, 0) }} ٹوٹل