@php $templateContent = view($templateView, ['payment' => $payment])->render(); preg_match_all('/' : ''; $bodyContent = $templateContent; if (preg_match('/
]*>(.*?)<\/body>/is', $templateContent, $bodyMatches)) { $bodyContent = $bodyMatches[1]; } $bodyContent = preg_replace('/