コード例 #1
0
ファイル: sales.php プロジェクト: afiqiqmal/Web
                              <div>
                                <label>Sub Price</label>
                                <span class="pull-right">RM <?php 
        echo $sub;
        ?>
</span>
                              </div>
                              <div>
                                <label>Service Tax 10%</label>
                                <span class="pull-right">RM <?php 
        echo $gst;
        ?>
</span>
                              </div>
                              <?php 
        if (!$get_sales->validatePurchase($pay, $obj[0]->stud_id)) {
            Session::put('exceed_price', 'Maximum purchase of today');
            echo '<div style="border:2px dashed red;font-weight:bold;font-size:15px;color:red;padding:2px">
                                          <span>Total Price</span>
                                          <span class="pull-right"><i class="fa fa-close"></i>  RM ' . $pay . '</span>
                                        </div>';
            echo "<script>alert('" . Session::get('exceed_price') . "');</script>";
        } else {
            Session::delete('exceed_price');
            echo '<div style="border:2px dashed gray;font-weight:bold;font-size:15px;padding:2px">
                                          <span>Total Price</span>
                                          <span class="pull-right"><i class="fa fa-arrow-right"></i>  RM ' . $pay . '</span>
                                        </div>';
            Session::put('pay-cart', $pay);
        }
        if (!Session::exists('exceed_price')) {