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

{{$FundList->title}}

--}}
@csrf
@include('Member.MemberCard')
@foreach ($VoucherTypes as $VoucherType) @endforeach
{{__('lng.Donation')}}
@php $si=0; @endphp @foreach ($Donations as $Donation) @php $Date = date("d-m-Y",strtotime($Donation->date));@endphp @endforeach
# {{__('lng.Date')}} {{__('lng.Voucher')}} {{__('lng.Head')}} {{__('lng.Amount')}} {{__('lng.Action')}}
{{++$si}} {{$Date}} {{$Donation->VoucherType->title ?? ''}} {{$Donation->payhead->title ?? ''}} @amount($Donation->amount)
@csrf @method('delete')
{{$Donations->appends($_GET)->links()}}
{{__('lng.TotalAmount')}} @currency($DonationTotal)
{{__('lng.FundListDetails')}}
@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')}} {{__('lng.Action')}}
{{++$si}} {{$Date}} {{$FundListDetail->FundList->title ?? ''}} @amount($FundListDetail->amount)
    @foreach ($FundListDetail->Payments()->where('isCancelled',false)->orWhereNull('isCancelled')->get() as $Payment)
  • @amount($Payment->amount)
    {{-- --}}
    @csrf @method('delete')
    {{$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
@php $VoucherType=$FundListDetail->FundList->voucher_type_id; $VoucherNo=\App\Models\FundListPayment::where('vouchertype_id',$VoucherType)->max('vouchernumber')+1; @endphp
{{ __('lng.Total') }} @currency($Collection) @currency($FundListAmount)
@if ($FundListAmount - $Collection >= 0) {{__('lng.Completed')}} @else {{__('lng.Pending')}} @endif
{{-- --}} {{-- payment modal --}}
@endsection