Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-locator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ajay Barthwal
store-locator
Commits
846088af
Commit
846088af
authored
Aug 06, 2019
by
Arpit Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
worked on showing feeds in fronend
parent
44447295
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
+30
-1
SearchController.php
application/app/Http/Controllers/SearchController.php
+4
-1
detail.blade.php
application/resources/views/frontend/searchs/detail.blade.php
+26
-0
No files found.
application/app/Http/Controllers/SearchController.php
View file @
846088af
...
...
@@ -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
'
));
}
...
...
application/resources/views/frontend/searchs/detail.blade.php
View file @
846088af
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment