diff --git a/resources/views/common/home-book.blade.php b/resources/views/common/home-book.blade.php index 3dbcd2875..1c18edb24 100644 --- a/resources/views/common/home-book.blade.php +++ b/resources/views/common/home-book.blade.php @@ -12,9 +12,15 @@
{{ trans('common.actions') }}
+ @if(user()->can('book-create-all')) + + @icon('add') + {{ trans('entities.books_create') }} + + @endif @include('partials.view-toggle', ['view' => $view, 'type' => 'books']) @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details']) @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
-@stop \ No newline at end of file +@stop diff --git a/resources/views/common/home-shelves.blade.php b/resources/views/common/home-shelves.blade.php index fccbef288..957fa6578 100644 --- a/resources/views/common/home-shelves.blade.php +++ b/resources/views/common/home-shelves.blade.php @@ -12,9 +12,15 @@
{{ trans('common.actions') }}
+ @if(user()->can('bookshelf-create-all')) + + @icon('add') + {{ trans('entities.shelves_new_action') }} + + @endif @include('partials.view-toggle', ['view' => $view, 'type' => 'shelves']) @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details']) @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
-@stop \ No newline at end of file +@stop