@extends('layouts.adminapp') @section('content')
@include('PrintHeader.header')

{{__('lng.HouseDetailReport')}}

{{__('lng.Author')}} {{__('lng.RegisterNumber')}} {{__('lng.HouseName')}} {{__('lng.Phone')}} {{__('lng.Place')}} {{__('lng.Post')}} {{__('lng.Pin')}} {{__('lng.City')}} {{__('lng.District')}} {{__('lng.State')}}
{{$Author->name}} {{$Author->House->registernumber ?? ''}} {{$Author->House->name ?? ''}} {{$Author->contact}} {{$Author->House->place ?? ''}} {{$Author->House->post ?? ''}} {{$Author->House->pin ?? ''}} {{$Author->House->city ?? ''}} {{$Author->House->district ?? ''}} {{$Author->House->state ?? ''}}
{{__('lng.DonationDetails')}}
@php $si=$FundListAmount=$AddAmount=$Collection=0; @endphp @foreach ($FundListDetails as $FundListDetail) @php $Date = date("d-m-Y",strtotime($FundListDetail->date));@endphp @php $FundListAmount+=$AddAmount; $Collection+=$FundListDetail->amount; $AddAmount=0; @endphp @endforeach
# {{__('lng.Date')}} {{__('lng.FundList')}} {{__('lng.CollectionAmount')}} {{__('lng.Payed')}} {{__('lng.Status')}}
{{++$si}} {{$Date}} {{$FundListDetail->FundList->title ?? ''}} @amount($FundListDetail->amount)
    @foreach ($FundListDetail->Payments()->where('isCancelled',false)->orWhereNull('isCancelled')->get() as $Payment)
  • @amount($Payment->amount)
    {{$Payment->vouchernumber}} {{date('d-m-Y',strtotime($Payment->date))}}
  • @php $AddAmount+=$Payment->amount; @endphp @endforeach
@if($FundListDetail->amount<=$FundListDetail->Payments()->where('isCancelled',false)->orWhereNull('isCancelled')->sum('amount'))
{{__('lng.Completed')}}
@else
{{__('lng.Pending')}}
@endif
{{ __('lng.Total') }} @currency($Collection) @currency($FundListAmount)
@if ($FundListAmount - $Collection >= 0) {{__('lng.Completed')}} @else {{__('lng.Pending')}} @endif
{{__('lng.Back')}}
@endsection