{{ __('Shareholder Report') }}

{{ $shareholder->name }}  {{ $shareholder->is_active ? __('Active') : __('Inactive') }}   |  {{ __('Generated') }}: {{ now()->format('Y-m-d H:i') }}
{{-- Summary --}}
{{ __('Total Investment') }} {{ number_format($shareholder->total_investment, 2) }} {{ __('Investment Withdrawn') }} {{ number_format($shareholder->total_withdrawal, 2) }} {{ __('Net Investment') }} {{ number_format($shareholder->net_investment, 2) }}  
{{ __('Total Profit') }} {{ number_format($shareholder->total_profit, 2) }} {{ __('Profit Withdrawn') }} {{ number_format($shareholder->total_profit_withdrawal, 2) }} {{ __('Net Profit') }} {{ number_format($shareholder->net_profit, 2) }}  
{{-- Transactions --}} @if($shareholder->transactions->isNotEmpty())

{{ __('Transaction History') }}

@php $runningBalance = 0; @endphp @foreach($shareholder->transactions as $i => $tx) @endforeach
# {{ __('Date') }} {{ __('Type') }} {{ __('Amount') }} {{ __('Notes') }}
{{ $i + 1 }} {{ $tx->transaction_date->format('Y-m-d') }} {{ $tx->type_label }} {{ number_format($tx->amount, 2) }} {{ $tx->notes }}
{{ __('Total Transactions') }} {{ number_format($shareholder->transactions->sum('amount'), 2) }}
@else

{{ __('No transactions recorded for this shareholder.') }}

@endif