@if (isset($style_list)) @foreach ($style_list as $row) @endforeach @endif
@foreach ($data['blogs'] as $blog) @php // Extract first PNG image from content using regex preg_match('/content, $matches); $imageUrl = $matches[1] ?? '/images/img-blog.jpg'; // Default if no PNG found @endphp

{{ $blog->title }}

{{ $blog->preview }}

@endforeach @if ($data['blogs']->lastPage() > 1)
    @if ($data['blogs']->onFirstPage()) @else
  • @endif @php $currentPage = $data['blogs']->currentPage(); $lastPage = $data['blogs']->lastPage(); $maxPages = 5; // Number of pages to display initially $startPage = max($currentPage - floor($maxPages / 2), 1); $endPage = min($startPage + $maxPages - 1, $lastPage); @endphp @if ($startPage > 1)
  • 1
  • @if ($startPage > 2)
  • ...
  • @endif @endif @for ($i = $startPage; $i <= $endPage; $i++) @if ($i == $currentPage)
  • {{ $i }}
  • @else
  • {{ $i }}
  • @endif @endfor @if ($endPage < $lastPage) @if ($endPage < $lastPage - 1)
  • ...
  • @endif
  • {{ $lastPage }}
  • @endif @if ($data['blogs']->hasMorePages())
  • @else @endif
@endif
{!! $footer !!}