@extends('layouts.app') @section('title', 'Investors') @section('content')
{{-- Header --}}

Investors

Module 7 — Manage project investors

@can('create', App\Models\Investor::class) Add Investor @endcan
{{-- Filters --}}
Clear
{{-- Summary --}}
Total Investors
{{ $investors->total() }}
Total Investment
{{ number_format($investors->getCollection()->sum('total_investment'), 2) }}
Total Distributed
{{ number_format($investors->getCollection()->sum('total_profit_distributed'), 2) }}
{{-- Table --}}
@forelse ($investors as $investor) @empty @endforelse
# Name Mobile NID Invested Distributed Status Actions
{{ $investor->id }} {{ $investor->name }} {{ $investor->mobile }} {{ $investor->nid ?? '—' }} {{ number_format($investor->total_investment, 2) }} {{ number_format($investor->total_profit_distributed, 2) }} {{ $investor->is_active ? 'Active' : 'Inactive' }}
@can('update', $investor) @endcan @can('delete', $investor)
@csrf @method('DELETE')
@endcan
No investors found.
@if ($investors->hasPages()) @endif
@endsection