@extends('layouts.adminapp') @section('content') {{-- Fund list Registration --}}
{{$Program->title}}
{{--

{{$Program->title}}

--}}
{{__('lng.FundListsTable')}}
{{__('lng.CreateNew')}}
{{--

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

--}}
@php $si=0; @endphp @foreach($Program->FundLists->where('isCancelled',false) as $FundList) @php $Date = date("d-m-Y",strtotime($FundList->date)); @endphp @php $ExpireDate = date("d-m-Y",strtotime($FundList->expire)); @endphp @endforeach
{{__('lng.SiNo')}} {{__('lng.Title')}} {{__('lng.Date')}} {{__('lng.ExpireDate')}} {{__('lng.TargetAmount')}} {{__('lng.CollectionAmount')}} {{__('lng.Narration')}} {{__('lng.Action')}}
{{++$si}} {{$FundList->title}} {{$Date}} {{$ExpireDate}} @currency($FundList->target_amount) @currency($FundList->collection_amount) {{$FundList->narration}}
@csrf @method('delete')
{{--
Special title treatment

With supporting text below as a natural lead-in to additional content.

--}}

{{--

It uses utility classes for typography and spacing to space content out within the larger container.

Learn more --}}

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

@php $si=$TotalDonation=0; @endphp @foreach ($ReceiptVouchers as $ReceiptVoucher) @php $DTs = date("d-m-Y",strtotime($ReceiptVoucher->date)); @endphp @php $TotalDonation+=$ReceiptVoucher->amount; @endphp @endforeach
{{__('lng.SiNo')}} {{__('lng.Date')}} {{__('lng.Head')}} {{__('lng.Invoice')}} {{__('lng.Member')}} {{__('lng.Contact')}} {{__('lng.Narration')}} {{__('lng.Amount')}}
{{++$si}} {{$DTs}} {{$ReceiptVoucher->payhead->title}} {{$ReceiptVoucher->invoicenumber}} {{$ReceiptVoucher->member->name ?? $ReceiptVoucher->name}} {{$ReceiptVoucher->member->contact ?? $ReceiptVoucher->phone}} {{$ReceiptVoucher->narration}} @currency($ReceiptVoucher->amount)
{{__('lng.Total')}} {{$TotalDonation}}

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

{{-- --}} @php $si=$TotalExpence=0; @endphp @foreach($PaymentVouchers as $PaymentVoucher) @php $DTs = date("d-m-Y",strtotime($PaymentVoucher->date)); @endphp @php $TotalExpence+=$PaymentVoucher->amount; @endphp @endforeach
{{__('lng.SiNo')}} {{__('lng.Date')}} {{__('lng.Invoice')}} {{__('lng.Name')}} {{__('lng.ExpenseLedger')}} {{__('lng.PayLedger')}} {{__('lng.Amount')}} {{__('lng.Narration')}}{{__('lng.Action')}}
{{++$si}}{{$DTs}} {{$PaymentVoucher->invoicenumber}} {{$PaymentVoucher->name}} {{$PaymentVoucher->expenseledger->title}} {{$PaymentVoucher->payledger->title}} {{$PaymentVoucher->narration}} @currency($PaymentVoucher->amount)
{{__('lng.Total')}} {{$TotalExpence}}

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

{{__('lng.TotalIncome')}} {{$TotalDonation}} - {{__('lng.CR')}}
{{__('lng.TotalExpence')}} {{$TotalExpence}} - {{__('lng.DR')}}
@if ($TotalDonation - $TotalExpence >=0 ) {{$TotalDonation - $TotalExpence}} {{__('lng.CR')}} @else {{abs($TotalDonation - $TotalExpence)}} - {{__('lng.DR')}} @endif
{{-- --}}
@endsection