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

{{ $status }} Investments

{{ $status }} Investments

@forelse ($investments as $investment) @empty @endforelse
S/N Plan Username Amount Invested {{ $status == 'completed' ? 'Profit Earned' : 'Expected Profit' }} Date Invested Date {{ $status == 'completed' ? 'Completed' : 'of Completion' }}
{{ $loop->iteration }} {{ $investment->plan->name ?? '-' }} {{ $investment->user->username ?? '-' }} ${{ number_format($investment->amount_invested, 2) }} ${{ number_format(($investment->plan->duration * $investment->profit_rate), 2) }} {{ $investment->created_at->format('M d, Y') }} {{ $investment->end_date->format('M d, Y') }}
No result found
{{ $investments->render('vendor.pagination.pagination') }}
@endsection