
<?php 
$item_instock='';
$item_uploaded='';
$item_out='';
$bar_inventory='';
$restaurant_inventory='';

if ($location_page=='item_instock') {
   $item_instock='bg-primary';
}
else {
    $item_instock='';  # code...
} 

if ($location_page=='item_uploaded') {
    $item_uploaded='bg-primary';
 }
 else {
     $item_uploaded='';  # code...
 } 

 if ($location_page=='item_out') {
    $item_out='bg-primary';
 }
 else {
     $item_out='';  # code...
 }

 if ($location_page=='bar_inventory') {
    $bar_inventory='bg-primary';
 }
 else {
     $bar_inventory='';  # code...
 }

 if ($location_page=='restaurant_inventory') {
    $restaurant_inventory='bg-primary';
 }
 else {
     $restaurant_inventory='';  # code...
 }

 if ($location_page=='item') {
    $item='bg-primary';
 }
 else {
     $item='';  # code...
 }

?>

<div class="row no-gutters">
                    <div class="col-sm-12 inventory_button">
                        <div id="filters" class="d-flex button-group">
                            <div class="col-sm-2 ">
                                <a  href="items_in"class="shadow-lg btn-order <?php echo $item_instock?>  text-center btn ">
                                    <p class="text-center order-text-order-managment">Items in Stock </p>
                                </a>
                            </div>
                            <div class="col-sm-2 ">
                                <a   href="inventory" class="collapsed btn-order <?php echo $item_uploaded?> text-center btn ">
                                    <p class="text-center order-text-order-managment">Items uploaded</p>
                                </a>
                            </div>
                            <div class="col-sm-2 ">
                                <a href="items_out"class=" btn-order  <?php echo $item_out?> text-center btn ">
                                    <p class="text-center order-text-order-managment">Items Out</p>
                                </a>
                            </div>

                            <div class="col-sm-2 ">
                                <a href="inventory_items"class=" btn-order  <?php echo $item?> text-center btn ">
                                    <p class="text-center order-text-order-managment">All Items</p>
                                </a>
                            </div>

                       <!--     <div class="col-sm-2 ">
                                <a href="bar_inventory"class=" btn-order  <?php echo $bar_inventory?> text-center btn ">
                                    <p class="text-center order-text-order-managment">Bar Inventory</p>
                                </a>
                            </div>

                            <div class="col-sm-2 ">
                                <a href="res_inventory"class=" btn-order <?php echo $restaurant_inventory ?> text-center btn ">
                                    <p class="text-center order-text-order-managment">Restuarant Inventory</p>
                                </a>
                            </div>

                            --->
                        </div>
                    </div>
                </div>
              