@extends('layouts.app') @section('title','Shares โ€” '.$member->name) @section('page-title','Share Registry') @section('content')
Back
{{ $member->name }}'s Share Account
{{ $member->member_id }} ยท {{ $member->department }}
Issue More Shares
@php $priceUsd = \App\Services\ShareService::pricePerShareUsd(); @endphp
{{ number_format($ledger->total_shares) }}
Shares Held
${{ number_format($ledger->total_invested_usd,2) }}
Total Invested (USD)
L${{ number_format($ledger->total_invested_lrd,2) }}
${{ number_format($ledger->total_shares * $priceUsd,2) }}
Current Value (USD)
${{ number_format($ledger->total_dividends_usd,2) }}
Total Dividends Earned
L${{ number_format($ledger->total_dividends_lrd,2) }}
Transaction History
{{ ucfirst($ledger->status) }}
@forelse($transactions as $txn) @empty @endforelse
ReferenceTypeShares Amount (USD)Amount (LRD) MethodInstalmentStatusDate
{{ $txn->reference }} @php $typeColors = ['purchase'=>'active','deduction'=>'paid','dividend'=>'disbursed','refund'=>'rejected']; @endphp {{ $txn->getTypeLabel() }} {{ number_format($txn->shares) }} {{ $txn->type==='refund'?'-':'+' }}${{ number_format($txn->amount_usd,2) }} L${{ number_format($txn->amount_lrd,2) }} {{ ucfirst(str_replace('_',' ',$txn->payment_method)) }} @if($txn->instalment_number) {{ $txn->instalment_number }} of {{ $txn->total_instalments }} @else โ€” @endif {{ ucfirst($txn->status) }} {{ $txn->transaction_date?->format('d M Y') ?? 'โ€”' }} @if($txn->status==='pending')
@csrf
@endif
No transactions yet
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection