<commit_before><style>
	h2{
		margin: 20px 0;
		padding: 0;
	}

	p{
		margin: 10px 0px;
		padding: 0;
	}
</style>

<?php if($cartDestroy == TRUE): ?>
	
<script>
	 $(window).load(function(){

        $('#checkCart').modal({
		  backdrop: 'static',
		  keyboard: false
		});
		
        $('#checkCart').modal('show');
    })
</script>	

<?php endif; ?>
	
	<div class="row">
		<div class="container">
			<div class="row">
				<div class="col-xs-12 restaurant-detail">
						
					<h2 style="display:inline;"><?php echo $restaurant->name.' ' ?></h2>
					
					<p><?php echo $restaurant->address ?></p>

					<?php if($restaurant_time): ?>
					<p style="margin: 10px 0;"><?php echo 'Open Today'.' '.date('H:i',strtotime($restaurant_time->opentime)).' - '.date('H:i',strtotime($restaurant_time->closetime)) ?></p>
					<?php else: ?>
						<p>Closed Today</p>
					<?php endif; ?>
					<p><a href="tel: <?php echo $restaurant->telephone ?>"><?php echo $restaurant->telephone ?></a></p>
				</div>
			</div>	
		</div>
		
	</div>
	<div class="row">
		<div class="container" style="margin-bottom:20px;">
			<div class="row">
				<div class="col-lg-8 col-xs-12" style="margin-bottom:20px;">
					  <ul class="nav nav-tabs">
					    <li class="active"><a data-toggle="tab" href="#home">Menu</a></li>
					    <li><a data-toggle="tab" href="#review">Reviews</a></li>
					  </ul>
					 
				  
					<div class="tab-content">
				    
				    <div id="home" class="tab-pane fade in active" style="padding:15px;">
				    	<?php foreach($dishes as $dish): ?>
				    	<?php echo form_open('cart/add') ?>
				    	<div class="row" style="padding-bottom:15px; padding-top:10px; border-bottom:1px solid #2C3E50;">
				    		<div class="col-sm-2 hidden-xs" style="padding-right:0;">
				    			<div class="menu-image" style="border-radius:20px; width:100px; height:100px; background-size:cover; background-position:center center; margin:auto; background-image:url(<?php echo base_url().$dish->photo ?>);">
				    				
				    			</div>	
				    			<!-- <img class="img-responsive" src="<?php echo base_url().$dish->photo ?>" alt=""> -->
				    		</div>
				    		<div class="col-xs-12 col-sm-10" style="padding-right:20px;">
				    			<!-- <div class="panel-body"><h3 style="display:inline;" ><?php echo $dish->name ?></h3><input type="number" name="quantity" class="food-number pull-right" required placeholder=" 0" <?php echo $disabled ?> > -->
				    			  <h3 style="display:inline;" ><?php echo $dish->name ?></h3>
				    			  <?php $data = json_encode($dish) ?>

								 <?php if($restaurant_time): ?>
								  <?php if(date('H:i') < date('H:i',strtotime($restaurant_time->opentime)) || 
										date('H:i') > date('H:i',strtotime($restaurant_time->closetime))){
								  		$closed = 'restaurant_still_closed()' ?>
								  		
										<?php }else{
								  		$closed = 'add_cart(this,'.$dish->id .','.$data.')';
								  	}?>
								  <?php else: ?>
									<?php $closed = 'restaurant_closed()' ?>
								  <?php endif ?>
								
							
				    			  <a  class="pull-right" id="plus" onclick='<?php echo $closed ?>'><span class="glyphicon glyphicon-plus"></span></a>

				    			  <div style="word-wrap: break-word; width: 80%">
				    			  	<p><?php echo $dish->description ?></p>
				    			  </div>
							      
							      <p style="margin-bottom:5px;">Price : <?php echo NZD($dish->price) ?></p>
							    <!-- </div> -->
							    
							    <!-- Get Dishes Ids -->
							    <input type="hidden" value="<?php echo $dish->id ?>" name="dish_id">
							    <input type="hidden" value="<?php echo $dish->restaurant_id ?>" name="resto_id">
							    
							    <!-- Get URL -->
							    <input type="hidden" value="<?php echo uri_string(); ?>" name="url">
				    			
				    			<!-- <input type="submit" value="Add to Cart" class="btn btn-primary pull-right" onClick="checkCart()"> -->

				    		</div>
				    	</div>
				    	<?php echo form_close() ?>					    	
				    	<?php endforeach; ?>
				    </div><!--End of Menu tab-->

				    <!--Review Tab-->
				    <div id="review" class="tab-pane fade"><commit_msg>biar ga ada garis dibaawh menu<commit_after><style>
	h2{
		margin: 20px 0;
		padding: 0;
	}

	p{
		margin: 10px 0px;
		padding: 0;
	}
</style>

<?php if($cartDestroy == TRUE): ?>
	
