Commit 17d91e89 by Arpit Jain

create slug condition

parent 2fc19b65
......@@ -32,6 +32,15 @@ class SearchController extends Controller
* */
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');
$apiLocaterData = $this->call_api('',$api_url);
......
......@@ -81,10 +81,10 @@
</div>
<div class="location_data-content">
<h5 class="title">
@if(!empty($data['slug']))
<a href="{{route('detail',['slug'=>$data['slug']])}}"><?php echo $data['name']; ?></a>
@else
@if(empty($data['slug']))
{{$data['name']}}
@else
<a href="{{route('detail',['slug'=>$data['slug']])}}"><?php echo $data['name']; ?></a>
@endif
</h5>
<span class="ratings">
......
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