@php // if($origem){ // $origem_whats= str_replace(" ", "%20", $origem); // $destino_whats = str_replace(" ", "%20", $destino); // $mensagem = "Ol%C3%A1,%20CoteFrete.%20Quero%20fazer%20uma%20cota%C3%A7%C3%A3o%20de%20$origem_whats%20para%20$destino_whats!"; // }else{ // $mensagem = "Ol%C3%A1,%20CoteFrete.%20Quero%20fazer%20uma%20cota%C3%A7%C3%A3o!"; // } // Definir mensagem padrão se não houver origem/destino $mensagem = isset($origem) && isset($destino) ? "Ol%C3%A1,%20CoteFrete.%20Quero%20fazer%20uma%20cota%C3%A7%C3%A3o%20de%20" . str_replace(" ", "%20", $origem) . "%20para%20" . str_replace(" ", "%20", $destino) . "!" : "Ol%C3%A1,%20CoteFrete.%20Quero%20fazer%20uma%20cota%C3%A7%C3%A3o!"; @endphp