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
17d91e89
Commit
17d91e89
authored
Jul 11, 2019
by
Arpit Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create slug condition
parent
2fc19b65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
SearchController.php
application/app/Http/Controllers/SearchController.php
+9
-0
index.blade.php
application/resources/views/frontend/searchs/index.blade.php
+3
-3
No files found.
application/app/Http/Controllers/SearchController.php
View file @
17d91e89
...
@@ -32,6 +32,15 @@ class SearchController extends Controller
...
@@ -32,6 +32,15 @@ class SearchController extends Controller
* */
* */
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
// $file = storage_path('app/key/apikey.dba');
/*$file = Storage::disk('public')->path('key/apikey.dba');
dd($file);
if (!is_file($file)) {
$fh = fopen($file, 'w') or $this->traceLog('Code Error #: Unable to create .dba file');
}
die($fh);*/
$api_url
=
config
(
'app.api_list'
);
$api_url
=
config
(
'app.api_list'
);
$apiLocaterData
=
$this
->
call_api
(
''
,
$api_url
);
$apiLocaterData
=
$this
->
call_api
(
''
,
$api_url
);
...
...
application/resources/views/frontend/searchs/index.blade.php
View file @
17d91e89
...
@@ -81,10 +81,10 @@
...
@@ -81,10 +81,10 @@
</div>
</div>
<div class="
location_data
-
content
">
<div class="
location_data
-
content
">
<h5 class="
title
">
<h5 class="
title
">
@if(!empty(
$data['slug']
))
@if(empty(
$data['slug']
))
<a href="
{{
route
(
'detail'
,[
'slug'
=>
$data
[
'slug'
]])}}
"><?php echo
$data['name']
; ?></a>
@else
{
{$data['name']}
}
{
{$data['name']}
}
@else
<a href="
{{
route
(
'detail'
,[
'slug'
=>
$data
[
'slug'
]])}}
"><?php echo
$data['name']
; ?></a>
@endif
@endif
</h5>
</h5>
<span class="
ratings
">
<span class="
ratings
">
...
...
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