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