From 9c5682202e940366d9dea5a127767db394c5709a Mon Sep 17 00:00:00 2001 From: Nasir Khan Saikat Date: Thu, 17 Oct 2024 03:36:09 +0600 Subject: [PATCH] Public link in Backend Show page --- .../views/components/backend/section-header.blade.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/views/components/backend/section-header.blade.php b/resources/views/components/backend/section-header.blade.php index daef2444..717d6500 100644 --- a/resources/views/components/backend/section-header.blade.php +++ b/resources/views/components/backend/section-header.blade.php @@ -84,6 +84,15 @@ class="ms-1" small="true" /> @elseif (Str::endsWith(Route::currentRouteName(), "show")) + @if (Route::has("frontend.$module_name.show")) + + @endif + @if (auth()->user()->can("edit_" . $module_name) && Route::has("backend." . $module_name . ".edit"))