@yield('css')
@php // dd($counts); if (!Auth::check()) { header('Location: ' . route('login')); // exit(); } @endphp
Mail Dashboard | @php $mailInfoRoute = isset($employee) ? route('mail.info', $employee->id) : route('mail.info'); @endphp
{{ isset($employee) ? $employee->email : Auth::user()->email ?? 'Guest' }}
{{--
--}} {{--
--}} {{-- {{ $counts['countis_not_spam_heading'] ?? 'Negative' }} --}} {{-- Reply Mail
--}} {{-- {{ $counts['send-mail'] ?? 0 }} {{ $counts['track_mail'] ?? 0 }} --}} {{-- {{ ($counts['send-mail'] ?? 0) + ($counts['track_mail'] ?? 0) }} --}} {{-- {{ $counts['send-mail'] ?? 0 }}
--}}
Reply
{{ $counts['send-mail'] ?? 0 }} {{-- {{ ($counts['send-mail'] ?? 0) + ($counts['replied_mail'] ?? 0) }} --}}
Pending Reply
{{ $counts['send-mail'] ?? 0 }}
Replied Mail
{{ $counts['replied_mail'] ?? 0 }}
{{--
--}} {{--
--}} {{-- {{ $counts['countis_not_spam_heading'] ?? 'Positive' }} --}} {{-- Positive Mail
{{ $counts['countis_not_spam'] ?? 0 }}
--}} {{--
--}} {{--
--}} {{-- {{ $counts['countis_not_spam_heading'] ? 'Not ' . $counts['countis_not_spam_heading'] : 'Positive' }} --}} {{-- {{ $counts['countis_not_spam_heading'] ?? 'Negative' }} --}} {{-- Negative Mail
{{ $counts['countis_spam'] ?? 0 }}
--}} {{--
--}} {{--
--}} {{-- {{ $counts['countis_not_spam_heading'] ?? 'Negative' }} --}} {{-- Neutral Mail
{{ $counts['neutral'] ?? 0 }}
--}}
Group By
{{ ($counts['sales'] ?? 0) + ($counts['amc'] ?? 0) }}
Sales
{{ $counts['sales'] ?? 0 }}
AMC
{{ $counts['amc'] ?? 0 }}
{{-- @if (!empty($counts['employee_data'])) @foreach ($counts['employee_data'] as $item)
--}} {{--
{{ $item['email'] }}
--}} {{--
0
--}} {{--
ID: {{ $item['id'] }}, Email: {{ $item['email'] }}
--}} {{-- @endforeach @endif --}} @if (Auth::check() && Auth::user()->auth_id == 0) {{--
Accounts
HR Department Team
Sales Department Team
--}} {{-- @php $departments = \DB::table('departments') ->where('user_id', Auth::id()) ->where('is_deletable', '!=', 1) ->get(); @endphp @if ($departments->isNotEmpty()) @foreach ($departments as $department)
{{ $department->department_name }}
@endforeach @else
No Department
@endif
All Team
--}} @endif
Sentiment
{{ ($counts['countis_not_spam'] ?? 0) + ($counts['countis_spam'] ?? 0) + ($counts['neutral'] ?? 0) }}
Positive Mail
{{ $counts['countis_not_spam'] ?? 0 }}
Negative Mail
{{ $counts['countis_spam'] ?? 0 }}
Neutral Mail
{{ $counts['neutral'] ?? 0 }}
{{--
--}} Promotion Mail
{{ $counts['promotion'] ?? 0 }}
{{--
--}} Unread
{{ $counts['countUnread'] ?? 0 }}
{{--
--}} Read
{{ $counts['countRead'] ?? 0 }}
{{--
All --}} Mail
{{ $counts['countAll'] ?? 0 }}
@if (Auth::check() && Auth::user()->auth_id == 0)
Summary
Latest 20 Mails
Loading summary...
@endif
@yield('content')
@stack('scripts')
{{--
Loding .....
--}}
L
O
A
D
I
N
G