@extends('fontend_master') @section('content') @php $slider = DB::table('sliders')->first(); $category = DB::table('categories')->get(); @endphp
{{--
--}}
@foreach ($category as $category) {{-- {{$category->category_name}} --}} {{ $category->category_name }} @endforeach
{{-- --}}
{{--
--}}
@php $all_category = App\Models\Category::paginate(12); @endphp @foreach ($all_category as $item) @endforeach
{!! $all_category->links('pagination::bootstrap-4') !!}

Showing {{ $all_category->firstItem() }} to {{ $all_category->lastItem() }} of {{ $all_category->total() }} ({{ $all_category->lastPage() }} Pages)

@endsection