@extends('fontend_master') @section('content') @php $slider = DB::table('sliders')->first(); $category = DB::table('categories')->get(); @endphp Category {{-- --}} All Cateogry @foreach ($category as $category) {{-- {{$category->category_name}} --}} {{ $category->category_name }} @endforeach {{-- Filter --}} All Category {{-- Show: 20 24 48 75 90 Sort By: Default Price (Low > High) Price (High > Low) --}} @php $all_category = App\Models\Category::paginate(12); @endphp @foreach ($all_category as $item) {{-- --}} {{-- {{$item->category_name}} --}} {{ $item->category_name }} @endforeach {!! $all_category->links('pagination::bootstrap-4') !!} Showing {{ $all_category->firstItem() }} to {{ $all_category->lastItem() }} of {{ $all_category->total() }} ({{ $all_category->lastPage() }} Pages) @endsection
Showing {{ $all_category->firstItem() }} to {{ $all_category->lastItem() }} of {{ $all_category->total() }} ({{ $all_category->lastPage() }} Pages)