@extends('frontend.layouts.app') @section('seo') Blogs | eg APPAREL @endsection @section('content') {{-- BANNER --}}

Blogs

Home / Blogs

{{-- CONTENT --}}
@foreach ($blogs as $items)

{!! Str::limit($items->title, 30, '...') !!}

{!! Str::limit($items->author, 30, '...') !!} / {{ date('F j, Y', strtotime($items->created_at)) }}

{!! Str::limit($items->description, 100, '...') !!}

Read More
@endforeach
@if ($blogs->hasPages())
    @if ($blogs->currentPage() == 1) @else
  • @endif @if ($blogs->currentPage() > 3) @endif @if ($blogs->currentPage() > 4)
  • ...
  • @endif @foreach (range(1, $blogs->lastPage()) as $i) @if ($i >= $blogs->currentPage() - 2 && $i <= $blogs->currentPage() + 2) @if ($i == $blogs->currentPage())
  • {{ $i }}
  • @else
  • {{ $i }}
  • @endif @endif @endforeach @if ($blogs->currentPage() < $blogs->lastPage() - 3) @endif @if ($blogs->currentPage() < $blogs->lastPage() - 2) @endif @if ($blogs->hasMorePages())
  • @else @endif
@endif
@endsection