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

Details of {{ $email_attachment->email_address }}

Midone - Tailwind Admin Dashboard Template
{{ $correspondence->name }}
{{ $receivedCount }}
Received From Contact
{{ $sentCount }}
Sent To Contact
@if ($correspondence->storage_size == '0 B') 0 B @else {{ $correspondence->storage_size ?? '0 B' }} @endif
Total Attachment Storage
Images Videos Audio Documents Others
@foreach ($attachments as $attachment) @php // Get file extension safely $fileType = isset($attachment['type']) ? $attachment['type'] : strtolower(pathinfo($attachment['filename'], PATHINFO_EXTENSION)); // Calculate width classes for responsive grid $widthClass = 'w-full sm:w-[calc(50%-1rem)] md:w-[calc(33.333%-1.125rem)] lg:w-[calc(25%-1.25rem)] xl:w-[calc(20%-1.25rem)]'; $aspectClass = 'aspect-square'; if (isset($attachment['path'])) { try { $dimensions = getimagesize($attachment['path']); if ($dimensions) { $ratio = $dimensions[0] / $dimensions[1]; $aspectClass = $ratio >= 1 ? 'aspect-video' : 'aspect-[9/16]'; } } catch (Exception $e) { // Handle exception if needed } } @endphp @if (in_array($fileType, ['jpg', 'jpeg', 'png', 'gif', 'webp'])) @if (isset($attachment['path']) && Storage::disk('public')->exists($attachment['relative_path']))
@endif @endif @endforeach
@foreach ($attachments as $attachment) @php $extension = strtolower(pathinfo($attachment['filename'], PATHINFO_EXTENSION)); @endphp @if (in_array($extension, ['mp4', 'mov', 'avi', 'mkv', 'webm'])) @if (isset($attachment['path']) && Storage::disk('public')->exists($attachment['relative_path']))
{{ $attachment['filename'] }}
@endif @endif @endforeach
@foreach ($attachments as $attachment) @php $extension = strtolower(pathinfo($attachment['filename'], PATHINFO_EXTENSION)); @endphp @if (in_array($extension, ['mp3', 'wav', 'ogg', 'm4a', 'flac'])) @if (isset($attachment['path']) && Storage::disk('public')->exists($attachment['relative_path']))

{{ $attachment['filename'] }}

{{-- {{ round(filesize($attachment['path']) / 1024 / 1024, 2) }} MB --}}

