Level 88
Apr 4, 2016
5
Level 6
how to hide a div on a condition
Hi I have a piece of view and I want to hide a particular div on certain routes but I am not sure how would I do it.
my div
//if routes are these (catalog, etc etc...... ) then do not show this div
<div class="top_left_new_add" data-toggle="modal" data-target="#pincodeModal">
<span class="top-pincode-icon"></span>
<div class="non_select_top">
<span>
@if(Cookie::has('city'))
@if(Cookie::has('locality'))
{{-- @if(Cookie::has('user_pincode')) --}}
{{-- {{Cookie::get('locality')." - ".Cookie::get('user_pincode')." ".Cookie::get('city')}} --}}
{{-- @else --}}
{{Cookie::get('locality')." ".Cookie::get('city')}}
{{-- @endif --}}
@else
{{Cookie::get('city')}}
@endif
@else
Ballabgarh, Faridabad
@endif
</span><i></i>
</div>
<span class="pincode">
<a href="javascript:void(0)" class="change-pincode"> </a>
</span>
</div>
How would I add this logic in the blade ?
Please or to participate in this conversation.