added tv page, small changes and fix bugs

This commit is contained in:
F4ilji
2025-05-21 14:00:04 +05:00
parent 10ec9a90c7
commit 791a56ca4d
12 changed files with 327 additions and 102 deletions
+13 -4
View File
@@ -69,6 +69,11 @@ export default {
type: Object,
}
},
data() {
return {
currentPageLoaded: this.posts_pagination.current_page,
}
},
computed: {
hasActiveFilters() {
return this.filters.category_filter.value || this.filters.tag_filter.value || this.filters.search_filter.value;
@@ -109,10 +114,14 @@ export default {
<BasicListBadge :filters="filters" />
</div>
</div>
<span class="flex justify-center" v-if="currentPageLoaded > 1">
<Link :href="route('client.post.index')" class="flex items-center py-2">
<button class="bg-transperant text-sm text-gray-600 cursor-pointer hover:text-gray-900 duration-300 block px-2 leading-[1.6] rounded-md">К началу</button>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-[17px] text-gray-600">
<path stroke-linecap="round" stroke-linejoin="round" d="M15 11.25l-3-3m0 0l-3 3m3-3v7.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</Link>
</span>
<div class="space-y-5 md:space-y-4">
<div class="space-y-5 md:space-y-4">
<div>