<!--start main wrapper-->
    <main class="main-wrapper">
        <div class="main-content">

            <h3 class="fmon fw-bold"><i class="fa-solid fa-handshake"></i> Meetings Setup by admin </h3>




            <div class="row">
                <div class="col-md-7">

                    <div class="input-group border-15">
                        <span class="input-group-text  border-15"><img src="<?php echo base_url(); ?>assets/images/serIcon.png" alt=""
                                width="25px"></span>
                        <input type="text" name="" id="" class="form-control form-Search  border-15  py-2"
                            placeholder="search">
                    </div>

                </div>
                <div class="col-md-5 d-flex justify-content-end gap-2">

                    <a href="<?php echo base_url().'site/addmeeting'; ?>" class="btn addBtn d-flex gap-2 align-items-center"><img
                            src="<?php echo base_url(); ?>assets/images/megaIcons/aplu.png" alt="">Setup Meeting</a>


                </div>
            </div>
            <div>
                <div class="table-responsive mt-3">
                    <table class="table table-striped table-hover">
                        <thead>
                            <tr>
                                <th scope="col">Subject</th>
                                <th scope="col">Date</th>
                                <th scope="col">Time</th>
                                <th scope="col">Location</th>
                                <th scope="col">Description</th>
                                <th scope="col">Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach($meetings as $key=>$meeting): ?>
                            <tr>
                                <td>
                                    <div class="d-flex align-items-center h-100">
                                        <p class="ft6 fmon m-0"><?php echo $meeting['subject']; ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="d-flex align-items-center h-100">
                                        <p class="ft7 fmon m-0"><?php echo date('d M, Y',$meeting['date']/1000); ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="d-flex align-items-center h-100">
                                        <p class="ft7 fmon m-0"><?php echo $meeting['time']; ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="d-flex align-items-center h-100">
                                        <p class="ft7 fmon m-0"><?php echo $meeting['location']; ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="d-flex align-items-center h-100">
                                        <p class="ft7 fmon m-0"><?php echo $meeting['description']; ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="d-flex gap-2 align-items-end">
                                        <a href="<?php echo base_url().'site/editmeeting/'.$meeting['id']; ?>" >
                                            <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                        </a>

                                        <a href="<?php echo base_url().'site/deletemeeting/'.$meeting['id']; ?>" class="" >
                                            <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                        </a>

                                    </div>

                                </td>
                            </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>

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

    </main>
    <!--end main wrapper-->

