@extends('layouts.app') @section('title','Pension Account') @section('page-title','Pension') @section('content')
{{-- Account Summary --}}
{{ strtoupper(substr($pension->employee?->first_name,0,1).substr($pension->employee?->last_name,0,1)) }}
{{ $pension->employee?->full_name }}
{{ $pension->employee?->employee_number }}
${{ number_format($pension->total_employee_contributions, 2) }}
Employee
${{ number_format($pension->total_employer_contributions, 2) }}
Employer
${{ number_format($pension->total_contributions, 2) }}
Total Fund
@if($pension->scheme_name)
Scheme: {{ $pension->scheme_name }}
@endif @if($pension->pension_number)
Member No.: {{ $pension->pension_number }}
@endif
Enrolled: {{ $pension->enrollment_date->format('M d, Y') }}
Rates: {{ $pension->employee_contribution_rate }}% / {{ $pension->employer_contribution_rate }}%
@if($pension->beneficiary_name)
Beneficiary: {{ $pension->beneficiary_name }} ({{ $pension->beneficiary_relationship }})
@endif
{{-- Status Update --}}
Update Status
@csrf
{{-- Record Contribution --}}
Record Contribution
@csrf
Employee: {{ $pension->employee_contribution_rate }}% · Employer: {{ $pension->employer_contribution_rate }}%
{{-- Contributions History --}}
Contribution History ({{ $contributions->total() }})
@forelse($contributions as $c) @empty @endforelse @if($contributions->count()) @endif
Date Gross Basis Employee Employer Total Reference
{{ $c->contribution_date->format('M d, Y') }} ${{ number_format($c->gross_basis, 2) }} ${{ number_format($c->employee_amount, 2) }} ${{ number_format($c->employer_amount, 2) }} ${{ number_format($c->total_amount, 2) }} {{ $c->reference ?: '—' }}
No contributions recorded yet.
Totals (this page) ${{ number_format($contributions->sum('employee_amount'), 2) }} ${{ number_format($contributions->sum('employer_amount'), 2) }} ${{ number_format($contributions->sum('total_amount'), 2) }}
@if($contributions->hasPages())
{{ $contributions->links('pagination::bootstrap-5') }}
@endif
@endsection