<?php $__env->startSection('header'); ?>
    <style>
        #header {
            background:#8d1c22;
        }

        .form-inline {
            margin:10px;
        }
        #content .table {
            font-size:12px;
        }
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row-fluid">
    <div class="span9">
    </div>
    <div>
        <h4 class="nametag">使用者管理系統</h4>
        <hr>

<h5><?php echo Session::get('message'); ?></h5>

	<?php if($errors->any()): ?>
	<div class="alert alert-danger">
	  <button type="button" class="close" data-dismiss="alert">&times;</button>
	  <strong>錯誤!</strong> <?php echo $errors->first(); ?>

	</div>
	<?php endif; ?>

    <form method="POST" action="<?php echo URL::to('/admin/user/add-user'); ?>" accept-charset="UTF-8" class="form-horizontal well" enctype="multipart/form-data"><input name="_token" type="hidden" value="XWC08YUjB9ToCYXsG2TsZa8h44ihDZeaAT4lGq24">
	<div class="form-group">
                    <label class="col-sm-2 control-label">註冊時間</label>
                    <div class="col-sm-10">
                                <?php echo Form::text('register-time','', array('class' => 'form-control')); ?>

                    </div>
        </div>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">登入信箱</label>
        	<div class="col-sm-10">
		<?php echo Form::email('account', '', array('class' => 'form-control')); ?>

        	</div>
    	</div>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">登入密碼</label>
        	<div class="col-sm-10">
        	<!--input type="password" name="userPassword" class="form-control" -->
		<?php echo Form::password('userPassword', array('class' => 'form-control')); ?>

		</div>
    	</div>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">帳號種類</label>
        	<div class="col-sm-10">
			<?php echo Form::select('level', array('一般帳戶'=>'一般帳戶','種子帳戶'=>'種子帳戶'),'種子帳戶',['class'=> 'form-control']); ?>

        	</div>
    	</div>
        <div class="form-group">
                <label class="col-sm-2 control-label">登入方式</label>
                <div class="col-sm-10">
                        <?php echo Form::select('login-type', array('NINETEN' => 'NINETEN'),'NINETEN',['class' => 'form-control']); ?>

                </div>
        </div>
        <div class="form-group">
                <label class="control-label col-sm-2">帳戶權限</label>
                <div class="col-sm-10">
                        <?php echo Form::select('status', array('正常' => '正常', '停權' => '停權'), '正常',['class' => 'form-control']); ?>

                </div>
        </div>
        <div class="form-group">
                <label class="control-label col-sm-2">帳戶狀態</label>
                <div class="col-sm-10">
                        <?php echo Form::select('authority', array('一般' => '一般', '特殊' => '特殊'),'特殊',['class' => 'form-control']); ?>

                </div>
        </div>
        <div class="form-group">
                <label class="control-label col-sm-2">種子姓名</label>
                <div class="col-sm-10">
                        <?php echo Form::text('name','', array('class' => 'form-control')); ?>

               </div>
        </div>
<?php /*
        <div class="form-group">
                <label class="control-label col-sm-2">性    別</label>
                <div class="col-sm-10">
                        <?php echo Form::select('gender', array('男' => '男','女' => '女'), '男',['class' => 'form-control']); ?>

                </div>
        </div>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">身份字號</label>
        	<div class="col-sm-10">
		<?php echo Form::text('userId', '', array('class' => 'form-control')); ?>

        	</div>
    	</div>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">出生日期</label>
        	<div class="col-sm-10">
        	<input type="date" name="birthday" class="form-control" />
		</div>
    	</div>
*/ ?>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">手機號碼</label>
        	<div class="col-sm-10">
		<?php echo Form::text('phone', '', array('class' => 'form-control')); ?>

        	</div>
    	</div>
<?php /*
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">信    箱</label>
        	<div class="col-sm-10">
		<?php echo Form::text('email', '', array('class' => 'form-control')); ?>

        	</div>
    	</div>
    	<div class="form-group ">
        	<label class="col-sm-2 control-label">地    址</label>
        	<div class="col-sm-10">
		<?php echo Form::text('address', '', array('class' => 'form-control')); ?>

        	</div>
    	</div>
    	<div class="form-group ">
       		<label class="col-sm-2 control-label">parents mail</label>
        	<div class="col-sm-10">
		<?php echo Form::text('parentId', '', array('class' => 'form-control')); ?>

        	</div>
    	</div>
*/ ?>
    	<hr>
    	<div class="form-group">
        	<label class="col-sm-2 control-label"></label>
        	<div class="col-sm-10">
            	<input type="button" class="btn btn-default" onClick="window.location.href='<?php echo URL::to('/admin/user/manage'); ?>';" value="Cancel" />
			<input type="submit" name="" value="新增" class="btn btn-primary"  />
        	</div>
    	</div>
    </form>
</div>
</div>
<script language="JavaScript">

            $(document).ready(function(){
                setInterval(function(){$("[name=register-time]").val(getCurrentDate());},1000);
            });
</script>
<?php $__env->stopSection(); ?>	


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