{{__('lang.all_expenses')}} |
@foreach ($investors as $investor)
@php
$percentage = $investor->total_share;
$expenses_share = round((($totalExpenses->groupTotalBalances * $percentage)/100),2);
$grand_totals[$investor->id] += $investor->expenses_share;
@endphp
{{ $transaction->convert_money_format($expenses_share) }}
|
@endforeach
{{ $transaction->convert_money_format($totalExpenses->groupTotalBalances) }} |
{{-- @if ($investor->invested_amount != 0)
{{__('lang.invested_amount')}} |
@foreach ($investors as $investor)
@php
$grand_totals[$investor->id] += $investor->invested_amount;
@endphp
{{ $transaction->convert_money_format(abs($investor->invested_amount)) }}
|
@endforeach
{{ $transaction->convert_money_format(abs($investors->sum('invested_amount'))) }} |
@endif --}}
{{--
{{__('lang.loan')}} |
@foreach ($investors as $investor)
@php
$grand_totals[$investor->id] += $investor->loan_amount;
@endphp
{{ $transaction->convert_money_format($investor->loan_amount) }}
|
@endforeach
- |
--}}
{{--
{{__('lang.capital_excess_and_short')}} |
@foreach($grand_totals as $grand_total)
{{ $transaction->convert_money_format($grand_total) }} |
@endforeach
{{ $transaction->convert_money_format($investors->sum('expenses_share') - $investors->sum('invested_amount')) }} |
--}}