<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
    <?
    include 'extra/member_head.php';
    ?>

    
    
    <div class="col-lg-6"> 

        <div class="panel panel-flat">
            <div class="panel-heading">
                <h6 class="panel-title">Processing Payment for : <?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?>, <?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></h6>
            </div>

            <div class="panel-body">
                <div class="tabbable">
                    <ul class="nav nav-tabs nav-tabs-bottom">
                        <li class="active"><a href="#bottom-tab1" data-toggle="tab">New Credit/Debit</a></li>
                        <li><a href="#bottom-tab2" data-toggle="tab">Previous  Credit/Debit</a></li>
                        
                    </ul>

                    <div class="tab-content">
                        <div class="tab-pane active" id="bottom-tab1">



                            <form class="form-horizontal" action="/members/transport">
                                <input type="hidden" name="member_id" value="<?= $_SESSION['selected_user_row']->member_id ?>">
                                <fieldset class="content-group">
                                    <legend class="text-bold">Transport Request to :</legend>
                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Process By</label>
                                        <div class="col-lg-10">
                                            <input type="text" class="form-control" readonly="readonly" value='Web Admin'>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Pending Payment</label>
                                        <div class="col-lg-10">
                                            <?=$invoice_combo?>
                                        </div>
                                    </div> 
                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Name on Card</label>
                                        <div class="col-lg-10">
                                            <input type="text" class="form-control"  name="cardname">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Card No</label>
                                        <div class="col-lg-8">
                                            <input type="text" class="form-control"  name="cardno" placeholder='Card Number'>
                                        </div>
                                        <div class="col-lg-2">
                                            <input type="text" class="form-control"  name="cvv2" placeholder='cvv2'>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Address</label>
                                        <div class="col-lg-10">
                                            <input type="text" class="form-control"  name="street1">
                                        </div>
                                    </div>  

                                    <div class="form-group">
                                        <label class="control-label col-lg-2">City/Zipcode/State</label>
                                        <div class="col-lg-4"> 
                                            <input type="text" class="form-control" name="city" placeholder='City..' >
                                        </div>
                                        <div class="col-lg-3">
                                            <input type="text" class="form-control" name="zipcode" placeholder="ZipCode">
                                        </div>
                                        <div class="col-lg-3">
                                            <select name="state" class="form-control">
                                                <option value="GA">Georgia</option>                                                                 
                                            </select>
                                        </div>
                                    </div>      

                                </fieldset>
                                <div class="text-right">
                                    <button type="submit" class="btn btn-primary">Process Payment <i class="icon-arrow-right14 position-right"></i></button>
                                </div>
                            </form>


                        </div>

                        <div class="tab-pane" id="bottom-tab2">


                            <form class="form-horizontal" action="/members/transport">
                                <input type="hidden" name="member_id" value="<?= $_SESSION['selected_user_row']->member_id ?>">
                                <fieldset class="content-group">
                                    <legend class="text-bold">Transport Request to :</legend>
                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Created by</label>
                                        <div class="col-lg-10">
                                            <input type="text" class="form-control" readonly="readonly" value='Web Admin'>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Pending Payment</label>
                                        <div class="col-lg-10">
                                           <?=$invoice_combo?>
                                        </div>
                                    </div> 

                                    <div class="form-group">
                                        <label class="control-label col-lg-2">Previous Cards</label>
                                        <div class="col-lg-10">
                                             <?=$user_cards_combo?>
                                        </div>
                                    </div>      

                                </fieldset>
                                <div class="text-right">
                                    <button type="submit" class="btn btn-primary">Process Payment <i class="icon-arrow-right14 position-right"></i></button>
                                </div>
                            </form>

                        </div>

                       
                    </div>
                </div>
            </div>
        </div>

    </div>

    <div class="col-lg-6">
        <!-- Recent Members -->
        <div class="panel panel-flat">
            <div class="panel-heading">
                <h6 class="panel-title">[<b><?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?></b>] -  [<?= $_SESSION['selected_user_row']->username ?>]</h6>                
            </div>

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

            <div class="table-responsive">
                <table class="table text-nowrap">
                    <thead>
                        <tr>
                            <th>Address</th>                         
                            <th style="width:110px; ">Pry.Phone</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>

                            <td>
                                <span class="text-semibold"><?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></span>
                            </td>
                            <td>
                                <h6 class="text-semibold no-margin"><? echo $_SESSION['selected_user_row']->primary_phone; ?></h6>
                            </td>
                        </tr>               

                    </tbody>
                </table>
            </div>
        </div>
        <!-- /Recent Members -->

        <!-- Form horizontal -->
        <div class="panel panel-flat">



            <div class="panel-heading">
                <h5 class="panel-title">Payment History</h5>
            </div>

            <div class="panel-body">           


            </div>
        </div>
        <!-- /form horizontal -->
    </div>
</div>
<!-- /dashboard content -->

