Commit 846088af by Arpit Jain

worked on showing feeds in fronend

parent 44447295
......@@ -8,6 +8,7 @@ use App\Traits\Apitraits;
use App\Locater;
use App\Page;
use App\City;
use App\LocaterFeed;
use DB;
use Validator;
use Illuminate\Support\Facades\Hash;
......@@ -119,8 +120,10 @@ class SearchController extends Controller
$api_url = config('app.api_location');
$locationDetailAPIdata = $this->call_api($api_url,$locatorID);
$feedDetail = LocaterFeed::where('locater_feeds.status', '=', '1')->take(6)->get();
return view('frontend.searchs.detail', compact('locatorID','locationDetailAPIdata','pageData'));
return view('frontend.searchs.detail', compact('locatorID', 'locationDetailAPIdata', 'pageData', 'feedDetail'));
}
......
......@@ -104,6 +104,32 @@
</div>
</section>
@endif
<section class="container promotion-wrapper">
<div class="row">
<div class="col-12">
<section class="promotion-wrapper-items">
<?php foreach($feedDetail as $feed){ ?>
<div class="item">
<figure><img src="{{ $feed->image_link }}"> </figure>
<p class="name">{{ $feed->title }}</p>
<p class="currency bold">{{ $feed->price }}</p>
<p class="publisher">{{ $feed->brand }}</p>
<p class="grey-txt">Price drop: {{ $feed->sale_price }}</p>
</div>
<?php } ?>
</section>
</div>
</div>
</section>
<section class="container location_reviews_outer">
<div class="row ">
<div class="col-md-8 col-12">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment