samedi 16 janvier 2021

Show Products From specific category in Laravel

I just want to show product with "Rumored" table can someone help how can I show them in my side bar? below is my sidebar code. And side bar Already show 12 Latest Products from all categories it must show only 8 product and with "Rumored" category. not from all categories.

<div class="heading mb-2">
    <h3>Rumored Phones</h3>
</div>

<div class="row">
    @foreach ($popular_devices as $device)
    <div class="col-xl-3 col-lg-4 col-md-6 col-sm-6 col-6">
        <div class="device-box">
            @if($device->image)
            <a title=" " href="">
                <img src="" alt="" class="img-fluid"></a>
            @endif
            <a class="title" title="" href=""></a>
        </div>
    </div>
    @endforeach
</div>

<div class="text-center mb-4">
    <a class="btn btn-light btn-block" href="" title="All devices">View All  Devices</a>
</div>

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire