📚 Daftar Postingan
Kelola semua postingan blogmu di sini.
| # | Judul | Gambar | Kategori | Konten | Dibuat | Diperbarui | Aksi | |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($posts->currentPage() - 1) * $posts->perPage() }} | {{ $post->title }} |
@if($post->image)
🖼️
@endif
|
@if($post->category->name ?? false) {{ $post->category->name }} @else — @endif | {{ Str::limit(strip_tags($post->content), 80, '…') }} | {{ $post->created_at->format('d M Y') }} | {{ $post->updated_at->format('d M Y') }} | ||
|
Belum ada postingan
Mulai dengan membuat postingan pertama!
|
||||||||
Menampilkan
{{ $posts->firstItem() ?? 0 }}–{{ $posts->lastItem() ?? 0 }}
dari {{ $posts->total() }} postingan
@if($posts->hasPages())
@if($posts->onFirstPage())
‹
@else
‹
@endif
@php $cur = $posts->currentPage(); $last = $posts->lastPage(); $win = 2; @endphp
@if($cur > $win + 2)
1
···
@endif
@for($i = max(1, $cur - $win); $i <= min($last, $cur + $win); $i++)
@if($i === $cur)
{{ $i }}
@else
{{ $i }}
@endif
@endfor
@if($cur < $last - ($win + 1))
···
{{ $last }}
@endif
@if($posts->hasMorePages())
›
@else
›
@endif
@endif