From e390a95bd331b8af702d715ffe5480e8850048b1 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 23 Oct 2024 15:42:09 -0700 Subject: [PATCH] Improve back button behavior --- resources/views/reports/custom.blade.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php index 40261e84b6..737c51a4b9 100644 --- a/resources/views/reports/custom.blade.php +++ b/resources/views/reports/custom.blade.php @@ -7,8 +7,19 @@ @stop @section('header_right') - - {{ trans('general.back') }} + @if (request()->routeIs('report-templates.edit')) + + {{ trans('general.back') }} + + @elseif(request()->routeIs('report-templates.show')) + + {{ trans('general.back') }} + + @else + + {{ trans('general.back') }} + + @endif @stop