@extends('dashboard.layouts.main') @section('content')

Folder: {{ $folder->name }}

Back to All Folders @if (count($targetEmails) > 0)
@if (count($targetEmails) > 0) @foreach ($targetEmails as $file) @php $filePath = "employees-archives/Correspondence/{$file->email_address}_{$file->target_email_address}{$file->company_id}"; $folderExists = Storage::disk('public')->exists($filePath) ? 1 : 0; @endphp
@if($folderExists == 1) Folder Icon

{{ $file->email_address }}

@endif
@endforeach @else

No files uploaded yet.

@endif
@else

No files found in this folder.

@endif
@endsection