diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index 0915fa5b5..66734686c 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -660,6 +660,10 @@ abstract class DocumentShow extends Component protected function getRouteButtonAddNew($type, $routeButtonAddNew) { + if (!empty($routeButtonAddNew)) { + return $routeButtonAddNew; + } + $page = Str::plural($type, 2); $route = $page . '.create';