{{ $loop->iteration }} |
{!! $investor_user->user->name !!} {!! $investor_user->user->surname !!} |
{{ $investor_user->contract_number }} |
{{ $investor_user->user->bank_account }} |
{!! $investor_user->user->embg !!} |
{!! $investor_user->user->id_card_number !!} |
@php
$month = \Carbon\Carbon::createFromFormat('Y-m', $selectedMonth);
$monthNum = $month->month;
$year = $month->year;
$payment = $investor_user->payoutPlan
->first(function ($plan) use ($monthNum, $year) {
$date = \Carbon\Carbon::createFromFormat('d/m/Y', $plan->date_for_payment);
return $date->month === $monthNum && $date->year === $year;
});
@endphp
@if($investor_user->monthly_or_project_end_payment == "monthly")
{{ str_replace([',', '.', ' '], '', $payment->amount_for_payment) }}
@else
{{ $investor_user->nextAmountForPayment(1) }}
@endif
|
@if($payment)
{{ $payment->date_for_payment }}
@else
{{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $investor_user->project->end_date)->format('d/m/Y') }}
@endif
|
@endforeach