@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('PF Yearly Summary')) @section('content') @php $types = ['OPENING_BALANCE','INTEREST','CONTRIB_EMP','CONTRIB_EMPLOYER','LOAN_DISBURSE','LOAN_REPAY','WITHDRAWAL','ADJUST']; @endphp
{{ __('Provident Fund — Yearly Summary') }} ({{ $year }})

{{ __('Totals from PF ledger by calendar month and entry type (organization-wide).') }}

@foreach($types as $t) @endforeach @foreach(range(1, 12) as $m) @php $rowTotal = 0; foreach ($types as $t) { $rowTotal += (float) ($monthly[$m][$t] ?? 0); } @endphp @foreach($types as $t) @endforeach @endforeach
{{ __('Month') }}{{ $t }}{{ __('Month Total') }}
{{ \Carbon\Carbon::create(2000, $m, 1)->format('F') }}{{ number_format((float) ($monthly[$m][$t] ?? 0), 2) }}{{ number_format($rowTotal, 2) }}
@endsection @section('script') @endsection