diff --git a/resources/views/bootstrap/50/table.blade.php b/resources/views/bootstrap/50/table.blade.php index 32801013..dd9c460a 100644 --- a/resources/views/bootstrap/50/table.blade.php +++ b/resources/views/bootstrap/50/table.blade.php @@ -37,7 +37,7 @@ class="table table-bordered table-hover table-striped table-checkable table-high @if ($sortField !== $column->field) {!! $sortIcon !!} - @elseif ($sortDirection) + @elseif ($sortDirection == 'desc') {!! $sortAscIcon !!} @else {!! $sortDescIcon !!} diff --git a/resources/views/tailwind/2/table.blade.php b/resources/views/tailwind/2/table.blade.php index b4622d6b..13600f0b 100644 --- a/resources/views/tailwind/2/table.blade.php +++ b/resources/views/tailwind/2/table.blade.php @@ -31,7 +31,7 @@ class="px-2 pr-4 py-3 text-left text-xs font-medium text-gray-500 uppercase trac @if ($sortField !== $column->field) {!! $sortIcon !!} - @elseif ($sortDirection) + @elseif ($sortDirection == 'desc') {!! $sortAscIcon !!} @else {!! $sortDescIcon !!}