@lang('menu.financialReport')

@lang('messages.financialReportDescription')

@lang('messages.reportSettings')

@if ($reportType === 'month-wise')
@foreach ($months as $month) @endforeach
@foreach ($years as $year) @endforeach
@elseif ($reportType === 'year-wise')
@foreach ($years as $year) @endforeach
@endif

@lang('messages.financialReportSummary')

@if(isRole() == 'Admin') @lang('app.showFilter') @endif
@lang('app.download') PDF
@if ($showFilters && isRole() == 'Admin') @include('maintenance.filters-financial-report') @endif
@php $totalMaintenanceBilled = 0; $totalMaintenancePaid = 0; $totalUtilityBilled = 0; $totalUtilityPaid = 0; $totalPaid = 0; $totalPending = 0; @endphp @forelse ($financialData 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 @empty @endforelse @if (!empty($financialData)) @endif
@lang('modules.settings.apartment') @lang('modules.financial.maintenanceBilled') @lang('modules.financial.maintenancePaid') @lang('modules.financial.utilityBilled') @lang('modules.financial.utilityPaid') @lang('modules.financial.totalPaid') @lang('modules.financial.totalPending')
{{ $item['apartment'] }} {{ currency_format($item['maintenance_billed']) }} {{ currency_format($item['maintenance_paid']) }} {{ currency_format($item['utility_billed']) }} {{ currency_format($item['utility_paid']) }} {{ currency_format($item['total_paid']) }} {{ currency_format($item['total_pending']) }}
{{ __('messages.noRecordFound') }}
@lang('app.total') {{ currency_format($totalMaintenanceBilled) }} {{ currency_format($totalMaintenancePaid) }} {{ currency_format($totalUtilityBilled) }} {{ currency_format($totalUtilityPaid) }} {{ currency_format($totalPaid) }} {{ currency_format($totalPending) }}