@extends('layouts.app') @section('content')
Contribution Analysis Dashboard

Comprehensive deduction analysis with advanced filtering and insights (Code: 667)

{{ number_format($count) }}
Total Records
Active Filter
{{ is_object($deductions) && method_exists($deductions, 'count') && $deductions->count() > 0 ? number_format($deductions->sum('deductionAmount'), 2) : (is_array($deductions) && count($deductions) > 0 ? number_format(array_sum(array_column($deductions, 'deductionAmount')), 2) : '0.00') }}
Total Deductions
TZS
{{ is_object($deductions) && method_exists($deductions, 'count') && $deductions->count() > 0 ? number_format($deductions->avg('deductionAmount'), 2) : (is_array($deductions) && count($deductions) > 0 ? number_format(array_sum(array_column($deductions, 'deductionAmount')) / count($deductions), 2) : '0.00') }}
Average Deduction
Per Member
{{ is_array($departments) ? count($departments) : $departments->count() }}
Departments
Active
Advanced Analytics Filters
{{ number_format($count) }} Records
Deduction Analysis Results
@forelse ($deductions as $index => $deduction) @empty @endforelse
Check Number Employee Name Monthly Salary Deduction Amount Balance Amount Description Vote Code Department Check Date Actions
{{ $deduction->checkNumber }}
{{ trim("{$deduction->firstName} {$deduction->middleName} {$deduction->lastName}") }}
TZS {{ number_format($deduction->monthlySalary, 2) }} TZS {{ number_format($deduction->deductionAmount, 2) }} TZS {{ number_format(($deduction->balanceAmount ?? ($deduction->monthlySalary - $deduction->deductionAmount)), 2) }} {{ $deduction->deductionDesc ?? 'Contribution Deduction' }} {{ $deduction->voteCode ?? 'N/A' }} {{ $deduction->deptName }} {{ \Carbon\Carbon::parse($deduction->checkDate)->format('d M Y') }}
No Records Found

Try adjusting your filter criteria

@endsection