Farmer KPI's

@csrf
@php $farmer_participation_percent = 0; if(@$projectDetails->investment_amount > 0){ $farmer_participation_percent = round(($projectDetails->farmer_participation/@$projectDetails->investment_amount)*100,2); } @endphp
{{@$farmer_participation_percent}}%
@if(!empty($grantInvestments) && count($grantInvestments) == 0) Add Grant @endif @if(!empty($investorInvestments) && count($investorInvestments) == 0) Add Investments @endif
@php $lastIter = 0; $lastIter2 = 0 @endphp
@if(isset($grantInvestments) && count($grantInvestments) > 0) @foreach($grantInvestments as $key => $investment)
Unutilized Amount: 0
@php $grant_percent = 0; if(@$projectDetails->investment_amount > 0){ $grant_percent = round(($investment->amount/@$projectDetails->investment_amount)*100,2); } @endphp
{{$grant_percent}}%
@if($loop->last) @php $lastIter = $key; @endphp @endif @endforeach @else
Unutilized Amount: 0
0%
@endif
Add more Remove
@if(isset($investorInvestments) && count($investorInvestments) > 0) @foreach($investorInvestments as $key => $investment)
Unutilized Amount: 0
@php $investment_percent = 0; if(@$projectDetails->investment_amount > 0){ $investment_percent = round(($investment->amount/@$projectDetails->investment_amount)*100,2); } @endphp
{{$investment_percent}}%
@if($loop->last) @php $lastIter2 = $key; @endphp @endif @endforeach @else
Unutilized Amount: 0
0%
@endif
Add more Remove
@php $totalInvestment = $projectDetails->farmerProjectInvestments ? $projectDetails->farmerProjectInvestments->sum('amount') : 0; $glad_participation_amount = @$projectDetails->investment_amount - @$projectDetails->farmer_participation - $totalInvestment; $glad_participation_percent = 0; if($projectDetails->investment_amount > 0){ $glad_participation_percent = round(($glad_participation_amount/$projectDetails->investment_amount)*100,2); } @endphp
{{$glad_participation_percent}}%
Days
Months
{{--
UGX
Ltr
--}}
Cancel