Explorar el Código

fix show perpage when no pages

Alexander Musikhin hace 2 semanas
padre
commit
5cd0374767
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      resources/views/partials/pagination.blade.php

+ 3 - 1
resources/views/partials/pagination.blade.php

@@ -9,7 +9,9 @@
         {{ $items->links() }}
     </div>
     <div class="col-md-5 mt-1">
-        @include('partials.select', ['name' => 'per_page', 'title' => 'Результатов на странице:', 'options' => $pp, 'value' => $per_page, 'key_as_val' => true])
+        @if($items->count())
+            @include('partials.select', ['name' => 'per_page', 'title' => 'Результатов на странице:', 'options' => $pp, 'value' => $per_page, 'key_as_val' => true])
+        @endif
     </div>
 </div>