@extends('layouts.app') @section('title', 'Investor: ' . $investor->name) @section('content')
{{-- Header --}}

{{ $investor->name }}

{{ $investor->mobile }} @if ($investor->email) • {{ $investor->email }} @endif

Ledger @can('update', $investor) Edit @endcan
{{-- Contact Info --}}
Contact Information
NID
{{ $investor->nid ?? '—' }}
Status
{{ $investor->is_active ? 'Active' : 'Inactive' }}
Address
{{ $investor->address ?? '—' }}
{{-- Portfolio Summary --}}
Total Investment
{{ number_format($portfolio['total_investment'], 2) }}
Total Distributed
{{ number_format($portfolio['total_distributed'], 2) }}
Distributions
{{ $distributionSummary['total_payments'] }}
@if ($distributionSummary['total_reversals'] > 0)
Reversals: {{ number_format($distributionSummary['total_reversals'], 2) }}
@endif
{{-- Portfolio by Project --}} @if (!empty($portfolio['projects']))
Portfolio by Project
@foreach ($portfolio['projects'] as $project) @endforeach
Project Invested Distributed Net Capital
{{ $project['project_name'] }} {{ number_format($project['invested'], 2) }} {{ number_format($project['distributed'], 2) }} {{ number_format($project['invested'] - $project['distributed'], 2) }}
@endif {{-- Profit Rules --}}
Profit Rules
@forelse ($investor->profitRules as $rule) @empty @endforelse
Project Type Value Description
{{ $rule->project?->project_name ?? 'N/A' }} {{ ucfirst($rule->profit_type) }} @if ($rule->profit_type === 'percentage') {{ number_format($rule->profit_value, 2) }}% @else {{ number_format($rule->profit_value, 2) }} @endif {{ $rule->description ?? '—' }}
No profit rules configured.
{{-- Recent Investments --}}
Recent Investments
@forelse ($investor->investments->take(10) as $inv) @empty @endforelse
Date Project Amount Method
{{ $inv->investment_date->format('d M Y') }} {{ $inv->project?->project_name ?? 'N/A' }} {{ number_format($inv->amount, 2) }} {{ $inv->paymentMethod?->method_name ?? '—' }}
No investments recorded.
{{-- Recent Distributions --}}
Recent Distributions
@forelse ($investor->profitDistributions->take(10) as $dist) @empty @endforelse
Date Project Amount Narration Type
{{ $dist->distribution_date->format('d M Y') }} {{ $dist->project?->project_name ?? 'N/A' }} {{ $dist->is_reversal ? '-' : '' }}{{ number_format($dist->amount, 2) }} {{ Str::limit($dist->narration, 50) }} @if ($dist->is_reversal) Reversal @else Distribution @endif
No distributions recorded.
@endsection