public static function my()
    {
        $acc = MemberLogin::getMember();
        ?>
        <div id="mycard" style="position: fixed; height: 100%;  top:0px; left: 0px; width: 100%; z-index: 100; background-color: rgba(0,0,0,0.8);">
            <div class="container">
                <div class="row">
                    <div class="monly" style="height: 60px;"></div>

                        <div class="bgcard" style="margin: auto; margin-top: 40px; color: #FFFFFF;" >
                            <div style="float: right; margin-right: 5px;cursor: pointer; width: 10px; height: 10px;" onclick="$('#mycard').hide();">x</div>
                            <div style="padding-top: 72px; margin-left: 20px;">
                                <div class="lybname" style="font-size: 21px;"><?php 
        echo ucwords($acc->macc_first_name . " " . $acc->macc_last_name);
        ?>
</div>
                                <div class="lybname" style="font-size: 15px;">Card # : <?php 
        echo $acc->macc_card_nr;
        ?>
</div>
                                <div class="lybname" style="font-size: 15px;"><?php 
        echo $acc->macc_lyb_status;
        ?>
</div>
                                <div class="lybname" style="font-size: 15px;">Points : <?php 
        echo $acc->macc_points;
        ?>
</div>

                            </div>
                            <div style="padding-top: 215px; margin-left: 100px;">
                                <div class="lybname" style="font-size: 15px;">Expiry Date : <?php 
        echo date("M j, Y", strtotime($acc->macc_lyb_expiry_date));
        ?>
</div>
                            </div>
                        </div>

                </div>
            </div>

        </div>
        <style>
            .bgcard{
                width: 300px;
                height: 482px;
                background-image: url(<?php 
        echo _SPPATH;
        ?>
images/lybcard.jpg);
                background-size: 300px 482px;
            }
        </style>
<!--        <div class="monly" style="height: 60px;"></div>-->
        <div class="col-md-10 col-md-offset-1" style="margin-top: 40px;">
            <div style="float: right; width: 20px; height: 20px; font-size: 30px;color: #777777;">
                <i style="cursor: pointer;" onclick="$('#mycard').toggle();" class="glyphicon glyphicon-credit-card"></i>
            </div>
        <h3 style="margin-bottom: 20px;">
            <?php 
        if ($acc->macc_lyb_status == "LYB Fan") {
            ?>
                <img height="80px" src="<?php 
            echo _SPPATH;
            ?>
images/fan.jpg" align="absmiddle">
            <?php 
        }
        ?>
            <?php 
        echo ucwords($acc->macc_first_name . " " . $acc->macc_last_name);
        ?>
        </h3>
        </div>
        <div class="clearfix"></div>
        <div class="col-md-5 col-md-offset-1" style="margin-top: 20px;">

            <table class="table" style="color: #777777;">
                <tr>
                    <td>Points</td>
                    <td><b><?php 
        echo $acc->macc_points;
        ?>
</b></td>
                </tr>
                <tr>
                    <td>Expiry Date</td>
                    <td><?php 
        echo date("d/m/Y", strtotime($acc->macc_lyb_expiry_date));
        ?>
</td>
                </tr>
                <tr>
                    <td>Card Number</td>
                    <td><?php 
        echo $acc->macc_card_nr;
        ?>
</td>
                </tr>
                <tr>
                    <td>Membership Status</td>
                    <td><?php 
        echo $acc->macc_lyb_status;
        ?>
</td>
                </tr>
            </table>

        </div>
        <div class="col-md-5" style="margin-top: 20px;">

            <table class="table" style="color: #777777;">
                <tr>
                    <td>Gender</td>
                    <td><?php 
        echo $acc->macc_gender;
        ?>
</td>
                </tr>
                <tr>
                    <td>Date of Birth</td>
                    <td><?php 
        echo $acc->macc_dob;
        ?>
</td>
                </tr>
                <tr>
                    <td>Email</td>
                    <td><?php 
        echo $acc->macc_email;
        ?>
</td>
                </tr>
                <tr>
                    <td>Phone</td>
                    <td><?php 
        echo $acc->macc_phone;
        ?>
</td>
                </tr>



            </table>
        </div>
        <div class="clearfix"></div>

        <div class="col-md-10 col-md-offset-1" style="margin-top: 20px;">
            <hr>
            <h3 style="margin-bottom: 20px;">Statements</h3>

            <?php 
        if (isset($acc->statements->transactions) && is_array($acc->statements->transactions)) {
            $arr = $acc->statements->transactions;
            $rev = array_reverse($arr);
            ?>
                <div class="table-responsive">
                <table class="table table-striped" style="color: #777777;">
                <?php 
            foreach ($rev as $st) {
                ?>
                    <tr>
                        <td style="max-width: 80px;">
                            <?php 
                echo $st->TransactionDateTime;
                ?>
                        </td>
                        <td >
                            <?php 
                echo $st->StoreName;
                ?>
                        </td>
<!--                        <td>-->
<!--                            --><?php 
                //=$st->Description;
                ?>
<!--                        </td>-->
                        <td >
                            <?php 
                echo str_replace(" ", "<br>", $st->Cash_Type);
                ?>
                        </td>
                        <td style="text-align: right;">
                            <?php 
                echo $st->Cash_Currency;
                ?>
 <?php 
                echo idr($st->Cash_Value);
                ?>
                        </td>
                    </tr>

                    <?php 
            }
            ?>
</table></div><?php 
        } else {
            echo "You have no transaction yet";
        }
        ?>
        </div>
        <div class="clearfix"></div>
        <?php 
        //        pr(MemberLogin::getMember());
    }
 public static function myUserGroup()
 {
     $group = array();
     $group[] = "All";
     if (MemberLogin::isLogged()) {
         $group[] = "All_Logged";
         if (MemberLogin::getMember()->macc_lyb_status == "LYB Fan") {
             $group[] = "LYBFan";
             $group[] = "All_LYB";
         }
         if (MemberLogin::getMember()->macc_lyb_status == "LYB Club") {
             $group[] = "LYBClub";
             $group[] = "All_LYB";
         }
     } else {
         $group[] = "Unlogged";
     }
     return $group;
 }