@extends('layouts.backend.app') @section('content') @php $authUser = Auth::user(); @endphp

Contacts

Fetch Emails
Table View Chart View
@csrf CONTACT LABEL NAME EMAIL LAST UPDATE MESSAGES ATTACHMENTS ACTIONS @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
{{ 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 @endif
@endforeach
{{-- @if (count($correspondences) > 0) {{ $correspondences->links('vendors.pagination.pagination') }} @endif --}}
@endsection