@extends('emails.layout') @section('title', 'An Invitation from {{ $senderName }}') @section('header-title', 'JurisLocator') @section('header-subtitle', 'Immigration Resources & Professional Tools') @section('content') @php $lang = $lang ?? 'en'; $emailIntro = $settings["email_intro_{$lang}"] ?? $settings['email_intro'] ?? 'I thought it may be of value to you and wanted to share it directly.'; $rawLinks = $settings['links'] ?? [ ['title_en' => 'JurisAcademy', 'title_fr' => 'JurisAcadémie', 'description_en' => 'Immigration training, courses, and professional development.', 'description_fr' => 'Formation et cours en immigration.', 'url' => 'https://jurislocator.ca/jurisacademy/'], ['title_en' => 'RCIC Offers', 'title_fr' => 'Offres RCIC', 'description_en' => 'Exclusive tools and offers for RCICs.', 'description_fr' => 'Outils et offres exclusifs pour les RCIC.', 'url' => 'https://jurislocator.ca/rcic-offers/'], ]; $links = array_map(function($link) use ($lang) { return [ 'title' => $link["title_{$lang}"] ?? $link['title'] ?? '', 'description' => $link["description_{$lang}"] ?? $link['description'] ?? '', 'url' => $link['url'] ?? '', ]; }, $rawLinks); @endphp

Dear {{ $friendName !== 'there' ? $friendName : 'Colleague' }},

My name is {{ $senderName }} and I am reaching out to introduce you to JurisLocator, a platform I have been using for Canadian immigration research, legislation, and professional development tools.

{{ $emailIntro }}

@if (!empty($personalMessage))

{{ $personalMessage }}

@endif

Resources Worth Exploring

@foreach ($links as $index => $link)

{{ $link['title'] }} @if (!empty($link['description'])) — {{ $link['description'] }} @endif

{{ $link['url'] }}

Visit {{ $link['title'] }}
@if (!$loop->last)

@endif @endforeach

I hope you find it useful. Feel free to reach out if you have any questions.

Best regards,
{{ $senderName }}
{{ $senderEmail }}

This message was sent via JurisLocator on behalf of {{ $senderName }}. If you were not expecting this email, no action is required and no account has been created for you.

@endsection @section('footer-greeting', 'Thank you for your time')