@extends('layouts.default') @section('content')

Monthly Report

{{$building->name}}

Service Charge Detail
{{$yearmonth}}
Expenses
@if(!empty($expenses)) @php($totalExpense = 0) @foreach($expenses as $expense) @php($totalExpense += $expense->expense_amount) @endforeach @endif
Expense Head Payment Amount
{{ $expense->expenseHead->name }} {{ $expense->expense_amount }}
Total{{$totalExpense}}
Bill Details
@if(!empty($collections)) @php($totalCollection = 0) @foreach($collections as $collection) @php($totalCollection += $collection->amount) @endforeach @endif
Flat Owner Date Amount Receipt
{{ $collection->flat->flat_number }} {{ $collection->flat->flatOwner->name }} {{ $collection->received_date }} {{ $collection->amount }}
Total {{$totalCollection}}
Summary Info
Current Month Balance {{$monthWiseBalance}} Service Charge {{$totalExpense}}
@endsection