<footer class="footer mt-auto py-3 bg-light">
   <div class="container">

      <div class="d-flex justify-content-between">
         <div class="">
            <a href="/" class="mb-3 me-2 mb-md-0 text-muted text-decoration-none lh-1">
               <img src="<?php if (isset($dataConfig['logo2'])) {echo base_url() ?>assets/epscolor/img/empresas/<?php echo $dataConfig['logo2'] ; } ?>" alt="Logo2" width="75" >
            </a>
            <span class="mb-3 mb-md-0 text-muted">© 2024 Company, Inc</span>
         </div>

         <div class="">
            <?php if (session()->get('user_name')) { ?>
               <div class="dropdown">
                  <a href="#" class="btn dropdown-toggle  " id="dropdownUser2" data-bs-toggle="dropdown" aria-expanded="false">
                     <?php $user=session()->get('user_name'); preg_match_all('/(?<=\b)\w/iu',$user,$matches); 
                     $result=mb_strtoupper(implode('',$matches[0])); echo $result; ?>
                  </a>
                  <ul class="dropdown-menu text-small shadow dropdown-menu-end" aria-labelledby="dropdownUser2">
                     <li><a class="dropdown-item" href="#"><?php echo $user=session()->get('user_name'); ?></a></li>
                     <li><a class="dropdown-item" href="#"><?php echo session()->get('user_cargo'); ?></a></li>
                     <li><a class="dropdown-item" href="#"><?php echo session()->get('user_role'); ?></a></li>
                     <li><hr class="dropdown-divider"></li>
                     <li><a class="dropdown-item" href="<?= base_url(); ?>logout">Sign out</a></li>
                  </ul>
               </div>

            <?php } else { ?>
               <a class="btn btn-success" href="<?= base_url(); ?>signin">Sign in</a>
            <?php } ?>
         </div>
      </div>

   </div>
</footer>