@extends('layouts.app')
@section('content')
My Investments
@forelse($invests as $invest)
- 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:
| Date |
Paid |
Remark |
@forelse($invest->profit_payments as $profit)
| {{ $profit->date }} |
{{ number_format($profit->paid, 2) }} |
{{ $profit->remark ?? '-' }} |
@empty
| No profit paid yet |
@endforelse
@empty
No investments found.
@endforelse
@endsection