From 75d7e845671ab6390c7bff89af99dae854641c6b Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Wed, 8 Jun 2022 16:38:52 +0200 Subject: [PATCH] Updated analytics layout --- resources/views/layouts/analytics.blade.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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