
<div class="main-content">
    <!--breadcrumb-->
    <h3 class="fmon">Doctors</h3>
    <div class="my-2">
        <div class="table-responsive">
            <table id="example" class="table tableStriped">
                <thead>
                    <tr>
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">DR Name</p>
                        </th>
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Email</p>
                        </th>
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Phone</p>
                        </th>
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Specialist</p>
                        </th>
          <!--
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Patients Name</p>
                        </th>
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Patient ID</p>
                        </th>
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Status</p>
                        </th>
-->
                        <th scope="col fColorred">
                            <p class="fColorred mb-0">Actions</p>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <!-- Add table rows with data here -->
                    <?php foreach($customerlist as $c=>$data){
                        // echo "<pre>";
                        // print_r($data);
                        // echo "</pre>";

                        ?>
                    
                    <tr>
                        <td>
                    <?php echo $data['firstName']." ".$data['lastName']; ?></td>
                        <td><?php echo $data['email']; ?></td>
                        <td><?php echo $data['phoneNumber']; ?></td>
                        <td>
                            <p class="card oCard fColorred px-2"><?php echo $data['specialist']; ?></p>
                        </td>
                       
                        <td>
                            <div class="dropdown">
                                <button class="btn " type="button" id="dropdownMenuButton" data-bs-toggle="dropdown"
                                    aria-expanded="false">
                                    <i class="fa-solid fa-ellipsis-vertical"></i>
                                </button>
                                <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                    <li><a class="dropdown-item" href="<?php echo base_url().'doctor/viewpateint/'.$c ?>">View Patient</a></li>
                                    <!--
                                    <li><a class="dropdown-item" href="#">Delete</a></li>
                    -->
                                </ul>
                            </div>

                        </td>
                    </tr>
                    <?php } ?>
                    <!-- Add more rows as needed -->
         
                </tbody>
            </table>
        </div>
    </div>

</div>
