<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js" integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q" crossorigin="anonymous"></script>
<div class="content-wrapper">
    <section class="content pt-3">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">

                    <div class="card card-outline card-primary">
                        
                        <div class="card-header"><br>
                            <h3 class="card-title">List of Holidays
							<a href="<?php echo site_url(); ?>setting/upload" class="btn btn-primary" style="float:right">
                                <i class="typcn typcn- fa-plus-square menu-icon"></i>Add New Holiday File
                            </a></h3>
                        </div>
						<?php if($this->session->flashdata('success')): ?>
							<p style="color:green"><?= $this->session->flashdata('success') ?></p>
						<?php elseif($this->session->flashdata('error')): ?>
							<p style="color:red"><?= $this->session->flashdata('error') ?></p>
						<?php endif; ?>
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-bordered mb-0 table-striped" id="example">
                                    <thead>
                                        <tr class="bg-light">
                                            <th>Sr no</th>
                                            <th>Holiday</th>
                                            <th>Date</th>
                                            <th class="text-center">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
										 <?php foreach($holidays as $h): ?>
											<tr>
												<td><?= $h['id'] ?></td>
												<td><?= $h['holiday_date'] ?></td>
												<td><?= htmlspecialchars($h['holiday_name'], ENT_QUOTES, 'UTF-8') ?></td>
											</tr>
										<?php endforeach; ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div> <!-- card -->
                </div>
            </div>
        </div>
    </section>
</div>

<!-- Scripts -->
<script src="<?php echo site_url(); ?>public/assets/js/jquery-1.11.1.min.js"></script>
<script src="<?php echo site_url(); ?>public/assets/js/dataTables.js"></script>
<script src="<?php echo site_url(); ?>public/assets/js/dataTables.bootstrap5.js"></script>
<script src="<?php echo site_url(); ?>public/assets/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>