// echo $category['category_id'] ?> <li><span><?php echo $countBrand . "." . $countSubbrand . "." . $countCategory; ?> </span> <a href="#<?php echo $brand['brand_slug'] . '-' . $subBrand['brand_slug'] . '-' . $category['category_name']; ?> "> <span class="liTitle"><?php echo ucfirst($category['category_name']); ?> </span><span class="pull-right">Rs <?php echo getOrderCategorySum($category['category_id'], '', $dealer['user_id'], TRUE, $subBrand['brand_id']); ?> </span><span class="pull-right"> <?php echo getOrderCategorySum($category['category_id'], 'qty', $dealer['user_id'], TRUE, $subBrand['brand_id']) . ' pcs, '; ?> </span></a> <?php $countProducts = 0; ?> <?php foreach ($ordered_ids['product_id'] as $key => $product_id) { ?> <?php if (matchProductToBrandCategory($product_id, $subBrand['brand_id'], $category['category_id'])) { ?> <?php $countProducts++; ?> <?php
// echo $category['category_id'] ?> <?php $orders = getOrderByCategory($category['category_id'], $dealer->user_id); ?> <li> <a href="#<?php echo $brand['brand_slug'] . '-' . $subBrand['brand_slug'] . '-' . $category['category_name']; ?> "> <span class="liTitle"><?php echo ucfirst($category['category_name']); ?> </span><span class="pull-right">Rs <?php echo getOrderCategorySum($category['category_id'], '', $dealer->user_id); ?> </span><span class="pull-right"> <?php echo getOrderCategorySum($category['category_id'], 'qty') . ' pcs, '; ?> </span></a> <ul> <?php foreach ($orders as $key => $order) { ?> <?php $product = getCatelog($order->product_id)[0]; ?> <?php $disabled = $order->order_confirm_ind ? ' disabled= "TRUE" ' : ''; ?> <li> <?php echo $order->order_confirm_ind ? '<i class="fa fa-check-circle fa-success fa-lg"></i> ' : ''; ?>
$orders = getOrderByCategory($category['category_id'], $dealer->user_id, $subBrand['brand_id']); ?> <li><a href="#<?php echo $brand['brand_slug'] . '-' . $subBrand['brand_slug'] . '-' . $category['category_name']; ?> "> <span class="liTitle"><?php echo ucfirst($category['category_name']); ?> (<?php echo count($orders); ?> ) </span><span class="pull-right">Rs <?php echo getOrderCategorySum($category['category_id'], '', $dealer->user_id, null, $subBrand['brand_id']); ?> </span><span class="pull-right"> <?php echo getOrderCategorySum($category['category_id'], 'qty', $dealer->user_id, null, $subBrand['brand_id']) . ' pcs | '; ?> </span></a> <ul> <?php $countOrders = 0; ?> <?php foreach ($orders as $key => $order) { ?> <?php $countOrders++; ?> <?php $product = getCatelog($order->product_id)[0]; ?>