<div class="content-wrapper">
          <div class="row">
            <div class="col-md-12 grid-margin">
              <div class="d-flex justify-content-between flex-wrap">
                <div class="d-flex align-items-end flex-wrap">
                  <div class="mr-md-3 mr-xl-5">
                    <h2>Welcome back,</h2>
                    <p class="mb-md-0">Your Admin dashboard.</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12 grid-margin stretch-card">
              <div class="card">
                <div class="card-body dashboard-tabs p-0">
                  <ul class="nav nav-tabs px-4" role="tablist">
                    <li class="nav-item">
                      <a class="nav-link active" id="overview-tab" data-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">Overview</a>
                    </li>
                  </ul>
                  <div class="tab-content py-0 px-0">
                    <div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
                      <div class="d-flex flex-wrap justify-content-xl-between">
                
                        <div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
                          <i class="mdi mdi-bank mr-3 icon-lg text-danger"></i>
                          <div class="d-flex flex-column justify-content-around">
                            <small class="mb-1 text-muted">Total Bank Accounts</small>
                            <h5 class="mr-2 mb-0"><?php echo $bankdata->count_bank_account(); ?></h5>
                          </div>
                        </div>
                        <div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
                          <i class="mdi mdi-pencil-box-outline mr-3 icon-lg text-success"></i>
                          <div class="d-flex flex-column justify-content-around">
                            <small class="mb-1 text-muted">Total Registered Account</small>
                            <h5 class="mr-2 mb-0"><?php echo $bankdata->count_register_account(); ?></h5>
                          </div>
                        </div>
                        <div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
                          <i class="mdi mdi-comment mr-3 icon-lg text-warning"></i>
                          <div class="d-flex flex-column justify-content-around">
                            <small class="mb-1 text-muted">Total Contact Message</small>
                            <h5 class="mr-2 mb-0"><?php echo $bankdata->count_contacts(); ?></h5>
                          </div>
                        </div>
                      </div>
                    </div>
              
                  </div>
                </div>
              </div>
            </div>
          </div>    
        </div>
        <!-- content-wrapper ends -->
        <?php
        $admcur = new adminUser;
        if(isset($_REQUEST['submit_cur_change'])){
        if($admcur->change_currency($_REQUEST['selected_cur'])){
          // print_r($_REQUEST['selected_cur']);
          echo "
          <script>
          Swal.fire({
          icon: 'success',
          title: 'Congratulations',
          text: 'New Currency Selected!',
        })
        </script> 
          ";
       }else{
         echo "
         <script>
         Swal.fire({
         icon: 'error',
         title: 'Oops',
         text: 'Unable to Select Currency',
       })
       </script> 
         ";

        }
        }
        $currency_used = $admcur->select_currency();
         $local_banks = $admcur->get_localbanks();
        $alert_msg_pass = '';
        if(isset($_POST['update_profile_password'])){
            if($admcur->change_admin_password($_REQUEST['old_password'],$_REQUEST['new_password'])){
                 $errMSG = 'PASSWORD CHANGED SUCCESSFULLY';
              $alert_msg_pass = '<div class="alert alert-success">'.$errMSG.'</div>';
            }else{
                $errMSG = 'OLD PASSWORD IS INCORRECT';
              $alert_msg_pass = '<div class="alert alert-warning">'.$errMSG.'</div>';
            }
        }
        
                if(isset($_POST['update_localbanks'])){
            if($admcur->update_localbanks(explode(',',$_REQUEST['local_banks']))){
                //  $errMSG = 'UPDATED SUCCESSFULLY';
            //   $alert_msg_pass = '<div class="alert alert-success">'.$errMSG.'</div>';
            }else{
                // $errMSG = 'OLD PASSWORD IS INCORRECT';
            //   $alert_msg_pass = '<div class="alert alert-warning">'.$errMSG.'</div>';
            }
        }
        $local_banks = $admcur->get_localbanks();
      ?>
        
        <!--    <div class="card">-->
        <!--    <div class="card-header">-->
        <!--        Update Local Bank List-->
        <!--    </div>-->
        <!--                    <div class="card-body">-->
        <!--    <form action="/admin/dashboard" class="container py-3 form-group" method="POST">-->
        <!--<div class="form-group">-->
        <!--  <label>Enter Local Banks(seperate each with commas(,))</label>-->
                  <!--<textarea class="form-control" name="local_banks" rows="5" style="resize: vertical;line-height: 1.5em;line-spacing:1.5em" required><?php //echo $local_banks; ?></textarea>-->
        <!--           </div>-->
        <!--              <div class="form-group">-->
        <!--                <button class="btn btn-sm btn-primary" type="submit" name="update_localbanks"  onclick="">Update Local Banks</button>-->
        <!--              </div>-->
                 
        <!--    </form>-->
        <!--    </div>-->
        <!--    </div>-->
            <div class="card">
                                                        <div class="card-header">
                                                            Change Admin Password
                                                        </div>
                                                        <div class="card-body">
                                                            <form method="post"
                                                                action="/admin/dashboard"
                                                                enctype="multipart/form-data">
                                                                <?php echo $alert_msg_pass; ?>
                                                                    <div class="form-group">
                                                                        <label class="mr-sm-2">Old Password</label>
                                                                        <input type="password" name="old_password"
                                                                            class="form-control"
                                                                            placeholder="**********" required>
                                                                    </div>
                                                                    <div class="form-group">
                                                                        <label class="mr-sm-2">New Password</label>
                                                                        <input type="password" class="form-control"
                                                                            placeholder="**********"
                                                                            name="new_password" required>
                                                                    </div>
                                                                        <button type="submit"
                                                                            name="update_profile_password"
                                                                            class="btn btn-sm btn-primary" style="">Change
                                                                            Password</button>
                                                            </form>
                                                        </div>
                                                    </div>
            
            
            
            
            