@extends('layouts.adminapp') @section('title') {{ __('lng.Program') }} - {{ __('lng.View') }} @endsection @section('open_payments', 'open') @section('active_payments', 'active') @section('active_program', 'active') @section('content')

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

{{ __('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')

{{ __('lng.Showing') }} {{ $Program->FundLists->where('isCancelled', false)->count() }} {{ __('lng.Items') }}

{{ __('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') }} @currency( $TotalDonation )

{{ __('lng.Showing') }} {{ $ReceiptVouchers->count() }} {{ __('lng.Items') }}

{{ __('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') }}
{{ ++$si }}{{ $DTs }} {{ $PaymentVoucher->invoicenumber }} {{ $PaymentVoucher->name }} {{ $PaymentVoucher->expenseledger->title }} {{ $PaymentVoucher->payledger->title }} {{ $PaymentVoucher->narration }} @currency($PaymentVoucher->amount)
{{ __('lng.Total') }} @currency( $TotalExpence )

{{ __('lng.Showing') }} {{ $PaymentVouchers->count() }} {{ __('lng.Items') }}

{{ __('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