@php use App\Services\CompanyEmailDetails; use Illuminate\Support\Facades\Log; $companyDetails = CompanyEmailDetails::getCompanyEmailDetails($customer_id ?? null, $workspace_id ?? null); $logoPath = $companyDetails['logoPath']; $companyName = $companyDetails['companyName']; // Check if logo file exists $logoExists = false; if (!empty($logoPath)) { $fullLogoPath = public_path($logoPath); $logoExists = file_exists($fullLogoPath); } $companyAddress = $companyDetails['companyAddress']; $companyCity = $companyDetails['companyCity']; $companyState = $companyDetails['companyState']; $companyPostCode = $companyDetails['companyPostCode']; $companyCountry = $companyDetails['companyCountry']; $companyPhone = $companyDetails['companyPhone']; $companyEmail = $companyDetails['companyEmail']; $fullAddress = $companyDetails['companyAddressFull'] ?? trim( ($companyAddress ?? '') . ', ' . ($companyCity ?? '') . ', ' . ($companyState ?? '') . ', ' . ($companyPostCode ?? '') . ', ' . ($companyCountry ?? ''), ); @endphp {{ $subject }}
@php $logoDisplayPath = null; if (!empty($logoPath)) { $fullPath = public_path($logoPath); if (file_exists($fullPath)) { $logoDisplayPath = url($logoPath); } } @endphp @if (!empty($logoDisplayPath)) Logo @else

{{ $companyName }}

@endif
Hi {{ $employee_name ?? 'there' }},