-
Notifications
You must be signed in to change notification settings - Fork 511
/
Copy pathdashboard.blade.php
59 lines (55 loc) · 3.43 KB
/
dashboard.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@extends('layouts.app')
@section('title', __('Dashboard'))
@section('content')
<div class="container">
<div class="heading">{{ App\Option::getCompanyName() }} {{ __('Dashboard') }}</div>
@filter('before_dashboard', '')
@if (count($mailboxes))
<div class="dash-cards margin-top">
@foreach ($mailboxes as $mailbox)
<div class="dash-card @if (!$mailbox->isActive()) dash-card-inactive @endif">
<div class="dash-card-content">
<h3 class="text-wrap-break "><a href="{{ route('mailboxes.view', ['id' => $mailbox->id]) }}">{{ $mailbox->name }}</a></h3>
<div class="dash-card-link text-truncate">
<a href="{{ route('mailboxes.view', ['id' => $mailbox->id]) }}" class="text-truncate help-link">{{ $mailbox->email }}</a>
</div>
<div class="dash-card-list">
@foreach ($mailbox->getMainFolders() as $folder)
<a href="{{ route('mailboxes.view.folder', ['id' => $mailbox->id, 'folder_id' => $folder->id]) }}" class="dash-card-list-item @if (!$folder->active_count) dash-card-item-empty @endif" title="{{ __('View conversations') }}">{{ $folder->getTypeName() }}<span>{{ $folder->active_count }}</span></a>
@endforeach
</div>
<div class="dash-card-inactive-content">
<div class="block-help">
{{ __('Administrator has not configured mailbox connection settings yet.') }}
</div>
@if (Auth::user()->can('update', $mailbox))
@if (!$mailbox->isOutActive())
<a href="{{ route('mailboxes.connection', ['id' => $mailbox->id]) }}" class="btn btn-link">{{ __('Configure') }}</a>
@elseif (!$mailbox->isInActive())
<a href="{{ route('mailboxes.connection.incoming', ['id' => $mailbox->id]) }}" class="btn btn-link">{{ __('Configure') }}</a>
@endif
@endif
</div>
</div>
<div class="dash-card-footer">
<div>
<a href="{{ route('conversations.create', ['mailbox_id' => $mailbox->id]) }}" class="glyphicon glyphicon-envelope" data-toggle="tooltip" title="{{ __("New Conversation") }}"></a>
</div>
@if (Auth::user()->can('update', $mailbox))
<div class="btn-group dropdown dropup" data-toggle="tooltip" title="{{ __("Mailbox Settings") }}">
<a class="glyphicon glyphicon-cog dropdown-toggle" data-toggle="dropdown" href="#"></a>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
@include("mailboxes/settings_menu")
</ul>
</div>
@endif
</div>
</div>
@endforeach
</div>
@else
@include('partials/empty', ['icon' => 'home', 'empty_text' => __("Welcome home!")])
@endif
@filter('after_dashboard', '')
</div>
@endsection