{{-- resources/views/emails/points/share.blade.php --}} @php /** @var \App\Models\Point $point */ $titleName = $recipientName ?: $recipientEmail; @endphp

{{__('Hello')}} {{ $titleName }},

{{ $ownerName }} {{ $ownerEmail ? "({$ownerEmail})" : '' }} {{ __('has shared a waypoint with you:') }} {{ $point->name }}

{{-- @if(!empty($point->address1) || !empty($point->city) || !empty($point->postcode) || !empty($point->country_isocode))

{{ trim(($point->address1 ?? '').' '.($point->address2 ?? '')) }}
{{ trim(($point->postcode ?? '').' '.($point->city ?? '')) }} {{ $point->country_isocode }}

@endif --}} @if($plainPassword)

{{ __('Password to open this waypoint') }} : {{ $plainPassword }}

@endif

{{ __('Open the waypoint:') }} {{ $url }}

@if(isset($sharing) && ($sharing?->start_at || $sharing?->end_at))

{{ __('Access window') }}: @if($sharing?->start_at) {{ __('from') }} {{ \Illuminate\Support\Carbon::parse($sharing->start_at)->format('Y-m-d H:i') }} @endif @if($sharing?->end_at) {{ __('to') }} {{ \Illuminate\Support\Carbon::parse($sharing->end_at)->format('Y-m-d H:i') }} @endif

@endif

— {{ config('app.name') }}