@extends('adminlte::page') @section('title', 'Shares Management') @section('content_header')

Shares Management

@stop @section('content')

Shares Account

Total Shares
{{ number_format($totalShares) }}
Shares owned
Total Value
KSh {{ number_format($totalValue, 0) }}
Investment value
Shareholders
{{ $totalMembersWithShares }}
Active members
Recent Activity
{{ $recentPurchases }}
Last 30 days
Monthly Shares
{{ number_format($monthlySharesPurchased) }}
{{ date('M Y') }} purchases
Monthly Value
KSh {{ number_format($monthlyValuePurchased, 0) }}
{{ date('M Y') }} investment
Top Shareholder
@if($topShareholderByCount) {{ Str::limit($topShareholderByCount->user->full_name, 15) }} @else No Data @endif
@if($topShareholderByCount) {{ number_format($topShareholderByCount->total_shares, 0) }} shares @else N/A @endif
Highest Investment
@if($topShareholderByValue) {{ Str::limit($topShareholderByValue->user->full_name, 15) }} @else No Data @endif
@if($topShareholderByValue) KSh {{ number_format($topShareholderByValue->total_value, 0) }} @else N/A @endif

Member Shares

@forelse($shares as $share) @empty @endforelse
ID Member Shares Value/Share Total Value Purchase Date Created Actions
{{ $share->id }}
{{ Str::limit($share->user->full_name ?? 'N/A', 18) }}
{{ number_format($share->number_of_shares) }} KSh {{ number_format($share->share_value, 0) }} KSh {{ number_format($share->total_value, 0) }} {{ $share->purchase_date->format('d M Y') }} {{ $share->created_at->format('d M Y') }}
@csrf @method('DELETE')
No Share Purchases Yet

Start by adding your first share purchase to the system.

Add First Share Purchase
@if($shares->hasPages()) @endif
@push('js') @if(session('success')) Swal.fire({ icon: 'success', title: 'Success!', text: '{{ session("success") }}', timer: 3000, showConfirmButton: false }); @endif @if(session('error')) Swal.fire({ icon: 'error', title: 'Error!', text: '{{ session("error") }}', timer: 3000, showConfirmButton: false }); @endif @endpush @stop