@php $comment = $answer->comment; $sensitives = $sensitiveWords; foreach($sensitives as $sensitive) { $comment = preg_replace("/".$sensitive."/i", '$0', $comment); } @endphp @extends('layouts.email') @section('content')

{{__('Hi')}} {{ $admin->first_name}},

{{__('An employee in your organization has provided a comment to an engagement survey that included a sensitive word')}}

{{__('You should review the full comment and take appropriate action')}}

{{__('Question')}} {{ $questionnaire->question }}
{{__('Comment')}} {!! $comment!!}
{{__('Sender')}} {{ __('Log in to view') }}

{{__('Log in to Qualee')}}

{{__("Have Questions?")}}

{!! __('Check out our FAQs, review our Console Intro or contact our support team. We’re always here to help!') !!}

@endsection