 <h6><strong>Month: </strong> <?php date('F,Y',strtotime($yearMonth))?></h6>
        </div>
    </div>
    <?php if($data) ?>
        <div class="">
            <table id="attendanceList" class="table table-bordered">
                <thead>
                <tr>
                
                    <?php foreach($keys as $index=>$key)
                        if($index>1)
                        if($type=='complete') ?>
                            <th><?php date('d-M',strtotime($key));?></th>
                        <?php 
                        elseif($index==1) ?>
                            <th>Roll No</th>
                        <?php else ?>
                            <th><?php $key ?></th>
                        <?php endif
                    endforeach
                 ?>
                    <th>Present</th>
                    <th>Absent</th>
                    <th>Holiday</th>
                    <th>Class Off</th>
                    <th>ToT.DAYS</th>
                </tr>
                </thead>