@extends('layouts.admin') @section('title', 'Investor Details') @section('page-title', 'Investor Details') @section('page-subtitle', $investor->reference) @section('content')

{{ $investor->full_name }}

{{ $investor->reference }}

{{ ucfirst($investor->status) }}
Phone
{{ $investor->phone }}
Email
{{ $investor->email ?? '-' }}
Bank
{{ $investor->bank_name }}
Account No.
{{ $investor->account_number }}

Investment Details

Principal
₦{{ number_format($investor->principal_amount) }}
Profit Rate
{{ $investor->profit_rate }}% p.a.
Frequency
{{ $investor->payment_frequency }}
Per Period
₦{{ number_format($investor->profit_per_period) }}
Total Profit
₦{{ number_format($investor->expected_profit_total) }}
Start Date
{{ $investor->investment_date->format('d M Y') }}
Maturity
{{ $investor->maturity_date->format('d M Y') }}
Next Payment
{{ $investor->next_payment_date->format('d M Y') }}
@if($investor->status === 'active' && in_array(session('admin_role'), ['admin','manager','cashier']))

Pay Profit

@csrf
@endif
@php $paidTotal = $totalPaid; @endphp

Profit Payment Progress

@php $pct = $investor->expected_profit_total > 0 ? min(100, ($paidTotal / $investor->expected_profit_total) * 100) : 0; @endphp
Paid: ₦{{ number_format($paidTotal) }} Expected: ₦{{ number_format($investor->expected_profit_total) }} {{ number_format($pct, 1) }}% paid

Profit Payment History

@forelse($investor->payments->sortByDesc('payment_date') as $p) @empty @endforelse
Reference Amount Payment Date Recorded By Notes
{{ $p->reference }} ₦{{ number_format($p->amount) }} {{ \Carbon\Carbon::parse($p->payment_date)->format('d M Y H:i') }} {{ $p->recorded_by }} {{ $p->notes ?? '-' }}
No profit payments recorded yet.
@endsection