<?php include "config/init.php"?>

<?php include "template/header.php"?>

<?php
$curl = curl_init();

        curl_setopt_array($curl, array(
        CURLOPT_URL => 'https://main.payappglobal.com/admin/system/super/super-api-index.php',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => '',
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 0,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_POSTFIELDS =>'{
                    "action": "WalletBalance",
                    "momoNumber": "' . "" .'",
                    "channel": "' . "" . '"
        }',
        CURLOPT_HTTPHEADER => array(
            'ck:  ' . "1111v" . '',
            'sk:  ' . "2222v"  . '',
            'Content-Type: application/json'
        ),
        ));

        $response = curl_exec($curl);

        curl_close($curl);
        $result = json_decode($response, true);
//var_dump($result["balance"]);
?>


    <!-- Main Header 
 	Remittance Wallet Balance
                 <a href="#" class="btn btn-primary">USD <?=$result["balance"]?></a>
	-->
    <?php include "template/main-header.php"?>

    <!-- Left side column. contains the logo and sidebar -->
    <?php include "template/main-sidebar.php"?>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                Customer
                <small>List</small> <a href="super-agent.php" class="btn btn-primary">Create System Accounts</a>

            
                

            </h1>
            <ol class="breadcrumb">
                <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">Customer</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">

            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <!-- List of All Payout -->
                        <div class="panel-heading">This is a list of All Customers</div>
                        <div class="panel-body">
                            <table class="table table-striped" id="customer-list">
                                <thead>
                                <tr>
                                    <th>Time</th>
                                    <th>Country</th>
                                    <th>Phone</th>
                                    <th>Name</th>
                                    <th>Company</th>
                                    <th>Account Type</th>
                                    <th>Account KYC</th>
                                    <th>Status</th>
                                    <th>Action</th>
                                </tr>
                                </thead>
                            </table>
                            <hr>
                        </div>
                    </div>
                </div>
            </div>

        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

<?php include "template/footer.php"?>


