@include('flash_msg')
{{--
@if(!empty($categories))
@foreach($categories as $key=>$value)
@endforeach
@if ($categories->count() == 0)
@endif
@endif
# | Icon | Category | Status | Action | |
---|---|---|---|---|---|
{{ ++$key }} |
@if($value->icon)
|
{{ $value->name }} | @if($value->status==1) Active @else Inactive @endif | ||
No categories to display. | |||||
# | Icon | Category | Status | Action |
Displaying {{$categories->count()}} of {{ $categories->total() }} categories.
{{ $categories->appends(request()->all())->links() }}
--}}
-
@if ($categories->currentPage() > 1)
- < @endif @if ($categories->currentPage() > 3)
- 1
- ... @endif @foreach(range(max(1, $categories->currentPage() - 2), min($categories->lastPage(), $categories->currentPage() + 2)) as $page)
- {{ $page }} @endforeach @if ($categories->currentPage() < $categories->lastPage() - 2)
- ...
- {{ $categories->lastPage() }} @endif @if ($categories->hasMorePages())
- > @endif