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

Contribution Details

Individual member contribution history and breakdown

Member Information

Full Name: {{ $firstName }} {{ $middleName }} {{ $lastName }}

Check Number: {{ $checkNumber }}

Contribution History
{{ count($deductionTypes) }} Types
@foreach($deductionTypes as $type) @endforeach @php $columnTotals = array_fill_keys($deductionTypes, 0); @endphp @foreach($formattedData as $year => $months) @foreach($months as $month => $deductions) @foreach($deductionTypes as $type) @php $amount = $deductions[$type] ?? 0; $columnTotals[$type] += $amount; @endphp @endforeach @endforeach @endforeach @foreach($deductionTypes as $type) @endforeach
Date{{ strtoupper($type) }}
{{ $year }}
{{ $month }}{{ number_format($amount, 2) }}
TOTAL{{ number_format($columnTotals[$type], 2) }}
@endsection