<script>
	 $(window).load(function(){

        $('#checkCart').modal({
		  backdrop: 'static',
		  keyboard: false
		});
		
        $('#checkCart').modal('show');
    })
</script>	

<?php endif; ?>
	
	<div class="row">
		<div class="container">
			<div class="row">
				<div class="col-xs-12 restaurant-detail">
						
					<h2 style="display:inline;"><?php echo $restaurant->name.' ' ?></h2>
					
					<p><?php echo $restaurant->address ?></p>

					<?php if($restaurant_time): ?>
					<p style="margin: 10px 0;"><?php echo 'Open Today'.' '.date('H:i',strtotime($restaurant_time->opentime)).' - '.date('H:i',strtotime($restaurant_time->closetime)) ?></p>
					<?php else: ?>
						<p>Closed Today</p>
					<?php endif; ?>
					<p><a href="tel: <?php echo $restaurant->telephone ?>"><?php echo $restaurant->telephone ?></a></p>
				</div>
			</div>	
		</div>
		
	</div>
	<div class="row">
		<div class="container" style="margin-bottom:20px;">
			<div class="row">
				<div class="col-lg-8 col-xs-12" style="margin-bottom:20px;">
					  <ul class="nav nav-tabs">
					    <li class="active"><a data-toggle="tab" href="#home">Menu</a></li>
					    <li><a data-toggle="tab" href="#review">Reviews</a></li>
					  </ul>
					 
				  
					<div class="tab-content" style="padding: 10px 20px">
				    
				    <div id="home" class="tab-pane fade in active" style="padding:0px 20px;">
				    	<?php $flag = 1; ?>
				    	<?php foreach($dishes as $dish): ?>
				    	<?php if($flag == count($dishes)){

				    			$border = '';

				    		}else{

				    			$border = 'border-bottom:1px solid #2C3E50;';

			    			}  ?>
				    	<?php echo form_open('cart/add') ?>
				    	<div class="row" style="padding-bottom:15px; padding-top:15px; <?php echo $border ?> ">
				    		<div class="col-sm-2 hidden-xs" style="padding-right:0;">
				    			<div class="menu-image" style="border-radius:20px; width:100px; height:100px; background-size:cover; background-position:center center; margin:auto; background-image:url(<?php echo base_url().$dish->photo ?>);">
				    				
				    			</div>	
				    			<!-- <img class="img-responsive" src="<?php echo base_url().$dish->photo ?>" alt=""> -->
				    		</div>
				    		<div class="col-xs-12 col-sm-10" style="padding-right:20px;">
				    			<!-- <div class="panel-body"><h3 style="display:inline;" ><?php echo $dish->name ?></h3><input type="number" name="quantity" class="food-number pull-right" required placeholder=" 0" <?php echo $disabled ?> > -->
				    			  <h3 style="display:inline;" ><?php echo $dish->name ?></h3>
				    			  <?php $data = json_encode($dish) ?>

								 <?php if($restaurant_time): ?>
								  <?php if(date('H:i') < date('H:i',strtotime($restaurant_time->opentime)) || 
										date('H:i') > date('H:i',strtotime($restaurant_time->closetime))){
								  		$closed = 'restaurant_still_closed()' ?>
								  		
										<?php }else{
								  		$closed = 'add_cart(this,'.$dish->id .','.$data.')';
								  	}?>
								  <?php else: ?>
									<?php $closed = 'restaurant_closed()' ?>
								  <?php endif ?>
								
							
				    			  <a  class="pull-right" id="plus" onclick='<?php echo $closed ?>'><span class="glyphicon glyphicon-plus"></span></a>

				    			  <div style="word-wrap: break-word; width: 80%">
				    			  	<p><?php echo $dish->description ?></p>
				    			  </div>
							      
							      <p style="margin-bottom:5px;">Price : <?php echo NZD($dish->price) ?></p>
							    <!-- </div> -->
							    
							    <!-- Get Dishes Ids -->
							    <input type="hidden" value="<?php echo $dish->id ?>" name="dish_id">
							    <input type="hidden" value="<?php echo $dish->restaurant_id ?>" name="resto_id">
							    
							    <!-- Get URL -->
							    <input type="hidden" value="<?php echo uri_string(); ?>" name="url">
				    			
				    			<!-- <input type="submit" value="Add to Cart" class="btn btn-primary pull-right" onClick="checkCart()"> -->

				    		</div>
				    	</div>
				    	<?php $flag ++; ?>
				    	<?php echo form_close() ?>					    	
				    	<?php endforeach; ?>
				    </div><!--End of Menu tab-->

				    <!--Review Tab-->
				    <div id="review" class="tab-pane fade">
{'fraction_non_alphanumeric': 0.21418539325842698, 'fraction_numerical': 0.014279026217228465, 'mean_word_length': 2.3615263571990557, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 267, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '409865', 'n_tokens_mistral': 3865, 'n_tokens_neox': 2872, 'n_words': 566}