@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.$fundLabel.' FY '.$year->fiscal_year_end) @section('content') @php $routePrefix = $fund.'.finance_year'; $openDate = $period['start']->format('d.m.Y'); $closeDate = $period['end']->format('d.m.Y'); @endphp
{{ $fundLabel }} — 30.06.{{ $year->fiscal_year_end }}

{{ $openDate }} — {{ $closeDate }}

@if($year->status === 'closed') {{ __('Export GL') }} @endif {{ __('Back to list') }}
{{ __('Status') }}
{{ str_replace('_', ' ', ucfirst($year->status)) }}
{{ __('Profit method') }}
{{ str_replace('_', ' ', $year->profit_method) }}
@if($year->total_profit_pool !== null)
{{ __('Profit pool') }}
{{ number_format((float) $year->total_profit_pool, 2) }}
@endif @if($year->notes)
{{ __('Notes') }}
{{ $year->notes }}
@endif
@if($year->status === 'closed')
@csrf
@endif
{{ __('Member snapshots') }}
@foreach($year->snapshots as $snap) @endforeach
{{ __('SID') }} {{ __('Name') }} {{ __('Opening') }} {{ __('Collection') }} {{ __('Returns') }} {{ __('Profit') }} {{ __('Closing') }}
{{ $snap->staff?->displaySid() ?? $snap->staff_id }} {{ $snap->staff?->user?->name ?? '—' }} {{ number_format((float) $snap->opening_balance, 2) }} {{ number_format((float) $snap->collection, 2) }} {{ number_format((float) $snap->returns, 2) }} {{ number_format((float) $snap->profit, 2) }} {{ number_format((float) $snap->closing_balance, 2) }} @if($year->status === 'closed') {{ __('Statement') }} @endif
@if($year->auditLogs->isNotEmpty())
{{ __('Audit log') }}
    @foreach($year->auditLogs as $log)
  • {{ $log->created_at?->format('Y-m-d H:i') }} — {{ $log->action }} ({{ $log->user?->name ?? 'system' }})
  • @endforeach
@endif
@endsection