mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-25 03:43:33 +01:00
Show number of conversations in Spam folder
This commit is contained in:
parent
8f4d942ced
commit
399a815526
@ -14,7 +14,11 @@
|
||||
<li class="@if ($folder_item->id == $folder->id) active @endif">
|
||||
<a href="{{ route('mailboxes.view.folder', ['id'=>$mailbox->id, 'folder_id'=>$folder_item->id]) }}" @if (!$folder_item->active_count) class="no-active" @endif><i class="glyphicon glyphicon-{{ $folder_item->getTypeIcon() }}"></i> {{ $folder_item->getTypeName() }}
|
||||
@php
|
||||
$active_count = $folder_item->getCount($folders);
|
||||
if ($folder_item->type == App\Folder::TYPE_SPAM) {
|
||||
$active_count = $folder_item->total_count;
|
||||
} else {
|
||||
$active_count = $folder_item->getCount($folders);
|
||||
}
|
||||
@endphp
|
||||
@if ($active_count)<span class="active-count pull-right" data-toggle="tooltip" title="{{ __("Active Conversations") }}">
|
||||
{{ $active_count }}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user