diff --git a/resources/views/secure/dashboard.blade.php b/resources/views/secure/dashboard.blade.php index 12cdc3f9..e010cbbb 100644 --- a/resources/views/secure/dashboard.blade.php +++ b/resources/views/secure/dashboard.blade.php @@ -16,8 +16,11 @@ {{ $mailbox->email }}
- @foreach ($mailbox->getMainFolders() as $folder) - {{ $folder->getTypeName() }}{{ $folder->active_count }} + @php + $main_folders = $mailbox->getMainFolders(); + @endphp + @foreach ($main_folders as $folder) + {{ $folder->getTypeName() }}{{ $folder->getActiveCount($main_folders) }} @endforeach