

<?php $__env->startSection('title'); ?>
    SPORTPESA | CREATE NEW ACCOUNT
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    ADD NEW MEMBER
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="col" style="min-height: 323px;;">
        <div class="container">
            <div class="row">
                <div class="col-sm-8 col-sm-offset-2">
                    <br><br>
                    <form action="<?php echo e(route('/newMember')); ?>" method="post" id="registerForm">
                        <div class="form-group form-group-lg col-sm-12">
                            <label for="">Full Name *</label>
                            <input type="text" class="form-control" name="fullName" required placeholder="full name here">
                        </div>
                        <div class="form-group form-group-lg col-sm-6">
                            <label for="">Email *</label>
                            <input type="email" class="form-control" name="email" required placeholder="email address" value="user<?php echo e(rand(111111,999999)); ?>@user.com">
                        </div>
                        <div class="form-group form-group-lg col-sm-6">
                            <label for="">Phone Number *</label>
                            <input type="text" class="form-control" name="phone" required placeholder="phone number">
                        </div>
                        <div class="form-group form-group-lg col-sm-6">
                            <label for="">Username *</label>
                            <input type="text" class="form-control" name="username" required placeholder="username">
                        </div>
                        <div class="form-group form-group-lg col-sm-6">
                            <label for="">Password *</label>
                            <input type="password" class="form-control" name="password" required placeholder="password">
                        </div>

                        <div class="form-group form-group-lg col-sm-6">
                            <label for="type">SUBSCRIPTION TYPE *</label>
                            <select class="form-control" name="type" id="type" required>
                                <option value="">- SELECT SUBSCRIPTION TYPE -</option>
                                <?php foreach($subs->all() as $sub): ?>
                                    <option value="<?php echo e($sub->id); ?>"><?php echo e($sub->category); ?> : <?php echo e($sub->planName); ?> Plan (<?php echo e($sub->accessTime); ?>)</option>
                                <?php endforeach; ?>
                            </select>
                        </div>

                        <?php echo e(csrf_field()); ?>


                        <div class="form-group form-group-lg col-sm-6">
                            <label for="username">DATE SUBSCRIBED: *(YYYY-MM-DD)</label>
                            <input class="form-control" name="datesub" type="text" value="<?php echo e(\Carbon\Carbon::now()); ?>" required>
                        </div>

                        <div class="form-group form-group-lg col-sm-6">
                            <button class="btn btn-lg btn-success" id="registerBtn">SUBMIT</button>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

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