@extends('dashboard.layouts.main') @section('content') @php $authUser = Auth::user(); @endphp
Processing emails... 0%
Loading...
Fetching Emails please wait...
@if($authUser->platform == 1) @if (session('yourEmail'))

Welcome, {{$authUser->name}} {{ session('yourEmail') }}!

@else Login with Google @endif @elseif($authUser->platform == 2) @if (session('microsoft_email'))

Welcome, {{ session('microsoft_email') }}!

@else @endif @endif
@if ($correspondences)
Total Email {{count($allEmails)}}
@endif

Client List

@if (session('success'))
{{ session('success') }}
@endif
@csrf
@foreach ($correspondences as $index=> $correspondence) @php $attachmentSize = ""; if($correspondence->attachments()->exists()){ $allSize = $correspondence->attachments()->pluck('size')->toArray(); $attachmentSize = formatSize(array_sum(array_map('convertToBytes', $allSize))); } @endphp {{-- --}} @endforeach
# Photo Lable Name Email Address Last Update Total Message Attachment File Size Actions
{{ ($correspondences->currentPage() - 1) * $correspondences->perPage() + $index + 1 }} {{ ucwords(strtolower(str_replace('_', ' ', $correspondence->label))) }} {{ ucwords(strtolower(str_replace('_', ' ', $correspondence->label))) }}{{ $correspondence->name }} {{ $correspondence->email_address }} {{ $correspondence->last_updated_at }} {{ $correspondence->totalmessage }} {{ $attachmentSize }} @if($correspondence->file_reference) Details @else No Data Fetch @endif
@if(count($correspondences)>0) {{ $correspondences->links('pagination::bootstrap-4') }} @endif
@endsection