@foreach($checkinsList as $checkin)
If your email client doesn\'t support video embeds, here is a link to the file instead.
'; } } else { $embed = '[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]
'; $embedMissing = true; } } elseif (preg_match("/\.ogg/", $filepath[1])) { $hasEmbed = 'audio'; if (file_exists(public_path() . "/audio/" . $filepath[1])) { $embed = ''; if ($email) { $embed .= 'If your email client doesn\' support audio embeds, here is a link to the file instead.
'; } } else { $embed = '[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]
'; $embedMissing = true; } } $checkin->note = preg_replace("/\[\[[^\]]+\]\]/", $embed, $checkin->note); } @endphp