<?php $__env->startSection('content'); ?>
<section>
	<h4 class="text-center"><?php echo e(trans('file.My Holiday')); ?></h4>
	<div class="table-responsive mt-3">
		<table class="table table-bordered" style="border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6;">
			<thead>
				<tr>
					<th><a href="<?php echo e(url('holidays/my-holiday/'.$prev_year.'/'.$prev_month)); ?>"><i class="fa fa-arrow-left"></i> <?php echo e(trans('file.Previous')); ?></a></th>
			    	<th colspan="5" class="text-center"><?php echo e(date("F", strtotime($year.'-'.$month.'-01')).' ' .$year); ?></th>
			    	<th><a href="<?php echo e(url('holidays/my-holiday/'.$next_year.'/'.$next_month)); ?>"><?php echo e(trans('file.Next')); ?> <i class="fa fa-arrow-right"></i></a></th>
			    </tr>
			</thead>
		    <tbody>
			    <tr>
				    <td><strong>Sunday</strong></td>
				    <td><strong>Monday</strong></td>
				    <td><strong>Tuesday</strong></td>
				    <td><strong>Wednesday</strong></td>
				    <td><strong>Thrusday</strong></td>
				    <td><strong>Friday</strong></td>
				    <td><strong>Saturday</strong></td>
			    </tr>
			    <?php 
			    	$i = 1;
			    	$flag = 0;
			    	while ($i <= $number_of_day) {
			    		echo '<tr>';
			    		for($j=1 ; $j<=7 ; $j++){
			    			if($i > $number_of_day)
			    				break;

			    			if($flag){
			    				if(($year.'-'.$month.'-'.$i == date('Y').'-'.date('m').'-'.(int)date('d')) && !$holidays[$i]) {
			    					echo '<td><p style="color:red"><strong>'.$i.'</strong></p>';
			    				}
			    				elseif($holidays[$i]){
			    					echo '<td><p style="color:#006600"><strong>'.$i.'</strong></p><span style="width: 112px; height: 20px; border-top: 7px solid #66a3ff; border-bottom: 35px solid #66a3ff; color:white; font-size:11px;" class="text-center">'.$holidays[$i].'</span><br>';
			    				}
			    				else
			    					echo '<td><p><strong>'.$i.'</strong></p>';
			    				echo '</td>';
			    				$i++;
			    			}
			    			elseif($j == $start_day){
			    				if(($year.'-'.$month.'-'.$i == date('Y').'-'.date('m').'-'.(int)date('d')) && !$holidays[$i]) {
			    					echo '<td><p style="color:red"><strong>'.$i.'</strong></p>';
			    				}
			    				elseif($holidays[$i]){
			    					echo '<td><p style="color:#006600"><strong>'.$i.'</strong></p><span style="width: 112px; height: 20px; border-top: 7px solid #66a3ff; border-bottom: 35px solid #66a3ff; color:white; font-size:11px;" class="text-center">'.$holidays[$i].'</span><br>';
			    				}
			    				else
			    					echo '<td><p><strong>'.$i.'</strong></p>';
			    				echo '</td>';
			    				$flag = 1;
			    				$i++;
			    				continue;
			    			}
			    			else {
			    				echo '<td></td>';
			    			}
			    		}
			    	    echo '</tr>';
			    	}
			    ?>
		    </tbody>
		</table>
	</div>	
</section>

<script type="text/javascript">


</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\salepro\resources\views/holiday/my_holiday.blade.php ENDPATH**/ ?>