<style type="text/css">
.item_btn_1 {
	font-weight: bold;
	font-size: 14px;
	height: 100px;
	min-width: 150px;
	max-width: 180px;
	position: relative;
	margin: 5px;
}
.label-item {
	background-color: rgba(255, 255, 255, 0.95);
	/* text-align:justify;  */
	font-size: 16px;
	max-height: 67px;
	position: absolute;
	right: 0;
	width: 100%;
}
.nav-tabs li a {
	background: #e9ebec none repeat scroll 0 0;
	border-color: #dbdee0;
	border-radius: 0;
	line-height: 1;
	margin: 6px -1px -6px 0;
	padding: 30px;
}
#myTab2>li > a {
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 15px;
	padding-top: 15px;
	width:100%
}
html body div.panel-scroll div.tabbable.tabs-top div.tab-content div#Sales.tab-pane.active div.table-responsive div#wrapper div#content div.c1 div.pos div#pos ul#myTab2.nav.nav-tabs.navbar-nav.tab-green.no-print li{
	width:100%
}
#myTab2>li.active {
	background-color: #DADADA;
	
}
.dropdown-menu {
	position: absolute;
	will-change: transform;
	top: 0px;
	left: 0px;
	transform: translate3d(0px, 38px, 0px);
	margin-top: -20px;
}
html body div.panel-scroll div.tabbable.tabs-top div.tab-content div#Sales.tab-pane.active div.table-responsive div#wrapper div#content div.c1 div.pos div#pos ul#myTab2.nav.nav-tabs.navbar-nav.tab-green.no-print li.active a {
    background: #e9ebec none repeat scroll 0 0;
    border-color: #dbdee0;
    border-radius: 0;
    line-height: 1;
   /* margin: 6px -1px -6px 0;*/
	font-size:20px;
}

</style>
<div id="content" style="background-color:#FFF">
  <div class="c1">
    <div class="pos">
      <div id="pos">
        <form action="#" data-toggle="validator" role="form" id="pos-sale-form" name="pos-sale-form" method="post" accept-charset="utf-8">
          <input type="hidden" name="token" value="d6c35d2aebf0b3b14b4016c954dd2786" style="display:none;" />
          <div id="leftdiv" class="ui-widget quick-menu">
            <div id="printhead">
              <h4 style="text-transform:uppercase;">Stock Manager Advance</h4>
              <h5 style="text-transform:uppercase;">Order List</h5>
              Date 31/12/2015 22:14 </div>
            <div id="left-top" class="quick-menu">
              <div class="no-print">
                <div style="display:none" id="input_panel" class="form-group">
                  <select name="poswarehouse" id="poswarehouse" class="search-select" data-placeholder="Select Warehouse">
                    <option value="">-select-</option>
                    <?php foreach ($get_warehouse as $value) { ?>
                    <option value="<?php echo $value->id; ?>" <?php if($this->session->userdata('ss_warehouse_id') == $value->id ) echo 'selected' ?>><?php echo $value->name; ?> | <?php echo $value->code; ?></option>
                    <?php } ?>
                  </select>
                </div>
                <?php  //print_r($get_customer); ?>
                <div class="form-group" style="background-color:#FFF">
                  <div class="input-group">
                    <select style="margin-top:1px" id="poscustomer" name="poscustomer" class="search-select" data-placeholder="Select customer">
                      <option value="">-</option>
                      <?php foreach ($get_customer as $value) { ?>
                      <?php $sel = '';
						  if($value->cus_id == $customer_id )$sel='selected';
						  else if($value->cus_id == 1) $sel='selected'; 
						 ?>
                      <option <?php echo $sel; ?> value="<?php echo $value->cus_id; ?>"><?php echo $value->cus_name.'-'.$value->cus_phone; ?></option>
                      <?php } ?>
                    </select>
                    <input name="base_url" type="hidden" id="base_url" value="<?php echo base_url();?>">
                    <input type="hidden" id="customer_mobile" value="" />
                    <div class="input-group-addon pos-tip" style="padding: 2px 8px; border-left: 0; height:34px" title="Add Customer"> <a href="#" id="modal_ajax_customers_btn" class="external" tabindex="-1"> <i class="fa fa-plus-circle" id="addIcon" style="font-size: 1.2em;"></i> </a> </div>
                  </div>
                </div>
                <?php
			//if($sale_id)if($sale_details[0]) print_r($sale_details[0]);
