@extends('layouts.app') @section('content')

Member Details - {{ $member->name }}

Personal Information

Name: {{ $member->name }}

Employee ID: {{ $member->employee_id }}

Email: {{ $member->email }}

Phone: {{ $member->contact }}

Status: {{ ucfirst($member->status) }}

Total Savings: {{ number_format($totalSavings, 2) }}

Total Social: {{ number_format($totalSocial, 2) }}

Regular Savings History

@foreach ($savingsHistory as $history) @endforeach
Date Amount Type Description
{{ \Carbon\Carbon::parse($history->date)->format('Y-m-d') }} {{ number_format($history->amount, 2) }} {{ ucfirst($history->type) }} {{ $history->description ?? 'Monthly Savings' }}

Other Contributions

@foreach ($contributions as $contribution) @endforeach
Date Amount Type Description
{{ \Carbon\Carbon::parse($contribution->date)->format('Y-m-d') }} {{ number_format($contribution->amount, 2) }} {{ ucfirst($contribution->type) }} {{ $contribution->description ?? 'Savings Top up' }}

Add Custom Contribution

@csrf
@endsection