<div class="main">
            <p class="fd-3">Notifications</p>
      



            <div class="row my-2 g-3">
                <?php foreach($notifications as $key=> $notification): ?>
                <div class="col-md-12">
                    <div class="card m-card">
                        <div class="card-body">
                            <div class="d-flex align-items-center gap-2">
                                <img src="<?php echo base_url(); ?>assets/images/icons/bigbell.png" alt="">
                                <div>
                                    <p class="fd-10 mb-2"><?php echo $notification['title']; ?>
                                    <?php if(isset($notification['isRead'][$notification['userId']]) && $notification['isRead'][$notification['userId']] == 1){ ?>
                                                       
                                                       <small class="text-success"> </small>
                                                                <?php } else { ?>
                                                                   <small class="text-danger">●</small>
                                                                <?php } ?>
                                </p>
                                    <p class="fd-11 mb-0"><span>Driver:</span> <?php echo $notification['message']; ?>
                                     - <span>ETA:</span> <?php echo convertTimetohuman1($notification['timestamp']); ?>
                                        minutes -
                                           <span>Vehicle:</span> Honda Acard (AX11M4D)
                                          
                                    </p>
                                </div>
                            </div>
                            <button class="btn btn-sm track-btn mt-2">
                                <a style="text-decoration: none; color: black;"  href="<?php echo base_url(); ?>dashboard/details/<?php echo $notification['orderId']; ?>">
                                Tap here to track your ride.
                                </a>
                                
                            </button>
                        </div>
                    </div>
                </div>
                <?php endforeach; ?>
            </div>



        </div>