<div class="container-fluid mt-3 mb-3">
    <div class="row">
        <div class="col-sm-12">
            <ul class="breadcrumb">
                <li class="breadcrumb-item">Home</li>
                <li class="breadcrumb-item">School Calender</li>
                <li class="breadcrumb-item">Holidays</li>
                <li class="breadcrumb-item">All Holidays</li>
            </ul>    


            <div class="table-responsive">
                <table class="table table-bordered table striped">
                    <thead>
                        <tr>
                            <th>Date </th>    
                            <th>Event</th>
                        </tr>    
                    </thead>    
                    <tbody>
                    <?php 

                    $yy='2020_2021';
                    $y1=$this->session->userdata("y1");
                    $y2=$y1 + 1;
                    $all_holidays=$this->CalenderModel->get_holidays();
                    if($all_holidays){
                        foreach($all_holidays as $holidays){
                            $month=$holidays['month'];
                                if($holidays['year']==$y1 & $holidays['month'] >3){
                            ?>
                        <tr>
                            <td><?php echo date("d-M-Y", strtotime($holidays['holiday_date'])); ?></td>
                            <td><?php echo $holidays['holiday_detail']; ?></td>
                        </tr>
                            <?php
                            }

                            if($holidays['year']==$y2 & $holidays['month'] <4){
                        ?>
                        <tr>
                            <td><?php echo date("d-M-Y", strtotime($holidays['holiday_date'])); ?></td>
                            <td><?php echo $holidays['holiday_detail']; ?></td>
                        </tr>
                    <?php
                            }
                        }    
                    }
                    ?>    
                    </tbody>
                </table>    
            </div>

        </div>
    </div>
</div>