

<div class="widget-block shadow mb-4">
    <h4>Our Products</h4>
	<?php 
		$route = Request::path();
		$products = [
			"0" => [
				"name"=> "Pipes and Tubes",
				"route"=> "pipes-and-tubes"
			],
			"1" => [
				"name"=> "Second Item",
				"route"=> "pipes-and-tubes1"
			]
		];
	?>
    <ul class="list-style">
    	@foreach($products as $p)
    		<?php $active = $route == $p["route"] ? 'activelink' : ''; ?>
    		<li><a href="{{ url('/' . $p['route'] . '') }}" class="{{ $active }}">{{ $p["name"] }}</a></li>
    	@endforeach
    </ul>
</div>