//				if($sale_id)if($sale_details[0]['dine_type'] == 2) echo 'checked="checked2"';
//				if($sale_id)if($sale_details[0]['dine_type'] == 3) echo 'checked="checked3"';
				 ?>
                <div class="form-group" style="background-color:#FFF; display:none;">
                  <div class="input-group cb_list">
                    <div id="div_1" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: solid;border-right: none; width:10%;" title="Dine In">
                      <label style="margin: 6px 0px 6px 0px">
                        <input id="cb_1" name="delivery_status" class="red ds" <?php if($sale_id){if($sale_details[0]['dine_type'] == 1) echo 'checked="checked"';} else if($order_place == 'bar')echo 'checked="checked"';?> type="radio" style="display:none" value="1" />
                      </label>
                    </div>
                    <div id="div_1_2" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: 0; width:10%">
                      <label style="cursor:pointer" for="cb_1"> <i class="fa fa-spoon"></i><i class="fa fa-circle-o"></i> Dine In </label>
                    </div>
                    <div id="div_2" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: solid;border-right: none; width:10% " title="Take Away">
                      <label style="margin: 6px 0px 6px 0px">
                        <input id="cb_2" name="delivery_status" class="green ds" <?php if($sale_id){if($sale_details[0]['dine_type'] == 2) echo 'checked="checked"';} else if($order_place == 'rest')echo 'checked="checked"'; ?> type="radio" style="display:none" value="2" />
                      </label>
                    </div>
                    <div id="div_2_2" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: 0;">
                      <label style="cursor:pointer" for="cb_2"> <i class="fa fa-money"></i>Take Away </label>
                    </div>
                    <div id="div_3" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: solid;border-right: none;  width:10%" title="Delivary">
                      <label style="margin: 6px 0px 6px 0px">
                        <input id="cb_3" name="delivery_status" class="orange ds" <?php if($sale_id)if($sale_details[0]['dine_type'] == 3) echo 'checked="checked"'; ?> type="radio" style="display:none" value="3" />
                      </label>
                    </div>
                    <div id="div_3_2" class="input-group-addon" style="cursor:pointer; padding: 0px 0px; border-left: 0; width:100%">
                      <label style="cursor:pointer" for="cb_3"> <i class="fa fa-truck"></i> Delivery </label>
                    </div>
                  </div>
                  <?php if($order_place == 'bar'){ ?>
                  <input type="hidden" id="floor_id" name="floor_id" value="1">
                  <div class="input-group cb_list">
                    <div id="poss_1" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: solid;border-right: none;" title="">
                      <label style="margin: 6px 0px 6px 0px">
                        <input id="poss_1" name="division_id" class="divi_1" <?php if($sale_id){if($sale_details[0]['division_id'] == 1) echo 'checked="checked"';} else echo 'checked="checked"'; ?> type="radio" style="" value="1" />
                      </label>
                    </div>
                    <div id="pos_1_2" class="col-xs-1 input-group-addon" style="cursor:pointer; padding: 0px 8px; border: none;">
                      <label style="cursor:pointer;text-align:left" for="poss_1"> 
                        <!--<i class="fa fa-spoon"></i><i class="fa fa-circle-o"></i>--> MAIN BAR </label>
                    </div>
                    <div id="pos_2" class="input-group-addon" style="cursor:pointer; padding: 0px 8px; border-left: solid;border-right: none; ">
                      <label style="margin: 6px 0px 6px 0px">
                        <input id="poss_2" name="division_id" class="divi_2" <?php if($sale_id){if($sale_details[0]['division_id'] == 2) echo 'checked="checked"';}  ?> type="radio" style="display:none" value="2" />
                      </label>
                    </div>
                    <div id="pos_2_2" class="col-xs-1 input-group-addon" style="cursor:pointer; padding: 0px 8px; border: none;border-top: 0;">
                      <label style="cursor:pointer" for="poss_2"> 
                        <!--<i class="fa fa-money"></i>-->BLUE LOUNGE </label>
                    </div>
                  </div>
                  <?php }else if($order_place == 'rest'){ ?>
                  <input type="hidden" id="floor_id" name="floor_id" value="2">
                  <?php } ?>
                  <div class="form-group" style="background-color:#FFF; display:none;">
                    <div class="input-group" style="width:100%;">
                      <select style="margin-top:1px" id="table_id" name="table_id" class="search-select" data-placeholder="Select table">
                        <option value="">SELECT TABLE</option>
                        <?php 
					  $start = 1;if($order_place == 'bar')$start = 11;
					  for($i = $start; $i <27; $i++) {
						  if($i == 13) continue;
						  
						   ?>
                        <option class="opt_<?php echo $i ?>" <?php if(isset($sale_details[0]['table_id']) == $i)echo 'selected' ?> value="<?php echo $i ?>"><?php echo 'Table '.$i ?></option>
                        <?php } ?>
                      </select>
                    </div>
                  </div>
                </div>
                <div class="form-group" id="ui">
                  <div class="input-group">
                    <input type="text" name="add_item" value="" class="form-control pos-tip" id="add_item" data-placement="top" data-trigger="focus" style="background-color:#FFF" />
                    <!--title="Please start typing code/name for suggestions"-->
                    <div class="input-group-addon" style="padding: 2px 8px; border-left: 0;"><i class="fa fa-search" style="font-size: 1em;"></i> </div>
                  </div>
                  <div style="clear:both;"></div>
                </div>
              </div>
            </div>
            <div id="print" class="no-print">
              <div id="left-middle">
                <div id="product-list" class="ps-container ps-active-y">
                  <table style="margin-bottom: 0;" id="posTable" class="table items table-striped table-bordered table-condensed table-hover">
                    <thead>
                      <tr>
                        <th style="width:30%">Product</th>
                        <th style="width:20%">Price</th>
                        <th style="width:15%">Qty</th>
                        <th style="width:20%">Subtotal</th>
                        <th style="width: 10%; text-align: center;"><i style="opacity:0.5; filter:alpha(opacity=50);" class="fa fa-trash-o"></i></th>
                      </tr>
                    </thead>
                    <tbody>
                    </tbody>
                  </table>
                  <div style="clear:both;"></div>
                  <div class="ps-scrollbar-x-rail" style="width: 436px; display: none; left: 0px; bottom: 3px;">
                    <div class="ps-scrollbar-x" style="left: 0px; width: 0px;"></div>
                  </div>
                  <div class="ps-scrollbar-y-rail" style="top: 0px; height: 319px; display: none; right: 3px;">
                    <div class="ps-scrollbar-y" style="top: 0px; height: 0px;"></div>
                  </div>
                </div>
              </div>
              <div style="clear:both;"></div>
              <div id="left-bottom">
                <table style="width:100%; float:right; padding:5px; color:#000; background: #FFF;" id="totalTable">
                  <tbody>
                    <tr>
                      <td style="padding: 5px 10px;border-top: 1px solid #DDD;">Items</td>
                      <td style="padding: 5px 10px;font-size: 14px; font-weight:bold; border-top: 1px solid #DDD;" class="text-right"><span id="titems">0</span></td>
                      <td style="padding: 5px 10px;border-top: 1px solid #DDD;">Total</td>
                      <td style="padding: 5px 10px;font-size: 14px; font-weight:bold; border-top: 1px solid #DDD;" class="text-right"><span id="total">0.00</span></td>
                    </tr>
                    <tr>
                      <td style="padding: 5px 10px;border-top: 1px solid #DDD;">Discount &nbsp;<a id="ppdiscount" href="#"> <i class="fa fa-edit"></i> </a></td>
                      <td style="padding: 5px 10px;font-size: 14px; font-weight:bold; border-top: 1px solid #DDD;" class="text-right"><span id="tds">0.00</span></td>
                      <td style="padding: 5px 10px;border-top: 1px solid #DDD;"><span class="hide_me"> Delivery &nbsp;<a href="#" id="pshipping"> <i class="fa fa-plus-square"></i> </a></span></td>
                      <td style="padding: 5px 10px;font-size: 14px; font-weight:bold; border-top: 1px solid #DDD;" class="text-right"><span class="hide_me"><span id="tship">0.00</span></span></td>
                    </tr>
                    <tr>
                      <td colspan="1" style="padding: 5px 10px; border-top: 1px solid #666; font-weight:bold; background:#333; color:#FFF;"> Cash :
                        <input onkeyup="validate_cash(),grand_total_cal()" type="text" name="cash_en" value="" class="form-control" id="cash_en" style="background-color:#FFF; height: 60px; font-size: 2.5em; width: 208px; text-align: right;" onClick=this.select()></td>
                      <td colspan="3" style="padding:5px 10px 5px 10px; font-size: 14px;border-top: 1px solid #666; font-weight:bold; background:#333; color:#FFF;">Total &nbsp;:<span id="gtotal" style=" font-size:25px">0.00</span> <br />
                        Balance &nbsp;:<span id="cash_balance" style="font-size:25px"></span></td>
                    </tr>
                  </tbody>
                </table>
                <input type="hidden" value="3" id="biller" name="biller">
                <div class="clearfix"></div>
                <div id="botbuttons" class="col-xs-12 text-center">
                  <div class="row">
                    <div class="col-xs-12" style="padding: 0;">
                      <div class="col-xs-12" style="padding: 0;">
                        <button type="button" class="btn btn-primary btn-block" id="save" style="height:80px;" tabindex="-1"> <i class="fa fa-hand-paper-o" style="margin-right: 5px;"></i>SAVE INVOICE</button>
                      </div>
                      <div class="col-xs-6" style="padding: 0;">
                        <button type="button" class="btn btn-danger btn-block btn-flat cancel" id="reset" tabindex="-1" style="height:55px;"> Cancel </button>
                      </div>
                      <div class="col-xs-6" style="padding: 0;">
                        <button type="button" class="btn btn-success btn-block" id="payment" style="height:55px;" tabindex="-1"> <i class="fa fa-money" style="margin-right: 5px;"></i>Payment </button>
                      </div>
                      <div class="col-xs-6" id="print_button_container"></div>
                    </div>
                  </div>
                  <?php /*?><div class="btn-group btn-group-justified">
										<div class="btn-group">
											<div class="btn-group btn-group-justified">
												<div class="btn-group">
													<button id="reset" class="btn btn-danger" type="button">Cancel</button>
												</div>
											</div>
											<div class="btn-group">
												<button id="print_bill" class="btn btn-primary" type="button">
													<i class="fa fa-print"></i> Bill </button>
											</div>
										</div>
										<div class="btn-group">
											<button id="payment" class="btn btn-success" type="button">
												<i class="fa fa-money"></i> Payment </button>
										</div>
									</div><?php */?>
                </div>
                <div style="clear:both; height:5px;"></div>
                <div id="num">
                  <div id="icon"></div>
                </div>
                <span id="hidesuspend"></span>
                <?php if($sale_id) {?>
                <input type="hidden" name="sale_id" id="sale_id" value="<?php echo $sale_id; ?>">
                <input type="hidden" name="sale_reference_no" id="sale_reference_no" value="<?php echo $sale_details[0]['sale_reference_no']; ?>">
                <?php } ?>
                <input type="hidden" name="posshipping" id="posshipping" value="<?php if($sale_id){if($sale_details[0]['sale_shipping']) echo $sale_details[0]['sale_shipping'];}else echo '0.00'; ?>">
                <input type="hidden" name="shipping_address" id="shipping_address" value="<?php if($sale_id){if($sale_details[0]['shipping_address']) echo $sale_details[0]['shipping_address'];}else echo ''; ?>">
                <input type="hidden" name="rowCount" id="rowCount" value="0">
                <!--keyboard input-->
                <input type="hidden" id="id-name" value="" />
                <!--end keyboard input-->
                <input type="hidden" name="sale_datetime" id="sale_datetime" value="0">
                <input type="hidden" name="discount" id="posdiscount" value="0">
                <input type="hidden" name="pos_discount_input1" id="pos_discount_input1" value="0">
                <input type="hidden" name="pay_amount" id="pay_amount" value="" />
                <input type="hidden" name="balance_amount" id="balance_amount_1" value="" />
                <input type="hidden" name="grand_total" id="grand_total" value="">
                <input type="hidden" name="paid_by" id="paid_by_val_1" value="cash" />
                <input type="hidden" name="cc_name" id="cc_name" value="" />
                <input type="hidden" name="cc_no" id="cc_no" value="" />
                <input type="hidden" name="pcc_holder" id="pcc_holder" value="" />
                <input type="hidden" name="pcc_type" id="pcc_type" value="visa" />
                <input type="hidden" name="payment_note" id="pos_note" value="" />
                <input type="hidden" name="extra_charges" id="extra_charges" value="" />
                <input type="hidden" name="extra_charges_amount" id="extra_charges_amount" value="" />
              </div>
            </div>
          </div>
        </form>
        <?php /*?><div id="bill_tbl"><span id="bill_span"></span>
					<table id="bill-table" width="100%" class="prT table table-striped" style="margin-bottom:0;">
					</table>
					<table id="bill-total-table" class="prT table" style="margin-bottom:0;" width="100%">
					</table>
					<span id="bill_footer"></span>
				</div><?php */?>
            <ul class="nav nav-tabs navbar-nav tab-green no-print" id="myTab2" style="width:12%;border-bottom: none; ">
              <li <?php echo 'class="active btn btn-icon btn-block"' ?>> <a data-toggle="tab" href="#cat_<?php echo 1000; ?>" style="background:rgba(255, 255, 255, 0.7); font-size:20px;">FEATURED </a>
                <?php foreach ($category as $key => $cat) { ?>
              <li style="" class="btn btn-icon btn-block" > <a data-toggle="tab" href="#cat_<?php echo $cat->cat_id; ?>" style="background:rgba(255, 255, 255, 0.7); font-size:20px;"><?php echo $cat->cat_name; ?> </a> </li>
              <?php } ?>
            </ul>
        <div id="cp">
          <div id="cpinner"> 
            <!-- Tab Start -->
            
            <div class="quick-menu">
              <div id="proContainer">
                <div id="ajaxproducts">
                  <div id="item-list" style="overflow:scroll" class="dragscroll">
                    <?php 
				echo '<div class="tabbable tabs-top">
							<div class="tab-content">';
				  foreach($product_list_by_category as $key=>$cat){
					  $status = '';
					//  if($cat[0]['cat_id'] == 1000) $status = 'active';
					if(!isset($cat[0]))continue;
					if($cat[0]['cat_id'] != $liquor_cat_id){
					  echo '<div id="cat_'.$cat[0]['cat_id'].'" class="tab-pane">';
					   foreach($cat as $value){
						echo " <button product_id_sub=\"\" product_qty=\"1\" id='product-".$value['product_id']."' type='button'
									class='item_btn_1 btn-prni btn-default product pos-tip box' value='".$value['product_code']."'
									data-container='body' product_price='".$value['product_price']."'
									title='".$value['product_name']."' product_id='".$value['product_id']."'
									style='background-image:url( ".asset_url()."uploads/thumbs/".$value['product_thumb'].");
									background-repeat:no-repeat; background-position:left top;' product_name=\"$value[product_name]\">
                      
											<label style='' id='product-".$value['product_id']."'
											type='button' class='label-item btn-prni btn-default ' value='".$value['product_code']."'
											data-container='body' product_price='".$value['product_price']."'
											title='".$value['product_name']."' product_id='".$value['product_id']."'>
											".substr($value['product_name'], 0, 25)."- Rs. ".$value['product_price']."
											</label>
                      			</button>";
						   }
						echo '</div>';
					  }else{
						  echo '<div id="cat_'.$cat[0]['cat_id'].'" class="tab-pane">';
									 $c = count($category_by_id_2);
									 for($i = 0; $i < $c; $i++ ){
											echo "<h2 style=\"text-align: center\">".$category_by_id_2[$i]->product_name."</h2>"; 
												 if($category_by_id_2[$i]->shot_0 > 0){ ?>
                    <button shot_volume="0.025" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $category_by_id_2[$i]->product_name; ?>' product_qty='1' product_code='<?php echo $category_by_id_2[$i]->product_code; ?>' product_name='<?php echo $category_by_id_2[$i]->product_name.' 25 ml'; ?>' type='button' id='product-<?php echo $category_by_id_2[$i]->product_id; ?>' product_id='<?php echo $category_by_id_2[$i]->product_id; ?>' product_id_sub="1" product_price='<?php echo $category_by_id_2[$i]->shot_25; ?>' label='<?php echo $category_by_id_2[$i]->product_code . ' | ' . $category_by_id_2[$i]->shot_0 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '25 ml'.'<br>'.$category_by_id_2[$i]->shot_0; ?></p>
                    </button>
                    <?php } if($category_by_id_2[$i]->shot_25 > 0){ ?>
                    <button shot_volume="0.05" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $category_by_id_2[$i]->product_name; ?>' product_qty='1' product_code='<?php echo $category_by_id_2[$i]->product_code; ?>' product_name='<?php echo $category_by_id_2[$i]->product_name.' 50 ml'; ?>' type='button' id='product-<?php echo $category_by_id_2[$i]->product_id; ?>' product_id='<?php echo $category_by_id_2[$i]->product_id; ?>' product_id_sub="2" product_price='<?php echo $category_by_id_2[$i]->shot_25; ?>' label='<?php echo $category_by_id_2[$i]->product_code . ' | ' . $category_by_id_2[$i]->shot_25 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '50 ml'.'<br>'.$category_by_id_2[$i]->shot_25; ?></p>
                    </button>
                    <?php }
													if($category_by_id_2[$i]->shot_100 > 0){ ?>
                    <button shot_volume="0.50" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $category_by_id_2[$i]->product_name; ?>' product_qty='1' product_code='<?php echo $category_by_id_2[$i]->product_code; ?>' product_name='<?php echo $category_by_id_2[$i]->product_name.' 100 ml'; ?>' type='button' id='product-<?php echo $category_by_id_2[$i]->product_id; ?>' product_id='<?php echo $category_by_id_2[$i]->product_id; ?>' product_id_sub="3" product_price='<?php echo $category_by_id_2[$i]->shot_100; ?>' label='<?php echo $category_by_id_2[$i]->product_code . ' | ' . $category_by_id_2[$i]->shot_100 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '100 ml'.'<br>'.$category_by_id_2[$i]->shot_100; ?></p>
                    </button>
                    <?php }
													if($category_by_id_2[$i]->shot_375 > 0){ ?>
                    <button shot_volume="0.18" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $category_by_id_2[$i]->product_name; ?>' product_qty='1' product_code='<?php echo $category_by_id_2[$i]->product_code; ?>' product_name='<?php echo $category_by_id_2[$i]->product_name.' 180 ml'; ?>' type='button' id='product-<?php echo $category_by_id_2[$i]->product_id; ?>' product_id='<?php echo $category_by_id_2[$i]->product_id; ?>' product_id_sub="4" product_price='<?php echo $category_by_id_2[$i]->shot_375; ?>' label='<?php echo $category_by_id_2[$i]->product_code . ' | ' . $category_by_id_2[$i]->shot_375 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '180 ml'.'<br>'.$category_by_id_2[$i]->shot_375; ?></p>
                    </button>
                    <?php }
													if($category_by_id_2[$i]->shot_750 > 0){ ?>
                    <button shot_volume="0.375" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $category_by_id_2[$i]->product_name; ?>' product_qty='1' product_code='<?php echo $category_by_id_2[$i]->product_code; ?>' product_name='<?php echo $category_by_id_2[$i]->product_name.' Half'; ?>' type='button' id='product-<?php echo $category_by_id_2[$i]->product_id; ?>' product_id='<?php echo $category_by_id_2[$i]->product_id; ?>' product_id_sub="5" product_price='<?php echo $category_by_id_2[$i]->shot_750; ?>' label='<?php echo $category_by_id_2[$i]->product_code . ' | ' . $category_by_id_2[$i]->shot_750 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo 'Half'.'<br>'.$category_by_id_2[$i]->shot_750; ?></p>
                    </button>
                    <?php }if($category_by_id_2[$i]->product_price > 0){ ?>
                    <button shot_volume="0.750" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $category_by_id_2[$i]->product_name; ?>' product_qty='1' product_code='<?php echo $category_by_id_2[$i]->product_code; ?>' product_name='<?php echo $category_by_id_2[$i]->product_name.''; ?>' type='button' id='product-<?php echo $category_by_id_2[$i]->product_id; ?>' product_id='<?php echo $category_by_id_2[$i]->product_id; ?>' product_id_sub="6" product_price='<?php echo $category_by_id_2[$i]->product_price; ?>' label='<?php echo $category_by_id_2[$i]->product_code . ' | ' . $category_by_id_2[$i]->product_price ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo 'Full'.'<br>'.$category_by_id_2[$i]->product_price; ?></p>
                    </button>
                    <?php	
													}
					  		}
							echo '</div>';
						}
					  }
					 
					  // featured items
					   echo '<div id="cat_'.'1000'.'" class="tab-pane active">';
					    foreach ($category_by_id_1 as $key => $product) { 
						if($product->cat_id == $liquor_cat_id){
							//print_r($product->product_id);
												echo "
												<!--<div class=\"row\">-->
												  <div class=\"col-sm-6\">
													<div class=\"panel panel-default\">
														<div class=\"panel-heading\" style=\"text-align:center;font-size:20px\"> ".$product->product_name." </div>
														<div id=\"container2\" style=\"min-width: 100px; min-height: 100px; margin: 0 auto\" data-highcharts-chart=\"1\">
														"; 
							?>
                    <?php if($product->shot_0 > 0){ ?>
                    <button shot_volume="0.025" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $product->product_name; ?>' product_qty='1' product_code='<?php echo $product->product_code; ?>' product_name='<?php echo $product->product_name.' 25 ml'; ?>' type='button' id='product-<?php echo $product->product_id; ?>' product_id='<?php echo $product->product_id; ?>' product_id_sub="1" product_price='<?php echo $product->shot_0; ?>' label='<?php echo $product->product_code . ' | ' . $product->shot_0 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '25 ml'.'<br>'.$product->shot_0; ?></p>
                    </button>
                    <?php } if($product->shot_25 > 0){ ?>
                    <button shot_volume="0.05" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $product->product_name; ?>' product_qty='1' product_code='<?php echo $product->product_code; ?>' product_name='<?php echo $product->product_name.' 50 ml'; ?>' type='button' id='product-<?php echo $product->product_id; ?>' product_id='<?php echo $product->product_id; ?>' product_id_sub="2" product_price='<?php echo $product->shot_25; ?>' label='<?php echo $product->product_code . ' | ' . $product->shot_25 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '50 ml'.'<br>'.$product->shot_25; ?></p>
                    </button>
                    <?php }
													if($product->shot_100 > 0){ ?>
                    <button shot_volume="0.50" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $product->product_name; ?>' product_qty='1' product_code='<?php echo $product->product_code; ?>' product_name='<?php echo $product->product_name.' 100 ml'; ?>' type='button' id='product-<?php echo $product->product_id; ?>' product_id='<?php echo $product->product_id; ?>' product_id_sub="3" product_price='<?php echo $product->shot_100; ?>' label='<?php echo $product->product_code . ' | ' . $product->shot_100 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '100 ml'.'<br>'.$product->shot_100; ?></p>
                    </button>
                    <?php }
													if($product->shot_375 > 0){ ?>
                    <button shot_volume="0.18" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $product->product_name; ?>' product_qty='1' product_code='<?php echo $product->product_code; ?>' product_name='<?php echo $product->product_name.' 180 ml'; ?>' type='button' id='product-<?php echo $product->product_id; ?>' product_id='<?php echo $product->product_id; ?>' product_id_sub="4" product_price='<?php echo $product->shot_375; ?>' label='<?php echo $product->product_code . ' | ' . $product->shot_375 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo '180 ml'.'<br>'.$product->shot_375; ?></p>
                    </button>
                    <?php }
													if($product->shot_750 > 0){ ?>
                    <button shot_volume="0.375" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $product->product_name; ?>' product_qty='1' product_code='<?php echo $product->product_code; ?>' product_name='<?php echo $product->product_name.' Half'; ?>' type='button' id='product-<?php echo $product->product_id; ?>' product_id='<?php echo $product->product_id; ?>' product_id_sub="5" product_price='<?php echo $product->shot_750; ?>' label='<?php echo $product->product_code . ' | ' . $product->shot_750 ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo 'Half'.'<br>'.$product->shot_750; ?></p>
                    </button>
                    <?php }
													if($product->product_price > 0){ ?>
                    <button shot_volume="0.750" data-container='body' class='liquor_btn btn-prni btn-default product pos-tip' title='<?php echo $product->product_name; ?>' product_qty='1' product_code='<?php echo $product->product_code; ?>' product_name='<?php echo $product->product_name.''; ?>' type='button' id='product-<?php echo $product->product_id; ?>' product_id='<?php echo $product->product_id; ?>' product_id_sub="6" product_price='<?php echo $product->product_price; ?>' label='<?php echo $product->product_code . ' | ' . $product->product_price ?>'>
                    <p class="btn" style="width:100%;font-size:26px; padding:0px 0px;"> <?php echo 'Full'.'<br>'.$product->product_price; ?></p>
                    </button>
                    <?php }
													echo "
													<!--</div>-->
													</div>
													  </div>
													</div>";
													?>
                    <?php
							}else{
						echo " <button id='product-".$product->product_id."' type='button'
						 product_qty=\"1\"
						 data-item-id=\"".$product->product_id."\"
						 product_id=\"".$product->product_id."\"
						 product_id_sub=\"\"
									class='item_btn_1 btn-prni btn-default product pos-tip box' value='".$product->product_code."'
									data-container='body' product_price='".$product->product_price."'
									title='".$product->product_name."' style='background-image:url( ".asset_url()."uploads/thumbs/".$product->product_thumb.");
									background-repeat:no-repeat; background-position:left top;' product_name=\"$product->product_name\">
                      
										<label style='' type='button' class='label-item btn-prni btn-default '>
											".substr($product->product_name, 0, 25)."- Rs. ".$product->product_price."
											</label>
                      			</button>"; 
						}		
					   ?>
                    <!--  <button data-container="body" class="home-item_btn_1 btn-prni btn-default product pos-tip" title="" value="<?php echo $product->product_code;?>" type="button" id="product-<?php echo $product->product_code;?>" product_id="<?php echo $product->product_id;?>" product_price="<?php echo $product->product_price;?>" product_name="<?php echo $product->product_name;?>" style="position:; top:0px; left:0px;" data-original-title="Extra Special 375ml"> 
					<?php echo substr($product->product_name, 0, 25) . "<br>" . $product->product_price;?>	</button>   -->
                    <?php
						
						}
					   echo '</div>';
					   
					  
					echo '</div>
					</div>';
				  ?>
                  </div>
                  <div style="clear:both;"></div>
                </div>
              </div>
            </div>
            <div style="clear:both;"></div>
            <!-- Tab End -->
            <div class="">
              <div id="cal_container" style="position: absolute; bottom: 0;right: 0;max-width: 800px; margin-right:-60px">
                    <!-- cal button start -->
                    <div class="cal-wap">
                      <button class="btn-warning" style="background-color:orange" value="-" onClick="cal_btn_click('-')">-</button>
                      <?php for($k=0; $k<10; $k++){ ?>
                      <button class="btn-warning" style="background-color:orange" value="<?php echo $k;?>" onClick="cal_btn_click('<?php echo $k;?>')"><?php echo $k;?></button>
                      <?php } ?>
                      <button class="btn-success" value="e" style="width: 160px;" onClick="$('#add_item').focus(); $('#add_item').val(''); ">ENTER</button>
                      <button class="btn-danger" value="e" style="width: 160px;" onClick="$('#cash_en').val(0); $('#cash_en_tot').val(0); $('#add_item').val(''); clear_amount()">CLEAR</button>
                    </div>
                    <div style="clear:both;"></div>
                    <div class="amount-wap">
                      <?php
                            $amt_ary=array();
                            $amt_ary[]=10;
                            $amt_ary[]=20;
                            $amt_ary[]=50;
                            $amt_ary[]=100;
                            $amt_ary[]=500;
                            $amt_ary[]=1000;
                              $amt_ary[]=5000;
                              
                            
                            for($k=1; $k<count($amt_ary); $k++){
                            ?>
                      <button class="btn-danger" value="<?php echo $amt_ary[$k];?>" onClick="cal_amount_btn_click('<?php echo $amt_ary[$k];?>')"><?php echo $amt_ary[$k];?></button>
                      <?php } ?>
                    
                  <div style="clear:both;"></div>
                </div>
              </div>
            </div>
            <div style="clear:both;"></div>
          </div>
          <div style="clear:both;"></div>
        </div>
        <div style="clear:both;"></div>
      </div>
    </div>
  </div>
</div>
<div id="drawer"></div>
<input type="hidden" id="cash_en_tot" value="0" readonly>
<input type="hidden" id="qty_en_tot" value="">
