@extends('layouts.backend.app') @section('content')

General Report

Reload Data
{{ $user->total_messages }}
Total Emails
{{ $total_storage_gb }} GB
Total Size
{{ $remaining_storage_gb }} GB
Remaining
{{ $attachment_size }}
Total Attachments

Email Activity Report

@csrf
{{ $total_emails }}
Total Emails
{{ $inbox_count }}
Received
{{ $sent_count }}
Sent
@push('scripts') @endpush

File Storage Usage

@foreach ($attachment_stats->take(4) as $fileType)
{{ $fileType['extension'] }} Files {{ $fileType['total_size_formatted'] }} ({{ $fileType['count'] }})
@endforeach

Top Storage by Contact

{{-- Show More --}}
@foreach ($donut_data['labels'] as $index => $label) @php $colors = [ 'bg-primary', 'bg-pending', 'bg-warning', 'bg-success', 'bg-info', 'bg-danger', ]; $color = $colors[$index % count($colors)]; $percentage = ($donut_data['data'][$index] / array_sum($donut_data['data']->toArray())) * 100; @endphp
{{ $label }} {{ round($percentage) }}%
@endforeach

Official Store

250 Official stores in 21 countries, click the marker to see location details.

Weekly Best Sellers

@foreach (array_slice($fakers, 0, 4) as $faker)
Midone - Tailwind Admin Dashboard Template
{{ $faker['users'][0]['name'] }}
{{ $faker['dates'][0] }}
137 Sales
@endforeach View More
Target Sales
300 Sales
20%
Social Media
320 Followers
New Products
1450 Products
45%
Posted Ads
180 Campaign

Weekly Top Products

IMAGES PRODUCT NAME STOCK STATUS ACTIONS @foreach (array_slice($fakers, 0, 4) as $faker)
{{ $faker['products'][0]['name'] }}
{{ $faker['products'][0]['category'] }}
{{ $faker['stocks'][0] }}
$faker['true_false'][0], 'text-danger' => !$faker['true_false'][0], ])> {{ $faker['true_false'][0] ? 'Active' : 'Inactive' }}
@endforeach
... 1 2 3 ...

File Statistics

@if (isset($attachment_stats) && $attachment_stats->isNotEmpty()) @foreach ($attachment_stats->take(5) as $stat)
{{ $stat['extension'] }} Files
{{ $stat['total_size_formatted'] }}
{{ $stat['count'] }} {{ Str::plural('file', $stat['count']) }}
@endforeach View All Files @else
No attachments found
@endif

Recent Email Activities

View All
@foreach ($recent_emails as $index => $email) @php // Ensure date is a Carbon instance $emailDate = \Carbon\Carbon::parse($email->date); @endphp
@if ($email->correspondenceEmail && $email->correspondenceEmail->avatar) {{ $email->correspondenceEmail->name }} @else No avatar @endif
{{ $email->correspondenceEmail->name ?? (json_decode($email->from)[0] ?? 'Unknown') }}
{{ $emailDate->format('h:i A') }}
{{ $email->correspondenceEmail->label ?? 'Email' }}: {{ Str::limit($email->subject, 25) }}
@if ($email->correspondenceEmail && $email->correspondenceEmail->storage_size != '0 B')
Storage: {{ $email->correspondenceEmail->storage_size }}
@endif
@if ($index == 1 || $index == 3)
{{ $emailDate->format('d F Y') }}
@endif @endforeach @if ($recent_emails->isEmpty())
No recent email activities found
@endif

Important Notes

Lorem Ipsum is simply dummy text
20 Hours ago
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
View Notes Dismiss
Lorem Ipsum is simply dummy text
20 Hours ago
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
View Notes Dismiss
Lorem Ipsum is simply dummy text
20 Hours ago
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
View Notes Dismiss
April
Su
Mo
Tu
We
Th
Fr
Sa
29
30
31
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
1
2
3
4
5
6
7
8
9
UI/UX Workshop 23th
VueJs Frontend Development 10th
Laravel Rest API 31th
@endsection