@php $adminName = trim((string) ($admin_name ?? '')); $orgName = trim((string) ($organization_name ?? '')); $bizUrl = trim((string) ($business_url ?? '')); $community = null; try { $community = app('App\\Repositories\\CommunityRepository')->getById((int) ($community_id ?? 0)); } catch (\Throwable $e) { $community = null; } @endphp

Hello {!! $adminName !== '' ? e($adminName) : 'there' !!},

Your business listing{!! $orgName !== '' ? ' for '.e($orgName).'' : '' !!} has been activated.

@if($bizUrl !== '')

Business page URL: {!! e($bizUrl) !!}

@endif @if($community && $community->email_signature) {!! $community->email_signature !!} @elseif($community)

Sincerely,

{!! e((string) ($community->title ?? '')) !!}
{!! e((string) ($community->address ?? '')) !!}
{!! e(ucfirst((string) ($community->city ?? ''))) !!},{!! e((string) ($community->zip ?? '')) !!}
{!! e(ucfirst((string) ($community->state ?? ''))) !!},{!! e(ucfirst((string) ($community->country ?? ''))) !!}
Tel: {!! e((string) ($community->contact ?? '')) !!}
Email: {!! e((string) ($community->email ?? '')) !!}

@endif