<?php $__env->startSection("content"); ?>
<!DOCTYPE HTML>
<html lang="zh-TW">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Looknow!</title>
        <!-- jQuery -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

        <!-- Latest compiled and minified JavaScript -->
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

        <!-- customized css -->
        <link rel="stylesheet" href="../../../css/looknow.css">
        <style>
            .bottom-div {
                margin: 20px 0px 10px 0px;
            }
            .row {
                margin: 5px 0px 5px 0px;
            }
        </style>
    </head>
    <body>
	<?php if($errors->has()): ?>
			<div class="alert alert-warning" role="alert"><?php echo $errors->first(); ?></div>
	<?php endif; ?>
        <div class="container">
            <div class="inline-content">
                <h1>CHECKOUT</h1>
                <p>ACCOUNT</p>
            </div>
            <hr/>
			<?php echo Form::open(array(
				'action'=> ('FrontController@checkstore'),
				'class'=>'form-horizontal well',
				'method'=>'post'
			)); ?>

                <div class="row">
                    <div class="col-xs-offset-2 col-xs-2">
                        姓名：
                    </div>
                    <div class="col-xs-2">
                        <input type="text" class="form-control" name="firstname" placeholder="First name">
                    </div>
                    <div class="col-xs-2">
                        <input type="text" class="form-control" name="lastname" placeholder="Last name">
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-offset-2 col-xs-2">
                        信箱：
                    </div>
                    <div class="col-xs-4">
                        <input type="text" class="form-control" name="email" placeholder="E-mail address">
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-offset-2 col-xs-2">
                        住址：
                    </div>
                    <div class="col-xs-4">
                        <input type="text" class="form-control" name="address" placeholder="住址" value="<?php echo $user->address1; ?>">
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-offset-2 col-xs-2">
                        購買商品：
                    </div>
                    <div class="col-xs-4">
                        <?php echo $info; ?>

                        <input type="hidden" class="form-control" name="info" value="<?php echo $info; ?>">
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-offset-2 col-xs-2">
                        總額：
                    </div>
                    <div class="col-xs-4">
                        <?php echo $money; ?>

                        <input type="hidden" class="form-control" name="money" value="<?php echo $money; ?>">
                    </div>
                </div>
                <div class="row bottom-div">
                    <a href="<?php echo URL::to('front/cart/1'); ?>" class="btn btn-lg btn-default col-md-offset-3 col-md-2">BACK</a>
                    <input type="hidden" name="vpc_Locale" value="zh_HK" size="20" maxlength="5">
                    <input name="SubButL" class="btn btn-lg btn-default col-md-4 send" type="submit" />
                </div>
			<?php echo Form::close(); ?>

        </div>
    </body>
</html>

<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){

		$(".send").click(function(){
			
        });
        $(".fanpage").remove();
	});
</script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.basic_front', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>