After doing this in my controller
$activities = Package::where('attraction',1)
->where('hotel', 0)
->where('flight', 0)
->paginate(2);
return view('frontend.activities',compact('activities'));
I added the added the for on my blade page in this fomrmat
@foreach($activities as $activity)
<div class="col-md-3 page-content-1">
<div class="thumb">
<header class="thumb-header">
<a class="hover-img" href="{{url('/flight-details')}}">
<img src="img/new_york_at_an_angle_800x600.jpg" alt="Image Alternative text" title="new york at an angle" />
<h5 class="hover-title-center">Book Now</h5>
</a>
</header>
<div class="thumb-caption">
<ul class="icon-group text-tiny text-color">
<li><i class="fa fa-star"></i>
</li>
<li><i class="fa fa-star"></i>
</li>
<li><i class="fa fa-star"></i>
</li>
<li><i class="fa fa-star"></i>
</li>
<li><i class="fa fa-star"></i>
</li>
</ul>
<h5 class="thumb-title"><a class="text-darken" href="{{url('/flight-details')}}">Manhattan Skyline</a></h5>
<p class="mb0"><small><i class="fa fa-map-marker"></i> Queens (LaGuardia Airport (LGA))</small>
</p>
<p class="mb0 text-darken"><span class="text-lg lh1em text-color"><small >from</small> Free</span>
</p>
</div>
</div>
</div>
@endforeach
then i added {{ $activities->links() }}
on the page.
Whenever present the view, the links() does not display the links for the pages.
Am i missing something or is there something that i am doing wrong
P.S : I have also tried {{$activities->render()}}
, it did not work too.