feat(admin): strip HTML in video list + First/Last pagination

- Admin video list: description was stored as sanitized rich HTML, so
  the admin's "{{ Str::limit(description, 55) }}" row printed literal
  <p>…</p> tags in the preview. Pre-strip the HTML, collapse
  whitespace, and surface the full stripped text in a title=""
  tooltip. The visible title column now also carries title="" so the
  admin can hover an ellipsized name to read it in full.
- Shared pagination partial (used by admin videos + users + feed
  pagers) now ships First + Last buttons. The icons use the double-
  chevron variants and the aria-label makes the destination explicit.
  Buttons disable cleanly on page 1 and the last page.
- Audit-logs pager has the same four buttons: First, Prev, N…N, Next,
  Last. Each disabled state carries a title tooltip so the admin
  knows what each stub does without hovering through trial and error.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
ghassanandClaude Opus 4.7 committed 2026-10-21 12:01:04 +03:00
1 parent b7f3f6989b
commit 05ccb45fe4
3 files changed
+68 -17

No files matched your search

+31 -9
View File
@@ -37,14 +37,25 @@ a.pag-item:hover {
@endonce
<nav class="pag-nav" aria-label="Pagination">
{{-- Prev --}}
{{-- First --}}
@if ($paginator->onFirstPage())
<span class="pag-item disabled" aria-disabled="true">
<i class="bi bi-chevron-left" style="font-size:11px;"></i>
<span class="pag-item disabled" aria-disabled="true" title="First page">
<i class="bi bi-chevron-double-left" style="font-size:11px;" aria-hidden="true"></i>
</span>
@else
<a class="pag-item" href="{{ $paginator->previousPageUrl() }}" rel="prev" aria-label="Previous">
<i class="bi bi-chevron-left" style="font-size:11px;"></i>
<a class="pag-item" href="{{ $paginator->url(1) }}" aria-label="First page" title="First page">
<i class="bi bi-chevron-double-left" style="font-size:11px;" aria-hidden="true"></i>
</a>
@endif
{{-- Prev --}}
@if ($paginator->onFirstPage())
<span class="pag-item disabled" aria-disabled="true" title="Previous page">
<i class="bi bi-chevron-left" style="font-size:11px;" aria-hidden="true"></i>
</span>
@else
<a class="pag-item" href="{{ $paginator->previousPageUrl() }}" rel="prev" aria-label="Previous page" title="Previous page">
<i class="bi bi-chevron-left" style="font-size:11px;" aria-hidden="true"></i>
</a>
@endif
@@ -66,12 +77,23 @@ a.pag-item:hover {
{{-- Next --}}
@if ($paginator->hasMorePages())
<a class="pag-item" href="{{ $paginator->nextPageUrl() }}" rel="next" aria-label="Next">
<i class="bi bi-chevron-right" style="font-size:11px;"></i>
<a class="pag-item" href="{{ $paginator->nextPageUrl() }}" rel="next" aria-label="Next page" title="Next page">
<i class="bi bi-chevron-right" style="font-size:11px;" aria-hidden="true"></i>
</a>
@else
<span class="pag-item disabled" aria-disabled="true">
<i class="bi bi-chevron-right" style="font-size:11px;"></i>
<span class="pag-item disabled" aria-disabled="true" title="Next page">
<i class="bi bi-chevron-right" style="font-size:11px;" aria-hidden="true"></i>
</span>
@endif
{{-- Last --}}
@if ($paginator->hasMorePages() && $paginator->lastPage() > $paginator->currentPage())
<a class="pag-item" href="{{ $paginator->url($paginator->lastPage()) }}" aria-label="Last page" title="Last page ({{ $paginator->lastPage() }})">
<i class="bi bi-chevron-double-right" style="font-size:11px;" aria-hidden="true"></i>
</a>
@else
<span class="pag-item disabled" aria-disabled="true" title="Last page">
<i class="bi bi-chevron-double-right" style="font-size:11px;" aria-hidden="true"></i>
</span>
@endif