@extends('layouts.admin') @section('title', 'Financial Years') @section('content')
{{--
📅
{{ $yearFolders->count() }}
Total Years
🏢
{{ \App\Models\Company::whereHas('yearFolders')->count() }}
Active Companies
📁
{{ $yearFolders->flatMap->categoryFolders->count() }}
Categories
🗓
{{ $yearFolders->flatMap->categoryFolders->flatMap->monthFolders->count() }}
Months
--}}

Financial Years

Manage your financial years across all companies ({{ $yearFolders->count() }} total)

New Year
@if($yearFolders->count() > 0)
@foreach($yearFolders as $yearFolder)
📅
{{ $yearFolder->getDisplayYearAttribute() }}
{{ $yearFolder->company->name ?? 'No Company' }}
{{ $yearFolder->categoryFolders->count() }}
Categories
{{ $yearFolder->categoryFolders->flatMap->monthFolders->count() }}
Months
@endforeach
@else
No Financial Years
Get started by creating your first financial year
Create First Year
@endif
@endsection