From 046ef8a946b60c959130608a823fec2e19df6eed Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 12 Jan 2023 17:28:39 +0000 Subject: [PATCH 1/2] Fix for simple pagination bulk actions --- .../views/components/table/tr/bulk-actions.blade.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/views/components/table/tr/bulk-actions.blade.php b/resources/views/components/table/tr/bulk-actions.blade.php index 744fd3cca..cea9f187c 100644 --- a/resources/views/components/table/tr/bulk-actions.blade.php +++ b/resources/views/components/table/tr/bulk-actions.blade.php @@ -8,6 +8,7 @@ $colspan = $component->getColspanCount(); $selected = $component->getSelectedCount(); $selectAll = $component->selectAllIsEnabled(); + $simplePagination = ($component->paginationMethod == "simple") ? true : false; @endphp @if ($theme === 'tailwind') @@ -20,7 +21,7 @@ class="bg-indigo-50 dark:bg-gray-900 dark:text-white"
@lang('You are currently selecting all') - {{ number_format($rows->total()) }} + @if(!$simplePagination) {{ number_format($rows->total()) }} @endif @lang('rows'). @@ -39,7 +40,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium @lang('You have selected') {{ $selected }} @lang('rows, do you want to select all') - {{ number_format($rows->total()) }}? + @if(!$simplePagination) {{ number_format($rows->total()) }} @endif