@php use Carbon\Carbon; @endphp

{{ $fundLabel }} — {{ __('Finance year statement') }}

{{ __('Finance year') }}: {{ $period['start']->format('d.m.Y') }} — {{ $period['end']->format('d.m.Y') }}

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

{{ __('Opening balance') }} ({{ $period['start']->format('d.m.Y') }}) {{ number_format($openingBalance, 2) }}
{{ __('Closing balance') }} ({{ $period['end']->format('d.m.Y') }}) {{ number_format($closingBalance, 2) }}

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

@forelse($totalsByType as $type => $amt) @empty @endforelse
{{ __('Type') }} {{ __('Amount') }}
{{ $type }} {{ number_format((float) $amt, 2) }}
{{ __('No ledger movements in this finance year.') }}

{{ __('Official finance year statement generated at year close. For disputes, contact HR.') }}