Skip to content

Commit

Permalink
Show total photos in photos index page
Browse files Browse the repository at this point in the history
  • Loading branch information
GeniJaho committed Apr 21, 2024
1 parent d1df860 commit db16962
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/Pages/Photos/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ const filter = (filters) => {
class="mt-6"
/>

<div v-if="photos.total" class="mt-6 px-4 sm:px-0 text-gray-700 dark:text-white text-sm">
Showing {{ photos.from }} to {{ photos.to }} of {{ photos.total }} photos
</div>

<div v-if="photos.data.length" class="mt-6 mb-24">
<div class="p-6 lg:p-8 bg-white dark:bg-gray-800 dark:bg-gradient-to-bl dark:from-gray-700/50 dark:via-transparent border-b border-gray-200 dark:border-gray-700 sm:rounded-lg shadow-xl">
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4">
Expand Down

0 comments on commit db16962

Please sign in to comment.