@yield('css')
@php // dd($counts); if (!Auth::check()) { header('Location: ' . route('login')); // exit(); } @endphp
@php $mailInfoRoute = isset($employee) ? route('mail.info', $employee->id) : route('mail.info'); @endphp
Mail Dashboard
{{ isset($employee) ? $employee->email : Auth::user()->email ?? 'Guest' }}
Home
@if (Auth::check() && Auth::user()->auth_id == 0)
Team Member
@endif
@csrf
Logout
{{--
Logout
--}}
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 }}
Group By
{{ ($counts['sales'] ?? 0) + ($counts['amc'] ?? 0) }}
Sales
{{ $counts['sales'] ?? 0 }}
AMC
{{ $counts['amc'] ?? 0 }}
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 {{--
Promotion Mail (10)
--}}
@yield('content')
@stack('scripts')
{{--
Loding .....
--}}
L
O
A
D
I
N
G