diff --git a/app/Abstracts/View/Components/Documents/Index.php b/app/Abstracts/View/Components/Documents/Index.php index ffdb00ea6..c07bb52a4 100644 --- a/app/Abstracts/View/Components/Documents/Index.php +++ b/app/Abstracts/View/Components/Documents/Index.php @@ -483,6 +483,7 @@ abstract class Index extends Component 'text' => trans('general.title.new', ['type' => trans_choice($this->textPage ?? 'general.' . $prefix, 1)]), 'description' => trans('general.empty.actions.new', ['type' => strtolower(trans_choice($this->textPage ?? 'general.' . $prefix, 1))]), 'active_badge' => true, + 'stack' => 'create_button', ]; } @@ -494,6 +495,7 @@ abstract class Index extends Component 'url' => route($this->importRoute, $this->importRouteParameters), 'text' => trans('import.title', ['type' => trans_choice($this->textPage ?? 'general.' . $prefix, 2)]), 'description' => trans('general.empty.actions.import', ['type' => strtolower(trans_choice($this->textPage ?? 'general.' . $prefix, 2))]), + 'stack' => 'import_button', ]; } diff --git a/app/View/Components/EmptyPage.php b/app/View/Components/EmptyPage.php index 86534234b..a93119a85 100644 --- a/app/View/Components/EmptyPage.php +++ b/app/View/Components/EmptyPage.php @@ -297,6 +297,7 @@ class EmptyPage extends Component 'text' => trans('general.title.new', ['type' => $title]), 'description' => trans('general.empty.actions.new', ['type' => strtolower($title)]), 'active_badge' => true, + 'stack' => 'create_button', ]; } @@ -317,6 +318,7 @@ class EmptyPage extends Component 'text' => trans('import.title', ['type' => $title]), 'description' => trans('general.empty.actions.import', ['type' => strtolower($title)]), 'active_badge' => false, + 'stack' => 'import_button', ]; } diff --git a/resources/views/components/empty-page.blade.php b/resources/views/components/empty-page.blade.php index 46ea83019..499fefaa9 100644 --- a/resources/views/components/empty-page.blade.php +++ b/resources/views/components/empty-page.blade.php @@ -17,6 +17,7 @@ @if ($checkPermissionCreate) @can ($button['permission']) @endif + @stack($button['stack'] . '_start')