@yield('script') @php $cartItems = \Cart::getContent(); $yes = ''; if($cartItems->isNotEmpty()) { $check = $cartItems->first(); if($check->attributes->product_type == 'Verkaufen') { $yes = 'yes'; } } $cur_route = url()->current(); @endphp @if(empty($yes) || (!empty($yes) && $cur_route != url('cart') && $cur_route != url('checkout'))) @endif @yield('script-bottom')