@php use Carbon\Carbon; @endphp

{{ __('Provident Fund — yearly certificate') }}

{{ __('Calendar year') }}: {{ $year }}

{{ __('Employee') }}: {{ $staff->user?->name }} ({{ $staff->user?->id }})
{{ __('Department') }}: {{ $staff->department?->name ?? '—' }}
{{ __('Branch') }}: {{ $staff->warehouse?->name ?? '—' }}
{{ __('Issued') }}: {{ Carbon::now()->format('Y-m-d H:i') }}

{{ __('Summary by transaction type') }}

@forelse($totalsByType as $type => $amt) @empty @endforelse
{{ __('Type') }} {{ __('Amount') }}
{{ $type }} {{ number_format((float) $amt, 2) }}
{{ __('No ledger movements in this year.') }}
{{ __('Net movement for year (sum of amounts)') }} {{ number_format($closingBalance, 2) }}

{{ __('This document is generated from system ledger entries for the selected year only. For disputes, contact HR.') }}