<!-- Dashboard content -->
<div class="row">

    <div class="col-lg-8"> 
        <!-- Search Form  -->
        <div class="panel panel-flat">

            <div class="panel-body">           

                <form class="form-horizontal" action="/member/find" method='POST'>
                    <fieldset class="content-group">
                        <legend class="text-bold">Find Member</legend>

                        <div class="form-group">
                            <label class="control-label col-lg-2">
                                Search By 
                            </label>
                            <div class="col-lg-3">
                                <?= $search_combo ?>
                            </div>
                            <div class="col-lg-5">
                                <input type="text" class="form-control" placeholder='Enter Search Text' name="searchtext" value='<?= $searchtext ?>'>
                            </div>         
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary">Submit <i class="icon-arrow-right14 position-right"></i></button>
                            </div> 
                        </div>      
                    </fieldset>
                </form>
            </div>
        </div>
        <!-- /Search Form -->

        <!-- Result Form -->
        <div class="panel panel-flat"> 
            <div class="panel-body">

                <div class="table-responsive">
                    <table class="table">
                        <thead>
                            <tr>
                                <th style="width: 100px"></th>
                                <th style="width: 100px">Phone</th>
                                <th style="width: 300px;">Member</th>
                                <th>Address</th>
                                <th class="text-center" style="width: 20px;"></th>
                            </tr>
                        </thead>
                        <tbody>


                            <?
                            foreach ($member_search as $rest) {
                                ?>

                                <tr>
                                    <td class="text-center">
                                        <button type="button" class="btn btn-warning" onclick="openMemberID(<? echo $rest->sel_member_id; ?>);"  >Select</button>

                                    </td>

                                    <td class="text-center">
                                        <h6 class="no-margin"><?= $rest->primary_phone ?></h6>
                                    </td>
                                    <td>       
                                        <div class="media-body">
                                            <a href="#" onclick="openMemberID(<? echo $rest->id; ?>);" class="display-inline-block text-default text-semibold letter-icon-title"><?= $rest->firstname ?> <?= $rest->lastname ?> </a>
                                            <div class="text-muted text-size-small"> <?= $rest->email ?></div>
                                        </div>
                                    </td>
                                    <td>
                                        <a href="#" class="text-default display-inline-block">
                                            <span class="text-semibold"><?= $rest->street1 ?></span>
                                            <span class="display-block text-muted"> <?= $rest->city ?>  <?= $rest->state ?>  <?= $rest->zipcode ?></span>
                                        </a>
                                    </td>
                                    <td class="text-center">

                                    </td>
                                </tr>                   
                                <?
                            }
                            ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /support tickets -->

        </div>
        <!-- /Result Form -->


    </div>

    <div class="col-lg-4">
        <!-- Recent Members -->
        <div class="panel panel-flat">
            <div class="panel-heading">
                <h6 class="panel-title">Recent Members</h6>
                <div class="heading-elements">
                    <span class="heading-text">Last: <span class="text-bold text-danger-600 position-right">10</span></span>             
                </div>
            </div>

            <div class="panel-body">
                <div id="sales-heatmap"></div>
            </div>

            <div class="table-responsive">
                <table class="table text-nowrap">
                    <thead>
                        <tr>
                            <th>Name/Email</th>
                            <th>Date</th>
                            <th>Pry.Phone</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        //  print_r($recent_signup);

                        foreach ($recent_signup as $rect) {
                            ?>
                            <tr>
                                <td>                     

                                    <div class="media-body">
                                        <div class="media-heading">
                                            <a href="#" onclick="openMemberID(<? echo $rect->id; ?>);" class="letter-icon-title"><? echo $rect->firstname; ?> <? echo $rect->lastname; ?></a>
                                        </div>

                                        <div class="text-muted text-size-small"><? echo $rect->email; ?></div>
                                    </div>
                                </td>
                                <td>
                                    <span class="text-muted text-size-small"><? echo $rect->added; ?></span>
                                </td>
                                <td>
                                    <h6 class="text-semibold no-margin"><? echo $rect->phone; ?></h6>
                                </td>
                            </tr>                   

                            <?
                        }
                        ?>
                        <tr>
                            <td colspan='3'><a href='/bkoreport/members'>Sign Up Report</a></td>

                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- /Recent Members -->
    </div>
</div>
<!-- /dashboard content -->