@endif @endif @endforeach
@foreach ($attachments as $attachment) @php $extension = strtolower(pathinfo($attachment['filename'], PATHINFO_EXTENSION)); $icon = 'FileText'; if (in_array($extension, ['pdf'])) { $icon = 'FileText'; } elseif (in_array($extension, ['doc', 'docx'])) { $icon = 'FileText'; } elseif (in_array($extension, ['xls', 'xlsx'])) { $icon = 'FileText'; } elseif (in_array($extension, ['ppt', 'pptx'])) { $icon = 'FileText'; } elseif (in_array($extension, ['txt'])) { $icon = 'FileText'; } @endphp @if (in_array($extension, ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt'])) @if (isset($attachment['path']) && Storage::disk('public')->exists($attachment['relative_path']))
{{ $attachment['filename'] }}
{{ strtoupper($extension) }} {{-- {{ round(filesize($attachment['path']) / 1024 / 1024, 2) }} MB --}}
Download
@endif @endif @endforeach
@foreach ($attachments as $attachment) @php $extension = strtolower(pathinfo($attachment['filename'], PATHINFO_EXTENSION)); $icon = 'Archive'; if (in_array($extension, ['zip', 'rar', '7z'])) { $icon = 'Archive'; } elseif (in_array($extension, ['exe', 'msi'])) { $icon = 'Binary'; } @endphp @if ( !in_array($extension, [ 'jpg', 'jpeg', 'png', 'gif', 'webp', // images 'mp4', 'mov', 'avi', 'mkv', 'webm', // videos 'mp3', 'wav', 'ogg', 'm4a', 'flac', // audio 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', // documents ])) @if (isset($attachment['path']) && Storage::disk('public')->exists($attachment['relative_path']))
{{ $attachment['filename'] }}
{{ strtoupper($extension) }} {{-- {{ round(filesize($attachment['path']) / 1024 / 1024, 2) }} MB --}}
Download
@endif @endif @endforeach

Top Categories

Add Category Settings
Wordpress Template
HTML, PHP, Mysql
6.5k
+150
Bootstrap HTML Template
HTML, PHP, Mysql
2.5k
+150
Tailwind HTML Template
HTML, PHP, Mysql
3.4k
+150

Work In Progress

New Last Week
Pending Tasks
20%
Completed Tasks
2 / 20
Tasks In Progress
42
View More Details

Daily Sales

Download Excel
Midone - Tailwind Admin Dashboard Template
{{ $fakers[0]['users'][0]['name'] }}
Bootstrap 4 HTML Admin Template
+$19
Midone - Tailwind Admin Dashboard Template
{{ $fakers[1]['users'][0]['name'] }}
Tailwind Admin Dashboard Template
+$25
Midone - Tailwind Admin Dashboard Template
{{ $fakers[2]['users'][0]['name'] }}
Vuejs HTML Admin Template
+$21

Latest Tasks

New Last Week

General Statistics

Download XML
Net Worth
USP: +23%
Sales
USP: -5%
Profit
USP: -10%
Products
USP: +55%
Product Profit
Author Sales
Correspondences Attachments Recipients @if (count($emails)) @foreach ($emails as $email)

{{ $email['subject'] }}

@if (count($email['attachments'])) Contains attachments @endif

From: {{ implode(', ', $email['from']) }}

To: {{ is_array($email['to']) ? implode(', ', $email['to']) : $email['to'] }}

Date: {{ $email['date_time'] }}

@if (str_contains($email['bodyText'], '<') && str_contains($email['bodyText'], '>')) {!! $email['bodyText'] !!} @else @foreach (explode("\n", $email['bodyText']) as $paragraph) @if (trim($paragraph))

{{ $paragraph }}

@endif @endforeach @endif
@if (count($email['attachments']))
Attachments
@endif
@endforeach @else

No emails found.

@endif
DATE & TIME FILE TYPE FILE SIZE USED FILE NAME @if ($email_attachment->attachments->count()) @foreach ($email_attachment->attachments as $attach)
{{ $attach->date_time }}
{{ $attach->type }} {{ $attach->size }} {{ storage_percentage($attach->size, auth()->user()->total_storage) }} {{ $attach->attachment_name }}
@endforeach @endif

To:

{{--
To:
--}}
@if (count($recipients['to'])) @foreach ($recipients['to'] as $recipient) {{ $recipient }} @endforeach @else None @endif
{{--
CC:
--}}

CC:

@if (count($recipients['cc'])) @foreach ($recipients['cc'] as $recipient) {{ $recipient }} @endforeach @else None @endif
{{--
BCC:
--}}

BCC:

@if (count($recipients['bcc'])) @foreach ($recipients['bcc'] as $recipient) {{ $recipient }} @endforeach @else None @endif
Correspondences Attachments Recipients @if (count($emails)) @foreach ($emails as $email)

{{ $email['subject'] }}

@if (count($email['attachments'])) Contains attachments @endif

From: {{ implode(', ', $email['from']) }}

To: {{ is_array($email['to']) ? implode(', ', $email['to']) : $email['to'] }}

Date: {{ $email['date_time'] }}

@if (str_contains($email['bodyText'], '<') && str_contains($email['bodyText'], '>')) {!! $email['bodyText'] !!} @else @foreach (explode("\n", $email['bodyText']) as $paragraph) @if (trim($paragraph))

{{ $paragraph }}

@endif @endforeach @endif
@if (count($email['attachments']))
Attachments
@endif
@endforeach @else

No emails found.

@endif
DATE & TIME FILE TYPE FILE SIZE USED FILE NAME @if ($email_attachment->attachments->count()) @foreach ($email_attachment->attachments as $attach)
{{ $attach->date_time }}
{{ $attach->type }} {{ $attach->size }} {{ storage_percentage($attach->size, auth()->user()->total_storage) }} {{ $attach->attachment_name }}
@endforeach @endif

To:

{{--
To:
--}}
@if (count($recipients['to'])) @foreach ($recipients['to'] as $recipient) {{ $recipient }} @endforeach @else None @endif
{{--
CC:
--}}

CC:

@if (count($recipients['cc'])) @foreach ($recipients['cc'] as $recipient) {{ $recipient }} @endforeach @else None @endif
{{--
BCC:
--}}

BCC:

@if (count($recipients['bcc'])) @foreach ($recipients['bcc'] as $recipient) {{ $recipient }} @endforeach @else None @endif
@endsection