Commit 2398125b by Arpit Jain

slug condition

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