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

            <h3 class="fmon fw-bold"><i class="fa-solid fa-user-tie"></i> Admin Info</h3>
            <ul class="  row " id="myTab" role="tablist">
                <li class="nav-item nav-link col-md-3" role="presentation">
                    <a href="<?php echo base_url().'site/condoinfo'; ?>" 
                    class="card un-card <?php echo $type=='condo'?'active':''; ?> w-100 " 
                >
                        <div class="card-body w-100">
                            <div class="d-flex justify-content-between">
                                <p class="ft4 fmon">Condo Info</p>
                                <img src="<?php echo base_url(); ?>assets/images/condo.png" alt="" width="50px">
                            </div>
                        </div>
                </a>
                </li>
                <li class="nav-item col-md-3" role="presentation">
                    <a  href="<?php echo base_url().'site/admininfo'; ?>" class="card un-card <?php echo $type=='admin'?'active':''; ?> w-100" >
                        <div class="card-body w-100">
                            <div class="d-flex justify-content-between">
                                <p class="ft4 fmon">Admin info</p>
                                <img src="<?php echo base_url(); ?>assets/images/admini.png" alt="" width="50px">
                            </div>
                        </div>
                    </a>
                </li>
                <li class="nav-item  col-md-3" role="presentation">
                    <a  href="<?php echo base_url().'site/bankinfo'; ?>" class="card un-card <?php echo $type=='bank'?'active':''; ?> w-100" >
                        <div class="card-body w-100">
                            <div class="d-flex justify-content-between">
                                <p class="ft4 fmon">Bank Accounts</p>
                                <img src="<?php echo base_url(); ?>assets/images/banka.png" alt="" width="50px">
                            </div>
                        </div>
                    </a>
                </li>
            </ul>




            <!-- Tab Content -->
            <div class="tab-content my-4" id="myTabContent">
                <!-- Pending Tab -->


                <!-- Approved Tab -->
                <div class="tab-pane fade show active" id="approved" role="tabpanel" aria-labelledby="approved-tab">
                    <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/addadmininfo'; ?>" class="btn addBtn d-flex gap-2 align-items-center"><img
                                    src="<?php echo base_url(); ?>assets/images/megaIcons/aplu.png" alt="">Add admin</a>


                        </div>
                    </div>
                    <div>
                        <div class="table-responsive mt-3">
                            <table class="table table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th scope="col">Name</th>
                                        <th scope="col">Role</th>
                                        <th scope="col">Phone</th>
                                        <th scope="col">Email</th>
                                        <th scope="col">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach($admininfo as $key => $info){ ?>
                                    <tr>
                                        <td>
                                            <div class="d-flex align-items-center h-100">
                                                <p class="ft6 fmon m-0"><?php echo $info['name']; ?></p>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="d-flex align-items-center h-100">
                                                <p class="ft7 fmon m-0"><?php echo $info['role']; ?></p>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="d-flex align-items-center h-100">
                                                <p class="ft7 fmon m-0"><?php echo "Phome" ?></p>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="d-flex align-items-center h-100">
                                                <p class="ft7 fmon m-0"><?php echo $info['email']; ?></p>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="<?php echo base_url().'site/editadmininfo/'.$key; ?>" class="">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="<?php echo base_url().'site/deleteadmininfo/'.$key; ?>" class="" >
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                    <?php } ?>
                                    <!-- Additional rows can be added dynamically -->
                                </tbody>
                            </table>

                
                        </div>

                    </div>
                </div>

                <!-- bank  Tab -->
                <div class="tab-pane fade" id="history" role="tabpanel" aria-labelledby="history-tab">
                    <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/addbank'; ?>" class="btn addBtn d-flex gap-2 align-items-center"><img
                                    src="<?php echo base_url(); ?>assets/images/megaIcons/aplu.png" alt="">Add Bank</a>

                        </div>
                    </div>
                    <div>
                        <div class="table-responsive mt-3">
                            <table class="table table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th scope="col">Bank Name</th>
                                        <th scope="col">Account Number</th>
                                        <th scope="col">IBAN</th>
                                        <th scope="col">Currency</th>
                                        <th scope="col">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>Lorem Ipsum Bank</td>
                                        <td>6024720363714226242</td>
                                        <td>EN34LIB0247697140226242</td>
                                        <td>USD</td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="#" class="" data-bs-toggle="modal" data-bs-target="#editModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="#" class="" data-bs-toggle="modal"
                                                    data-bs-target="#deleteModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Lorem Ipsum Bank</td>
                                        <td>6024720363714226242</td>
                                        <td>EN34LIB0247697140226242</td>
                                        <td>EUR</td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="<?php echo base_url().'site/editadmininfo'; ?>" class="">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="#" class="" data-bs-toggle="modal"
                                                    data-bs-target="#deleteModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Lorem Ipsum Bank</td>
                                        <td>6024720363714226242</td>
                                        <td>EN34LIB0247697140226242</td>
                                        <td>USD</td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="<?php echo base_url().'site/editadmininfo'; ?>" class="">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="#" class="" data-bs-toggle="modal"
                                                    data-bs-target="#deleteModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Lorem Ipsum Bank</td>
                                        <td>6024720363714226242</td>
                                        <td>EN34LIB0247697140226242</td>
                                        <td>EUR</td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="<?php echo base_url().'site/editadmininfo'; ?>" class="">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="#" class="" data-bs-toggle="modal"
                                                    data-bs-target="#deleteModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Lorem Ipsum Bank</td>
                                        <td>6024720363714226242</td>
                                        <td>EN34LIB0247697140226242</td>
                                        <td>USD</td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="<?php echo base_url().'site/editadmininfo'; ?>" class="">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="#" class="" data-bs-toggle="modal"
                                                    data-bs-target="#deleteModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Lorem Ipsum Bank</td>
                                        <td>6024720363714226242</td>
                                        <td>EN34LIB0247697140226242</td>
                                        <td>EUR</td>
                                        <td>
                                            <div class="d-flex gap-2 align-items-end">
                                                <a href="<?php echo base_url().'site/editadmininfo'; ?>" class="">
                                                    <img src="<?php echo base_url(); ?>assets/images/viedit.png" alt="">
                                                </a>

                                                <a href="#" class="" data-bs-toggle="modal"
                                                    data-bs-target="#deleteModal">
                                                    <img src="<?php echo base_url(); ?>assets/images/delr.svg" alt="">
                                                </a>

                                            </div>

                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

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

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

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

