@extends('layouts.adminapp') @section('content') {{-- Member Registeration --}}

{{$FundList->title}}

{{__('lng.Back')}}
{{__('lng.MembersTable')}}
@php $si=$CollectionTotalAmount=$PayedAmount=0; @endphp @foreach($FundListDetails as $FundListDetail) @php $Date = date("d-m-Y",strtotime($FundList->date)); @endphp @php $ExpireDate = date("d-m-Y",strtotime($FundList->expire)); @endphp @php $CollectionTotalAmount+=$FundListDetail->amount; $PayedAmount+=$FundListDetail->Payments()->where('isCancelled',false)->orWhereNull('isCancelled')->sum('amount'); @endphp @endforeach
{{__('lng.SiNo')}} {{__('lng.Name')}} {{__('lng.House')}} {{__('lng.Contact')}} {{__('lng.Status')}} {{__('lng.CollectionAmount')}} {{__('lng.Payed')}}
{{++$si}} {{$FundListDetail->Member->name ?? ''}} {{$FundListDetail->Member->house->name ?? ''}} {{$FundListDetail->Member->contact ?? ''}} @if($FundListDetail->amount<=$FundListDetail->Payments()->where('isCancelled',false)->orWhereNull('isCancelled')->sum('amount'))
{{__('lng.Completed')}}
@else
{{__('lng.Pending')}}
@endif
@amount($FundListDetail->amount) @currency($FundListDetail->Payments()->where('isCancelled',false)->orWhereNull('isCancelled')->sum('amount'))
{{__('lng.Total')}} @currency($CollectionTotalAmount) @currency($PayedAmount)
@endsection