
<?php $count = 1; ?>

<?php foreach ($userlist as $boy): ?>




<div class="tblrowborder mb-1">
                                    
                                    <!-- Index column -->
                                   <div class="index-col"><?= $count; ?></div>
                                    
                                    <!-- Content column -->
                                    <div style="flex: 1;">
                                      <!-- User Info box -->
                                      <div class="Tblcontent-box">
                                        <div class="Tblrow-content">
                                          <!-- User Details -->
                                          <div class="col1">
                                            <div class="fs-18 fw-500"><?= !empty($boy->f_name) ? $boy->f_name : "NA" ?></div>
                                            <div class=""><?= $boy->mobile_no ?></div>
                                            <div class=""><?= $boy->email_id ?></div>
                                          </div>
                                          <!-- User ID -->
                                          <div class="col2"><?= $boy->user_id ?></div>
                                          <!-- Address -->
                                          <div class="col3">
                                          <?= !empty($boy->address) ? $boy->address : "NA" ?>
                                          </div>
                                          <!-- Actions -->
                                          <div class="col4">
                                            <button class="blackborderBtn mb-2" fdprocessedid="f10fc">View Details</button>
                                            <a class="text-primary d-block" href="#"><u>Ride History</u></a>
                                          </div>
                                          <!-- Close -->
                                         
                                        </div>
                                      </div>
                          
                                      <!-- Created On -->
                                      <div class="Tblcreated-row">
                                        <div class="Tblcreated-on">
                                          Created On: <span class="fw-600"><?= (!empty($boy->created_date) && $boy->created_date !== '0000-00-00 00:00:00') 
    ? (new DateTime($boy->created_date))->format('d–m–Y (h:i A)') 
    : 'NA' ?>
</span> 
                                        </div>
                                      </div>
                                    </div>
                                  </div>

<?php $count++; ?>

<?php endforeach; ?>











