diff --git a/resources/views/layouts/analytics.blade.php b/resources/views/layouts/analytics.blade.php index 89f8ad0..fba5a80 100644 --- a/resources/views/layouts/analytics.blade.php +++ b/resources/views/layouts/analytics.blade.php @@ -1,7 +1,14 @@ - ~s", "", $analyticsHTML); -echo $analyticsHTML; +$analyticsHTML = preg_replace('/[ \t]+/', ' ', preg_replace('/\s\S*$^\s\S*/m', "\n", $analyticsHTML)); +$analyticsHTML = trim($analyticsHTML); ?> - \ No newline at end of file + +@if(preg_replace( "/\r|\n/", "", $analyticsHTML ) != '') + + +{!! $analyticsHTML !!} + + +@endif