Commit 2398125b by Arpit Jain

slug condition

parent ccd79a9f
......@@ -29,11 +29,13 @@
<img src="vendor/frontend/img/location-img.png" />
</div>
<div class="location_data-content">
@if(empty($data['slug']))
{{$data['name']}}
@else
<a href="{{route('detail',['slug'=>$data['slug']])}}"><?php echo $data['name']; ?></a>
@endif
<h5 class="title">
@if(empty($data['slug']))
{{$data['name']}}
@else
<a href="{{route('detail',['slug'=>$data['slug']])}}"><?php echo $data['name']; ?></a>
@endif
</h5>
<span class="ratings">
<i class="mdi mdi-star"></i>
<i class="mdi mdi-star"></i>
......
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