@extends('layouts.admin.base') @section('page-title') {{ $plan->name }} Profit Calendar @endsection @php $canEdit = $plan->investments->count() == 0; @endphp @section('content')
{{ $plan->minimum_profit }}% - {{ $plan->profit }}% ROI
No Frequency was set, so calendar value below is totally random
@else @foreach ($frequency as $data) @php $total_fixed_frequency+=$data->value; @endphp {{ $data->percentage }}% {{ $data->value }} Times @endforeach @endif @php $remaining_unfixed = $plan->duration - $total_fixed_frequency; @endphp {{-- @if ($remaining_unfixed > 0) Remaining {{ $remaining_unfixed }} Days has random ROI @endif --}}