@extends('layouts.memberapp')
@section('title')
{{ __('lng.Member') }} - {{ __('lng.FundList') }}
@endsection
@section('active_fundlist', 'active')
@section('content')
| # |
{{ __('lng.Date') }} |
{{ __('lng.FundList') }} |
{{ __('lng.PayAmount') }} |
{{ __('lng.Payed') }} |
{{ __('lng.Balance') }} |
|
@php $si=0; @endphp
@foreach ($FundListDetails as $FundList)
@php
$Balance = $Payed = 0;
$DTs = date('d-m-Y', strtotime($FundList->FundList->date));
$Balance =
$FundList->amount -
$FundList
->Payments()
->where('isCancelled', false)
->orWhereNull('isCancelled')
->sum('amount');
$Payed = $FundList
->Payments()
->where('isCancelled', false)
->orWhereNull('isCancelled')
->sum('amount');
@endphp
| {{ ++$si }} |
{{ $DTs }} |
{{ $FundList->FundList->title }} |
@currency($FundList->amount) |
@currency($Payed) |
@currency($Balance) |
@endforeach
@endsection