@extends('layouts.app') @section('title', __('Dashboard')) @section('content')
{{ App\Option::getCompanyName() }} {{ __('Dashboard') }}@action('dashboard.heading_append')
@filter('dashboard.before', '') @if (count($mailboxes))
@foreach ($mailboxes as $mailbox)
@action('dash_card.before_mailbox_name', $mailbox)

@include('mailboxes/partials/mute_icon', ['mailbox' => $mailbox]){{ $mailbox->name }}

@php $main_folders = $mailbox->getMainFolders(); @endphp @foreach ($main_folders as $folder) @php $active_count = $folder->getCount($main_folders); @endphp {{ $folder->getTypeName() }}@if (!$folder->isIndirect() && $active_count)/ {{ $folder->getWaitingSince() }}@endif{{ $active_count }} @endforeach
{{ __('Administrator has not configured mailbox connection settings yet.') }}
@if (Auth::user()->can('update', $mailbox)) @if (!$mailbox->isOutActive()) {{ __('Configure') }} @elseif (!$mailbox->isInActive()) {{ __('Configure') }} @endif @endif
@endforeach
@elseif (Auth::user()->isAdmin()) {{ __("Manage Mailboxes") }} @else @include('partials/empty', ['icon' => 'home', 'empty_text' => __("Welcome home!")]) @endif @filter('dashboard.after', '')
@endsection