@extends('layouts.bootstrap') @section('title', 'Edit Investment') @section('content')
Investment Details
@csrf @method('PUT')
@error('title')
{{ $message }}
@enderror
$ @error('amount')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('source')
{{ $message }}
@enderror
@error('reference_number')
{{ $message }}
@enderror
@error('interest_rate')
{{ $message }}
@enderror
@error('term_months')
{{ $message }}
@enderror
@error('start_date')
{{ $message }}
@enderror
@if($investment->contract_file) @endif
Upload new contract or agreement (PDF, JPG, PNG - Max 5MB). Leave empty to keep current file.
@error('contract_file')
{{ $message }}
@enderror
Cancel
Current Details
Current Amount

${{ number_format($investment->amount, 2) }}

Outstanding Balance

${{ number_format($investment->outstanding_balance, 2) }}

Total Paid

${{ number_format($investment->total_paid, 2) }}

Current Status
{{ ucfirst($investment->status) }}
Created

{{ $investment->created_at->format('M d, Y g:i A') }}
by {{ $investment->creator->name }}

@if($investment->updated_at != $investment->created_at)
Last Updated

{{ $investment->updated_at->format('M d, Y g:i A') }}
by {{ $investment->updater->name }}

@endif
@if($investment->interest_rate && $investment->term_months)
Loan Calculator

Current loan details:

Interest Rate: {{ $investment->interest_rate }}%
Term: {{ $investment->term_months }} months
@if($investment->outstanding_balance > 0) @php $monthlyRate = $investment->interest_rate / 100 / 12; $remainingMonths = $investment->term_months - floor($investment->total_paid / ($investment->amount / $investment->term_months)); if ($remainingMonths > 0 && $monthlyRate > 0) { $monthlyPayment = $investment->outstanding_balance * ($monthlyRate * pow(1 + $monthlyRate, $remainingMonths)) / (pow(1 + $monthlyRate, $remainingMonths) - 1); } else { $monthlyPayment = $investment->outstanding_balance / max(1, $remainingMonths); } @endphp
Monthly Payment: ${{ number_format($monthlyPayment, 2) }}
@endif
@endif
Tips
  • Changes to amount may affect payment calculations
  • Upload new contracts to replace old ones
  • Status changes affect reporting and analytics
  • All changes are tracked for audit purposes
@endsection