@php $totalMaintenanceBilled = 0; $totalMaintenancePaid = 0; $totalUtilityBilled = 0; $totalUtilityPaid = 0; $totalPaid = 0; $totalPending = 0; @endphp @foreach ($data as $item) @php $totalMaintenanceBilled += $item['maintenance_billed']; $totalMaintenancePaid += $item['maintenance_paid']; $totalUtilityBilled += $item['utility_billed']; $totalUtilityPaid += $item['utility_paid']; $totalPaid += $item['total_paid']; $totalPending += $item['total_pending']; @endphp @endforeach
@lang('modules.settings.apartment') @lang('modules.financial.maintenanceBilled') ({{ $society->currency->currency_code }}) @lang('modules.financial.maintenancePaid') ({{ $society->currency->currency_code }}) @lang('modules.financial.utilityBilled') ({{ $society->currency->currency_code }}) @lang('modules.financial.utilityPaid') ({{ $society->currency->currency_code }}) @lang('modules.financial.totalPaid') ({{ $society->currency->currency_code }}) @lang('modules.financial.totalPending') ({{ $society->currency->currency_code }})
{{ $item['apartment'] }} {{ number_format($item['maintenance_billed'], 2) }} {{ number_format($item['maintenance_paid'], 2) }} {{ number_format($item['utility_billed'], 2) }} {{ number_format($item['utility_paid'], 2) }} {{ number_format($item['total_paid'], 2) }} {{ number_format($item['total_pending'], 2) }}
@lang('app.total') {{ number_format($totalMaintenanceBilled, 2) }} {{ number_format($totalMaintenancePaid, 2) }} {{ number_format($totalUtilityBilled, 2) }} {{ number_format($totalUtilityPaid, 2) }} {{ number_format($totalPaid, 2) }} {{ number_format($totalPending, 2) }}