?> )</i></div> <?php if ($searchKey == "") { ?> <form method="get" action=""> <div class="col-sm-2"> <select name="category" class="form-control"> <option value="0" <?php if ($filterCatId == 0) { echo "selected"; } ?> >All</option> <?php $categoryList = $categoryController->getAll(); foreach ($categoryList as $key => $value) { ?> <option value="<?php echo $value->getId(); ?> " <?php if ($filterCatId == $value->getId()) { echo "selected"; } ?> > <?php echo $value->getSubCategory(); ?> </option>