{{ __('Shareholder Report — All Shareholders') }}

{{ __('Generated') }}: {{ now()->format('Y-m-d H:i') }}
{{-- Summary table --}} @foreach($shareholders as $sh) @endforeach
{{ __('Shareholder') }} {{ __('Investment') }} {{ __('Withdrawn') }} {{ __('Net Investment') }} {{ __('Profit') }} {{ __('Profit Withdrawn') }} {{ __('Net Profit') }}
{{ $sh->name }} {{ $sh->is_active ? __('Active') : __('Inactive') }} {{ number_format($sh->total_investment, 2) }} {{ number_format($sh->total_withdrawal, 2) }} {{ number_format($sh->net_investment, 2) }} {{ number_format($sh->total_profit, 2) }} {{ number_format($sh->total_profit_withdrawal, 2) }} {{ number_format($sh->net_profit, 2) }}
{{ __('TOTALS') }} {{ number_format($totals['investment'], 2) }} {{ number_format($totals['withdrawal'], 2) }} {{ number_format($totals['net_investment'], 2) }} {{ number_format($totals['profit'], 2) }} {{ number_format($totals['profit_withdrawal'], 2) }} {{ number_format($totals['net_profit'], 2) }}
{{-- Per-shareholder transaction detail --}} @foreach($shareholders as $sh)
{{ $sh->name }}  {{ $sh->is_active ? __('Active') : __('Inactive') }}  | {{ __('Investment') }}: {{ number_format($sh->net_investment, 2) }}  | {{ __('Net Profit') }}: {{ number_format($sh->net_profit, 2) }}
@if($sh->transactions->isNotEmpty()) @foreach($sh->transactions as $tx) @endforeach
{{ __('Date') }} {{ __('Type') }} {{ __('Amount') }} {{ __('Notes') }}
{{ $tx->transaction_date->format('Y-m-d') }} {{ $tx->type_label }} {{ number_format($tx->amount, 2) }} {{ $tx->notes }}
@else
{{ __('No transactions recorded.') }}
@endif
@endforeach