@extends('layouts.app') @section('content')

My Investments

@forelse($invests as $invest)
Investment #{{ $loop->iteration }}
  • Amount: {{ number_format($invest->amount, 2) }}
  • Percent per month: {{ $invest->percent }}%
  • Invest Date: {{ \Illuminate\Support\Carbon::parse($invest->invest_date)->format('Y-m-d') }}
  • End Date: {{ \Illuminate\Support\Carbon::parse($invest->invest_date)->addMonths($invest->months)->format('Y-m-d') }}
  • Duration: {{ $invest->months }} months
  • Total Profit (planned): {{ number_format($invest->total_profit, 2) }}
  • Total Paid: {{ number_format($invest->profit_received, 2) }}
  • Due Profit: {{ number_format($invest->due_profit, 2) }}
  • Months Paid: {{ $invest->months_paid }} / {{ $invest->months }}
Profit Payments:
@forelse($invest->profit_payments as $profit) @empty @endforelse
Date Paid Remark
{{ $profit->date }} {{ number_format($profit->paid, 2) }} {{ $profit->remark ?? '-' }}
No profit paid yet
@empty
No investments found.
@endforelse
@endsection